org.hudsonci.maven.model.state.ArtifactActionDTO Maven / Gradle / Ivy
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.12.06 at 07:15:37 PM GMT
//
package org.hudsonci.maven.model.state;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Java class for artifactAction complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="artifactAction">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="projectId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="operation" use="required" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/state}artifactOperation" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "artifactAction")
@XStreamAlias("artifactAction")
@Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2011-12-06T19:15:37")
public class ArtifactActionDTO
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlAttribute(name = "projectId", required = true)
@XStreamAsAttribute
@JsonProperty("projectId")
protected String projectId;
@XmlAttribute(name = "operation", required = true)
@XStreamAsAttribute
@JsonProperty("operation")
protected ArtifactOperationDTO operation;
/**
* Gets the value of the projectId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProjectId() {
return projectId;
}
/**
* Sets the value of the projectId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProjectId(String value) {
this.projectId = value;
}
/**
* Gets the value of the operation property.
*
* @return
* possible object is
* {@link ArtifactOperationDTO }
*
*/
public ArtifactOperationDTO getOperation() {
return operation;
}
/**
* Sets the value of the operation property.
*
* @param value
* allowed object is
* {@link ArtifactOperationDTO }
*
*/
public void setOperation(ArtifactOperationDTO value) {
this.operation = value;
}
public ArtifactActionDTO withProjectId(String value) {
setProjectId(value);
return this;
}
public ArtifactActionDTO withOperation(ArtifactOperationDTO value) {
setOperation(value);
return this;
}
@Override
public boolean equals(final Object obj) {
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (!(obj instanceof ArtifactActionDTO)) {
return false;
}
final ArtifactActionDTO that = ((ArtifactActionDTO) obj);
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.getProjectId(), that.getProjectId());
builder.append(this.getOperation(), that.getOperation());
return builder.build();
}
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder();
builder.append(this.getProjectId());
builder.append(this.getOperation());
return builder.build();
}
}