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

com.pulumi.aws.iot.outputs.TopicRuleCloudwatchMetric Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.iot.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TopicRuleCloudwatchMetric {
    /**
     * @return The CloudWatch metric name.
     * 
     */
    private String metricName;
    /**
     * @return The CloudWatch metric namespace name.
     * 
     */
    private String metricNamespace;
    /**
     * @return An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).
     * 
     */
    private @Nullable String metricTimestamp;
    /**
     * @return The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
     * 
     */
    private String metricUnit;
    /**
     * @return The CloudWatch metric value.
     * 
     */
    private String metricValue;
    /**
     * @return The IAM role ARN that allows access to the CloudWatch metric.
     * 
     */
    private String roleArn;

    private TopicRuleCloudwatchMetric() {}
    /**
     * @return The CloudWatch metric name.
     * 
     */
    public String metricName() {
        return this.metricName;
    }
    /**
     * @return The CloudWatch metric namespace name.
     * 
     */
    public String metricNamespace() {
        return this.metricNamespace;
    }
    /**
     * @return An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).
     * 
     */
    public Optional metricTimestamp() {
        return Optional.ofNullable(this.metricTimestamp);
    }
    /**
     * @return The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
     * 
     */
    public String metricUnit() {
        return this.metricUnit;
    }
    /**
     * @return The CloudWatch metric value.
     * 
     */
    public String metricValue() {
        return this.metricValue;
    }
    /**
     * @return The IAM role ARN that allows access to the CloudWatch metric.
     * 
     */
    public String roleArn() {
        return this.roleArn;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(TopicRuleCloudwatchMetric defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String metricName;
        private String metricNamespace;
        private @Nullable String metricTimestamp;
        private String metricUnit;
        private String metricValue;
        private String roleArn;
        public Builder() {}
        public Builder(TopicRuleCloudwatchMetric defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.metricName = defaults.metricName;
    	      this.metricNamespace = defaults.metricNamespace;
    	      this.metricTimestamp = defaults.metricTimestamp;
    	      this.metricUnit = defaults.metricUnit;
    	      this.metricValue = defaults.metricValue;
    	      this.roleArn = defaults.roleArn;
        }

        @CustomType.Setter
        public Builder metricName(String metricName) {
            if (metricName == null) {
              throw new MissingRequiredPropertyException("TopicRuleCloudwatchMetric", "metricName");
            }
            this.metricName = metricName;
            return this;
        }
        @CustomType.Setter
        public Builder metricNamespace(String metricNamespace) {
            if (metricNamespace == null) {
              throw new MissingRequiredPropertyException("TopicRuleCloudwatchMetric", "metricNamespace");
            }
            this.metricNamespace = metricNamespace;
            return this;
        }
        @CustomType.Setter
        public Builder metricTimestamp(@Nullable String metricTimestamp) {

            this.metricTimestamp = metricTimestamp;
            return this;
        }
        @CustomType.Setter
        public Builder metricUnit(String metricUnit) {
            if (metricUnit == null) {
              throw new MissingRequiredPropertyException("TopicRuleCloudwatchMetric", "metricUnit");
            }
            this.metricUnit = metricUnit;
            return this;
        }
        @CustomType.Setter
        public Builder metricValue(String metricValue) {
            if (metricValue == null) {
              throw new MissingRequiredPropertyException("TopicRuleCloudwatchMetric", "metricValue");
            }
            this.metricValue = metricValue;
            return this;
        }
        @CustomType.Setter
        public Builder roleArn(String roleArn) {
            if (roleArn == null) {
              throw new MissingRequiredPropertyException("TopicRuleCloudwatchMetric", "roleArn");
            }
            this.roleArn = roleArn;
            return this;
        }
        public TopicRuleCloudwatchMetric build() {
            final var _resultValue = new TopicRuleCloudwatchMetric();
            _resultValue.metricName = metricName;
            _resultValue.metricNamespace = metricNamespace;
            _resultValue.metricTimestamp = metricTimestamp;
            _resultValue.metricUnit = metricUnit;
            _resultValue.metricValue = metricValue;
            _resultValue.roleArn = roleArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy