
shiver.me.timbers.aws.cloudwatch.AnomalyDetectorRange Maven / Gradle / Ivy
package shiver.me.timbers.aws.cloudwatch;
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;
/**
* AnomalyDetectorRange
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"EndTime",
"StartTime"
})
public class AnomalyDetectorRange implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-endtime
*
*/
@JsonProperty("EndTime")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-endtime")
private CharSequence endTime;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-starttime
*
*/
@JsonProperty("StartTime")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-starttime")
private CharSequence startTime;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-endtime
*
*/
@JsonIgnore
public CharSequence getEndTime() {
return endTime;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-endtime
*
*/
@JsonIgnore
public void setEndTime(CharSequence endTime) {
this.endTime = endTime;
}
public AnomalyDetectorRange withEndTime(CharSequence endTime) {
this.endTime = endTime;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-starttime
*
*/
@JsonIgnore
public CharSequence getStartTime() {
return startTime;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-starttime
*
*/
@JsonIgnore
public void setStartTime(CharSequence startTime) {
this.startTime = startTime;
}
public AnomalyDetectorRange withStartTime(CharSequence startTime) {
this.startTime = startTime;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("endTime", endTime).append("startTime", startTime).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(startTime).append(endTime).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof AnomalyDetectorRange) == false) {
return false;
}
AnomalyDetectorRange rhs = ((AnomalyDetectorRange) other);
return new EqualsBuilder().append(startTime, rhs.startTime).append(endTime, rhs.endTime).isEquals();
}
}