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

shiver.me.timbers.aws.cloudwatch.AlarmMetric 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.

There is a newer version: 15.2.0.1
Show 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;


/**
 * AlarmMetric
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Dimensions", "MetricName", "Namespace" }) public class AlarmMetric implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-dimensions * */ @JsonProperty("Dimensions") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-dimensions") private List> dimensions = new ArrayList>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-metricname * */ @JsonProperty("MetricName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-metricname") private CharSequence metricName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace * */ @JsonProperty("Namespace") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace") private CharSequence namespace; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-dimensions * */ @JsonIgnore public List> getDimensions() { return dimensions; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-dimensions * */ @JsonIgnore public void setDimensions(List> dimensions) { this.dimensions = dimensions; } public AlarmMetric withDimensions(List> dimensions) { this.dimensions = dimensions; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-metricname * */ @JsonIgnore public CharSequence getMetricName() { return metricName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-metricname * */ @JsonIgnore public void setMetricName(CharSequence metricName) { this.metricName = metricName; } public AlarmMetric withMetricName(CharSequence metricName) { this.metricName = metricName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace * */ @JsonIgnore public CharSequence getNamespace() { return namespace; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace * */ @JsonIgnore public void setNamespace(CharSequence namespace) { this.namespace = namespace; } public AlarmMetric withNamespace(CharSequence namespace) { this.namespace = namespace; return this; } @Override public String toString() { return new ToStringBuilder(this).append("dimensions", dimensions).append("metricName", metricName).append("namespace", namespace).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(namespace).append(metricName).append(dimensions).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof AlarmMetric) == false) { return false; } AlarmMetric rhs = ((AlarmMetric) other); return new EqualsBuilder().append(namespace, rhs.namespace).append(metricName, rhs.metricName).append(dimensions, rhs.dimensions).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy