All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hudsonci.rest.model.StatusDTO 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;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
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 status complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="status">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="initLevel" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/common}initLevel"/>
 *         <element name="quietingDown" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="terminating" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="systemMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="user" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/common}user" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "status", propOrder = { "url", "version", "initLevel", "quietingDown", "terminating", "systemMessage", "user" }) @XmlRootElement(name = "status") public class StatusDTO { @XmlElement(required = true) @JsonProperty("url") protected String url; @XmlElement(required = true) @JsonProperty("version") protected String version; @XmlElement(required = true) @JsonProperty("initLevel") protected InitLevelDTO initLevel; @JsonProperty("quietingDown") protected boolean quietingDown; @JsonProperty("terminating") protected boolean terminating; @JsonProperty("systemMessage") protected String systemMessage; @JsonProperty("user") protected UserDTO user; /** * Gets the value of the url property. * * @return * possible object is * {@link String } * */ public String getUrl() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is * {@link String } * */ public void setUrl(String value) { this.url = value; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the initLevel property. * * @return * possible object is * {@link InitLevelDTO } * */ public InitLevelDTO getInitLevel() { return initLevel; } /** * Sets the value of the initLevel property. * * @param value * allowed object is * {@link InitLevelDTO } * */ public void setInitLevel(InitLevelDTO value) { this.initLevel = value; } /** * Gets the value of the quietingDown property. * */ public boolean isQuietingDown() { return quietingDown; } /** * Sets the value of the quietingDown property. * */ public void setQuietingDown(boolean value) { this.quietingDown = value; } /** * Gets the value of the terminating property. * */ public boolean isTerminating() { return terminating; } /** * Sets the value of the terminating property. * */ public void setTerminating(boolean value) { this.terminating = value; } /** * Gets the value of the systemMessage property. * * @return * possible object is * {@link String } * */ public String getSystemMessage() { return systemMessage; } /** * Sets the value of the systemMessage property. * * @param value * allowed object is * {@link String } * */ public void setSystemMessage(String value) { this.systemMessage = value; } /** * Gets the value of the user property. * * @return * possible object is * {@link UserDTO } * */ public UserDTO getUser() { return user; } /** * Sets the value of the user property. * * @param value * allowed object is * {@link UserDTO } * */ public void setUser(UserDTO value) { this.user = value; } public StatusDTO withUrl(String value) { setUrl(value); return this; } public StatusDTO withVersion(String value) { setVersion(value); return this; } public StatusDTO withInitLevel(InitLevelDTO value) { setInitLevel(value); return this; } public StatusDTO withQuietingDown(boolean value) { setQuietingDown(value); return this; } public StatusDTO withTerminating(boolean value) { setTerminating(value); return this; } public StatusDTO withSystemMessage(String value) { setSystemMessage(value); return this; } public StatusDTO withUser(UserDTO value) { setUser(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof StatusDTO)) { return false; } final StatusDTO that = ((StatusDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getUrl(), that.getUrl()); builder.append(this.getVersion(), that.getVersion()); builder.append(this.getInitLevel(), that.getInitLevel()); builder.append(this.isQuietingDown(), that.isQuietingDown()); builder.append(this.isTerminating(), that.isTerminating()); builder.append(this.getSystemMessage(), that.getSystemMessage()); builder.append(this.getUser(), that.getUser()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getUrl()); builder.append(this.getVersion()); builder.append(this.getInitLevel()); builder.append(this.isQuietingDown()); builder.append(this.isTerminating()); builder.append(this.getSystemMessage()); builder.append(this.getUser()); return builder.build(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy