All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.autoscaling.ScheduledAction Maven / Gradle / Ivy


package shiver.me.timbers.aws.autoscaling;

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;


/**
 * ScheduledAction
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "AutoScalingGroupName", "DesiredCapacity", "EndTime", "MaxSize", "MinSize", "Recurrence", "StartTime" }) public class ScheduledAction { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-asgname * */ @JsonProperty("AutoScalingGroupName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-asgname") private CharSequence autoScalingGroupName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-desiredcapacity * */ @JsonProperty("DesiredCapacity") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-desiredcapacity") private Number desiredCapacity; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-endtime * */ @JsonProperty("EndTime") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-endtime") private CharSequence endTime; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-maxsize * */ @JsonProperty("MaxSize") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-maxsize") private Number maxSize; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-minsize * */ @JsonProperty("MinSize") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-minsize") private Number minSize; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-recurrence * */ @JsonProperty("Recurrence") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-recurrence") private CharSequence recurrence; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-starttime * */ @JsonProperty("StartTime") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-starttime") private CharSequence startTime; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-asgname * */ @JsonIgnore public CharSequence getAutoScalingGroupName() { return autoScalingGroupName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-asgname * */ @JsonIgnore public void setAutoScalingGroupName(CharSequence autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; } public ScheduledAction withAutoScalingGroupName(CharSequence autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-desiredcapacity * */ @JsonIgnore public Number getDesiredCapacity() { return desiredCapacity; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-desiredcapacity * */ @JsonIgnore public void setDesiredCapacity(Number desiredCapacity) { this.desiredCapacity = desiredCapacity; } public ScheduledAction withDesiredCapacity(Number desiredCapacity) { this.desiredCapacity = desiredCapacity; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-endtime * */ @JsonIgnore public CharSequence getEndTime() { return endTime; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-endtime * */ @JsonIgnore public void setEndTime(CharSequence endTime) { this.endTime = endTime; } public ScheduledAction withEndTime(CharSequence endTime) { this.endTime = endTime; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-maxsize * */ @JsonIgnore public Number getMaxSize() { return maxSize; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-maxsize * */ @JsonIgnore public void setMaxSize(Number maxSize) { this.maxSize = maxSize; } public ScheduledAction withMaxSize(Number maxSize) { this.maxSize = maxSize; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-minsize * */ @JsonIgnore public Number getMinSize() { return minSize; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-minsize * */ @JsonIgnore public void setMinSize(Number minSize) { this.minSize = minSize; } public ScheduledAction withMinSize(Number minSize) { this.minSize = minSize; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-recurrence * */ @JsonIgnore public CharSequence getRecurrence() { return recurrence; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-recurrence * */ @JsonIgnore public void setRecurrence(CharSequence recurrence) { this.recurrence = recurrence; } public ScheduledAction withRecurrence(CharSequence recurrence) { this.recurrence = recurrence; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-starttime * */ @JsonIgnore public CharSequence getStartTime() { return startTime; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-starttime * */ @JsonIgnore public void setStartTime(CharSequence startTime) { this.startTime = startTime; } public ScheduledAction withStartTime(CharSequence startTime) { this.startTime = startTime; return this; } @Override public String toString() { return new ToStringBuilder(this).append("autoScalingGroupName", autoScalingGroupName).append("desiredCapacity", desiredCapacity).append("endTime", endTime).append("maxSize", maxSize).append("minSize", minSize).append("recurrence", recurrence).append("startTime", startTime).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(recurrence).append(autoScalingGroupName).append(maxSize).append(minSize).append(startTime).append(endTime).append(desiredCapacity).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ScheduledAction) == false) { return false; } ScheduledAction rhs = ((ScheduledAction) other); return new EqualsBuilder().append(recurrence, rhs.recurrence).append(autoScalingGroupName, rhs.autoScalingGroupName).append(maxSize, rhs.maxSize).append(minSize, rhs.minSize).append(startTime, rhs.startTime).append(endTime, rhs.endTime).append(desiredCapacity, rhs.desiredCapacity).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy