org.hudsonci.rest.model
Class NodeDTO

java.lang.Object
  extended by org.hudsonci.rest.model.NodeDTO

public class NodeDTO
extends Object

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>
 


Field Summary
protected  String description
           
protected  int executors
           
protected  NodeModeDTO mode
           
protected  String name
           
 
Constructor Summary
NodeDTO()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Gets the value of the description property.
 int getExecutors()
          Gets the value of the executors property.
 NodeModeDTO getMode()
          Gets the value of the mode property.
 String getName()
          Gets the value of the name property.
 int hashCode()
           
 void setDescription(String value)
          Sets the value of the description property.
 void setExecutors(int value)
          Sets the value of the executors property.
 void setMode(NodeModeDTO value)
          Sets the value of the mode property.
 void setName(String value)
          Sets the value of the name property.
 NodeDTO withDescription(String value)
           
 NodeDTO withExecutors(int value)
           
 NodeDTO withMode(NodeModeDTO value)
           
 NodeDTO withName(String value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

description

protected String description

executors

protected int executors

mode

protected NodeModeDTO mode
Constructor Detail

NodeDTO

public NodeDTO()
Method Detail

getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getDescription

public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getExecutors

public int getExecutors()
Gets the value of the executors property.


setExecutors

public void setExecutors(int value)
Sets the value of the executors property.


getMode

public NodeModeDTO getMode()
Gets the value of the mode property.

Returns:
possible object is NodeModeDTO

setMode

public void setMode(NodeModeDTO value)
Sets the value of the mode property.

Parameters:
value - allowed object is NodeModeDTO

withName

public NodeDTO withName(String value)

withDescription

public NodeDTO withDescription(String value)

withExecutors

public NodeDTO withExecutors(int value)

withMode

public NodeDTO withMode(NodeModeDTO value)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2011 Hudson. All Rights Reserved.