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

shiver.me.timbers.aws.cloudwatch.AnomalyDetectorConfiguration Maven / Gradle / Ivy

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

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;


/**
 * AnomalyDetectorConfiguration
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "MetricTimeZone", "ExcludedTimeRanges" }) public class AnomalyDetectorConfiguration implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-metrictimezone * */ @JsonProperty("MetricTimeZone") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-metrictimezone") private CharSequence metricTimeZone; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-excludedtimeranges * */ @JsonProperty("ExcludedTimeRanges") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-excludedtimeranges") private List> excludedTimeRanges = new ArrayList>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-metrictimezone * */ @JsonIgnore public CharSequence getMetricTimeZone() { return metricTimeZone; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-metrictimezone * */ @JsonIgnore public void setMetricTimeZone(CharSequence metricTimeZone) { this.metricTimeZone = metricTimeZone; } public AnomalyDetectorConfiguration withMetricTimeZone(CharSequence metricTimeZone) { this.metricTimeZone = metricTimeZone; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-excludedtimeranges * */ @JsonIgnore public List> getExcludedTimeRanges() { return excludedTimeRanges; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-excludedtimeranges * */ @JsonIgnore public void setExcludedTimeRanges(List> excludedTimeRanges) { this.excludedTimeRanges = excludedTimeRanges; } public AnomalyDetectorConfiguration withExcludedTimeRanges(List> excludedTimeRanges) { this.excludedTimeRanges = excludedTimeRanges; return this; } @Override public String toString() { return new ToStringBuilder(this).append("metricTimeZone", metricTimeZone).append("excludedTimeRanges", excludedTimeRanges).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(metricTimeZone).append(excludedTimeRanges).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof AnomalyDetectorConfiguration) == false) { return false; } AnomalyDetectorConfiguration rhs = ((AnomalyDetectorConfiguration) other); return new EqualsBuilder().append(metricTimeZone, rhs.metricTimeZone).append(excludedTimeRanges, rhs.excludedTimeRanges).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy