shiver.me.timbers.aws.cloudwatch.AnomalyDetector Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.cloudwatch;
import java.util.ArrayList;
import java.util.List;
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;
/**
* AnomalyDetector
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"MetricName",
"Stat",
"Configuration",
"Dimensions",
"Namespace"
})
public class AnomalyDetector {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricname
*
*/
@JsonProperty("MetricName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricname")
private CharSequence metricName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat
*
*/
@JsonProperty("Stat")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat")
private CharSequence stat;
/**
* AnomalyDetectorConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html
*
*/
@JsonProperty("Configuration")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html")
private Property configuration;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-dimensions
*
*/
@JsonProperty("Dimensions")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-dimensions")
private List> dimensions = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-namespace
*
*/
@JsonProperty("Namespace")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-namespace")
private CharSequence namespace;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricname
*
*/
@JsonIgnore
public CharSequence getMetricName() {
return metricName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricname
*
*/
@JsonIgnore
public void setMetricName(CharSequence metricName) {
this.metricName = metricName;
}
public AnomalyDetector withMetricName(CharSequence metricName) {
this.metricName = metricName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat
*
*/
@JsonIgnore
public CharSequence getStat() {
return stat;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat
*
*/
@JsonIgnore
public void setStat(CharSequence stat) {
this.stat = stat;
}
public AnomalyDetector withStat(CharSequence stat) {
this.stat = stat;
return this;
}
/**
* AnomalyDetectorConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html
*
*/
@JsonIgnore
public Property getConfiguration() {
return configuration;
}
/**
* AnomalyDetectorConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html
*
*/
@JsonIgnore
public void setConfiguration(Property configuration) {
this.configuration = configuration;
}
public AnomalyDetector withConfiguration(Property configuration) {
this.configuration = configuration;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-dimensions
*
*/
@JsonIgnore
public List> getDimensions() {
return dimensions;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-dimensions
*
*/
@JsonIgnore
public void setDimensions(List> dimensions) {
this.dimensions = dimensions;
}
public AnomalyDetector withDimensions(List> dimensions) {
this.dimensions = dimensions;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-namespace
*
*/
@JsonIgnore
public CharSequence getNamespace() {
return namespace;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-namespace
*
*/
@JsonIgnore
public void setNamespace(CharSequence namespace) {
this.namespace = namespace;
}
public AnomalyDetector withNamespace(CharSequence namespace) {
this.namespace = namespace;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("metricName", metricName).append("stat", stat).append("configuration", configuration).append("dimensions", dimensions).append("namespace", namespace).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(namespace).append(stat).append(metricName).append(configuration).append(dimensions).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof AnomalyDetector) == false) {
return false;
}
AnomalyDetector rhs = ((AnomalyDetector) other);
return new EqualsBuilder().append(namespace, rhs.namespace).append(stat, rhs.stat).append(metricName, rhs.metricName).append(configuration, rhs.configuration).append(dimensions, rhs.dimensions).isEquals();
}
}