org.hudsonci.rest.model.build.ChangeFileDTO 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: 2015.05.19 at 02:21:23 PM PDT
//
package org.hudsonci.rest.model.build;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Java class for changeFile complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="changeFile">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="path" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="type" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}changeType"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "changeFile", propOrder = {
"path",
"type"
})
public class ChangeFileDTO {
@XmlElement(required = true)
@JsonProperty("path")
protected String path;
@XmlElement(required = true)
@JsonProperty("type")
protected ChangeTypeDTO type;
/**
* Gets the value of the path property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPath() {
return path;
}
/**
* Sets the value of the path property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPath(String value) {
this.path = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link ChangeTypeDTO }
*
*/
public ChangeTypeDTO getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link ChangeTypeDTO }
*
*/
public void setType(ChangeTypeDTO value) {
this.type = value;
}
public ChangeFileDTO withPath(String value) {
setPath(value);
return this;
}
public ChangeFileDTO withType(ChangeTypeDTO value) {
setType(value);
return this;
}
@Override
public boolean equals(final Object obj) {
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (!(obj instanceof ChangeFileDTO)) {
return false;
}
final ChangeFileDTO that = ((ChangeFileDTO) obj);
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.getPath(), that.getPath());
builder.append(this.getType(), that.getType());
return builder.build();
}
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder();
builder.append(this.getPath());
builder.append(this.getType());
return builder.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy