shiver.me.timbers.aws.batch.JobDefinitionNodeProperties Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.batch;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
/**
* JobDefinitionNodeProperties
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"MainNode",
"NodeRangeProperties",
"NumNodes"
})
public class JobDefinitionNodeProperties implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-mainnode
*
*/
@JsonProperty("MainNode")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-mainnode")
private Number mainNode;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-noderangeproperties
*
*/
@JsonProperty("NodeRangeProperties")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-noderangeproperties")
private List> nodeRangeProperties = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-numnodes
*
*/
@JsonProperty("NumNodes")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-numnodes")
private Number numNodes;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-mainnode
*
*/
@JsonIgnore
public Number getMainNode() {
return mainNode;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-mainnode
*
*/
@JsonIgnore
public void setMainNode(Number mainNode) {
this.mainNode = mainNode;
}
public JobDefinitionNodeProperties withMainNode(Number mainNode) {
this.mainNode = mainNode;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-noderangeproperties
*
*/
@JsonIgnore
public List> getNodeRangeProperties() {
return nodeRangeProperties;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-noderangeproperties
*
*/
@JsonIgnore
public void setNodeRangeProperties(List> nodeRangeProperties) {
this.nodeRangeProperties = nodeRangeProperties;
}
public JobDefinitionNodeProperties withNodeRangeProperties(List> nodeRangeProperties) {
this.nodeRangeProperties = nodeRangeProperties;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-numnodes
*
*/
@JsonIgnore
public Number getNumNodes() {
return numNodes;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-numnodes
*
*/
@JsonIgnore
public void setNumNodes(Number numNodes) {
this.numNodes = numNodes;
}
public JobDefinitionNodeProperties withNumNodes(Number numNodes) {
this.numNodes = numNodes;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("mainNode", mainNode).append("nodeRangeProperties", nodeRangeProperties).append("numNodes", numNodes).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(nodeRangeProperties).append(numNodes).append(mainNode).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof JobDefinitionNodeProperties) == false) {
return false;
}
JobDefinitionNodeProperties rhs = ((JobDefinitionNodeProperties) other);
return new EqualsBuilder().append(nodeRangeProperties, rhs.nodeRangeProperties).append(numNodes, rhs.numNodes).append(mainNode, rhs.mainNode).isEquals();
}
}