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

org.hudsonci.rest.model.NodeDTO 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 node complex type. * *

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

 * <complexType name="node">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="executors" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="mode" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/common}nodeMode"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "node", propOrder = { "name", "description", "executors", "mode" }) @XmlRootElement(name = "node") public class NodeDTO { @XmlElement(required = true) @JsonProperty("name") protected String name; @XmlElement(required = true) @JsonProperty("description") protected String description; @JsonProperty("executors") protected int executors; @XmlElement(required = true) @JsonProperty("mode") protected NodeModeDTO mode; /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the executors property. * */ public int getExecutors() { return executors; } /** * Sets the value of the executors property. * */ public void setExecutors(int value) { this.executors = value; } /** * Gets the value of the mode property. * * @return * possible object is * {@link NodeModeDTO } * */ public NodeModeDTO getMode() { return mode; } /** * Sets the value of the mode property. * * @param value * allowed object is * {@link NodeModeDTO } * */ public void setMode(NodeModeDTO value) { this.mode = value; } public NodeDTO withName(String value) { setName(value); return this; } public NodeDTO withDescription(String value) { setDescription(value); return this; } public NodeDTO withExecutors(int value) { setExecutors(value); return this; } public NodeDTO withMode(NodeModeDTO value) { setMode(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof NodeDTO)) { return false; } final NodeDTO that = ((NodeDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getDescription(), that.getDescription()); builder.append(this.getExecutors(), that.getExecutors()); builder.append(this.getMode(), that.getMode()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getName()); builder.append(this.getDescription()); builder.append(this.getExecutors()); builder.append(this.getMode()); return builder.build(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy