shiver.me.timbers.aws.ec2.EC2FleetOnDemandOptionsRequest Maven / Gradle / Ivy
package shiver.me.timbers.aws.ec2;
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;
/**
* EC2FleetOnDemandOptionsRequest
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"AllocationStrategy"
})
public class EC2FleetOnDemandOptionsRequest implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-allocationstrategy
*
*/
@JsonProperty("AllocationStrategy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-allocationstrategy")
private CharSequence allocationStrategy;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-allocationstrategy
*
*/
@JsonIgnore
public CharSequence getAllocationStrategy() {
return allocationStrategy;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-allocationstrategy
*
*/
@JsonIgnore
public void setAllocationStrategy(CharSequence allocationStrategy) {
this.allocationStrategy = allocationStrategy;
}
public EC2FleetOnDemandOptionsRequest withAllocationStrategy(CharSequence allocationStrategy) {
this.allocationStrategy = allocationStrategy;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("allocationStrategy", allocationStrategy).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(allocationStrategy).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EC2FleetOnDemandOptionsRequest) == false) {
return false;
}
EC2FleetOnDemandOptionsRequest rhs = ((EC2FleetOnDemandOptionsRequest) other);
return new EqualsBuilder().append(allocationStrategy, rhs.allocationStrategy).isEquals();
}
}