shiver.me.timbers.aws.opsworks.LayerLoadBasedAutoScaling Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.opsworks;
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;
/**
* LayerLoadBasedAutoScaling
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"DownScaling",
"Enable",
"UpScaling"
})
public class LayerLoadBasedAutoScaling implements Property
{
/**
* LayerAutoScalingThresholds
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html
*
*/
@JsonProperty("DownScaling")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html")
private Property downScaling;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-enable
*
*/
@JsonProperty("Enable")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-enable")
private CharSequence enable;
/**
* LayerAutoScalingThresholds
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html
*
*/
@JsonProperty("UpScaling")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html")
private Property upScaling;
/**
* LayerAutoScalingThresholds
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html
*
*/
@JsonIgnore
public Property getDownScaling() {
return downScaling;
}
/**
* LayerAutoScalingThresholds
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html
*
*/
@JsonIgnore
public void setDownScaling(Property downScaling) {
this.downScaling = downScaling;
}
public LayerLoadBasedAutoScaling withDownScaling(Property downScaling) {
this.downScaling = downScaling;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-enable
*
*/
@JsonIgnore
public CharSequence getEnable() {
return enable;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-enable
*
*/
@JsonIgnore
public void setEnable(CharSequence enable) {
this.enable = enable;
}
public LayerLoadBasedAutoScaling withEnable(CharSequence enable) {
this.enable = enable;
return this;
}
/**
* LayerAutoScalingThresholds
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html
*
*/
@JsonIgnore
public Property getUpScaling() {
return upScaling;
}
/**
* LayerAutoScalingThresholds
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html
*
*/
@JsonIgnore
public void setUpScaling(Property upScaling) {
this.upScaling = upScaling;
}
public LayerLoadBasedAutoScaling withUpScaling(Property upScaling) {
this.upScaling = upScaling;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("downScaling", downScaling).append("enable", enable).append("upScaling", upScaling).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(downScaling).append(upScaling).append(enable).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof LayerLoadBasedAutoScaling) == false) {
return false;
}
LayerLoadBasedAutoScaling rhs = ((LayerLoadBasedAutoScaling) other);
return new EqualsBuilder().append(downScaling, rhs.downScaling).append(upScaling, rhs.upScaling).append(enable, rhs.enable).isEquals();
}
}