shiver.me.timbers.aws.batch.ComputeEnvironment Maven / Gradle / Ivy
package shiver.me.timbers.aws.batch;
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;
/**
* ComputeEnvironment
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Type",
"ServiceRole",
"ComputeEnvironmentName",
"ComputeResources",
"State"
})
public class ComputeEnvironment {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-type
*
*/
@JsonProperty("Type")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-type")
private CharSequence type;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-servicerole
*
*/
@JsonProperty("ServiceRole")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-servicerole")
private CharSequence serviceRole;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-computeenvironmentname
*
*/
@JsonProperty("ComputeEnvironmentName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-computeenvironmentname")
private CharSequence computeEnvironmentName;
/**
* ComputeEnvironmentComputeResources
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html
*
*/
@JsonProperty("ComputeResources")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html")
private Property computeResources;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-state
*
*/
@JsonProperty("State")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-state")
private CharSequence state;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-type
*
*/
@JsonIgnore
public CharSequence getType() {
return type;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-type
*
*/
@JsonIgnore
public void setType(CharSequence type) {
this.type = type;
}
public ComputeEnvironment withType(CharSequence type) {
this.type = type;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-servicerole
*
*/
@JsonIgnore
public CharSequence getServiceRole() {
return serviceRole;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-servicerole
*
*/
@JsonIgnore
public void setServiceRole(CharSequence serviceRole) {
this.serviceRole = serviceRole;
}
public ComputeEnvironment withServiceRole(CharSequence serviceRole) {
this.serviceRole = serviceRole;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-computeenvironmentname
*
*/
@JsonIgnore
public CharSequence getComputeEnvironmentName() {
return computeEnvironmentName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-computeenvironmentname
*
*/
@JsonIgnore
public void setComputeEnvironmentName(CharSequence computeEnvironmentName) {
this.computeEnvironmentName = computeEnvironmentName;
}
public ComputeEnvironment withComputeEnvironmentName(CharSequence computeEnvironmentName) {
this.computeEnvironmentName = computeEnvironmentName;
return this;
}
/**
* ComputeEnvironmentComputeResources
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html
*
*/
@JsonIgnore
public Property getComputeResources() {
return computeResources;
}
/**
* ComputeEnvironmentComputeResources
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html
*
*/
@JsonIgnore
public void setComputeResources(Property computeResources) {
this.computeResources = computeResources;
}
public ComputeEnvironment withComputeResources(Property computeResources) {
this.computeResources = computeResources;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-state
*
*/
@JsonIgnore
public CharSequence getState() {
return state;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-state
*
*/
@JsonIgnore
public void setState(CharSequence state) {
this.state = state;
}
public ComputeEnvironment withState(CharSequence state) {
this.state = state;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("type", type).append("serviceRole", serviceRole).append("computeEnvironmentName", computeEnvironmentName).append("computeResources", computeResources).append("state", state).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(computeResources).append(state).append(type).append(serviceRole).append(computeEnvironmentName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ComputeEnvironment) == false) {
return false;
}
ComputeEnvironment rhs = ((ComputeEnvironment) other);
return new EqualsBuilder().append(computeResources, rhs.computeResources).append(state, rhs.state).append(type, rhs.type).append(serviceRole, rhs.serviceRole).append(computeEnvironmentName, rhs.computeEnvironmentName).isEquals();
}
}