/**
* Copyright 2011 Intuit Inc. All Rights Reserved
*/
package com.intuit.tank.api.model.v1.project;
/*
* #%L
* Project Rest API
* %%
* Copyright (C) 2011 - 2015 Intuit Inc.
* %%
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* #L%
*/
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* ProjectTO
*
* @author dangleton
*
*/
@XmlRootElement(name = "project", namespace = Namespace.NAMESPACE_V1)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProjectTO", namespace = Namespace.NAMESPACE_V1, propOrder = {
"id",
"created",
"modified",
"creator",
"name",
"productName",
"comments",
"variables",
"dataFileIds",
"useEips"
})
public class ProjectTO implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(name = "id", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private Integer id;
@XmlElement(name = "created", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private Date created;
@XmlElement(name = "modified", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private Date modified;
@XmlElement(name = "creator", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private String creator;
@XmlElement(name = "name", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private String name;
@XmlElement(name = "productName", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private String productName;
@XmlElement(name = "comments", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private String comments;
@XmlElement(name = "useEips", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private boolean useEips;
@XmlElementWrapper(name = "variables", namespace = Namespace.NAMESPACE_V1)
@XmlElement(name = "variable", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private List<KeyPair> variables = new ArrayList<KeyPair>();
@XmlElementWrapper(name = "data-file-ids", namespace = Namespace.NAMESPACE_V1)
@XmlElement(name = "data-file-id", namespace = Namespace.NAMESPACE_V1, required = false, nillable = false)
private List<Integer> dataFileIds = new ArrayList<Integer>();
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id
* the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the created
*/
public Date getCreated() {
return created;
}
/**
* @param created
* the created to set
*/
public void setCreated(Date created) {
this.created = created;
}
/**
* @return the modified
*/
public Date getModified() {
return modified;
}
/**
* @param modified
* the modified to set
*/
public void setModified(Date modified) {
this.modified = modified;
}
/**
* @return the creator
*/
public String getCreator() {
return creator;
}
/**
* @param creator
* the creator to set
*/
public void setCreator(String creator) {
this.creator = creator;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name
* the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the productName
*/
public String getProductName() {
return productName;
}
/**
* @param productName
* the productName to set
*/
public void setProductName(String productName) {
this.productName = productName;
}
/**
* @return the comments
*/
public String getComments() {
return comments;
}
/**
* @return the variables
*/
public List<KeyPair> getVariables() {
return variables;
}
/**
* @param variables
* the variables to set
*/
public void setVariables(List<KeyPair> variables) {
this.variables = variables;
}
/**
* @return the dataFiles
*/
public List<Integer> getDataFileIds() {
return dataFileIds;
}
/**
* @param dataFiles
* the dataFiles to set
*/
public void setDataFiles(List<Integer> dataFileIds) {
this.dataFileIds = dataFileIds;
}
/**
* @param comments
* the comments to set
*/
public void setComments(String comments) {
this.comments = comments;
}
@Override
public String toString() {
return name;
}
}