// *** 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 java.lang.String;
import java.util.Objects;

@CustomType
public final class TopicRuleErrorActionCloudwatchAlarm {
    /**
     * @return The CloudWatch alarm name.
     * 
     */
    private String alarmName;
    /**
     * @return The IAM role ARN that allows access to the CloudWatch alarm.
     * 
     */
    private String roleArn;
    /**
     * @return The reason for the alarm change.
     * 
     */
    private String stateReason;
    /**
     * @return The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
     * 
     */
    private String stateValue;

    private TopicRuleErrorActionCloudwatchAlarm() {}
    /**
     * @return The CloudWatch alarm name.
     * 
     */
    public String alarmName() {
        return this.alarmName;
    }
    /**
     * @return The IAM role ARN that allows access to the CloudWatch alarm.
     * 
     */
    public String roleArn() {
        return this.roleArn;
    }
    /**
     * @return The reason for the alarm change.
     * 
     */
    public String stateReason() {
        return this.stateReason;
    }
    /**
     * @return The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
     * 
     */
    public String stateValue() {
        return this.stateValue;
    }

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

    public static Builder builder(TopicRuleErrorActionCloudwatchAlarm defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String alarmName;
        private String roleArn;
        private String stateReason;
        private String stateValue;
        public Builder() {}
        public Builder(TopicRuleErrorActionCloudwatchAlarm defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alarmName = defaults.alarmName;
    	      this.roleArn = defaults.roleArn;
    	      this.stateReason = defaults.stateReason;
    	      this.stateValue = defaults.stateValue;
        }

        @CustomType.Setter
        public Builder alarmName(String alarmName) {
            this.alarmName = Objects.requireNonNull(alarmName);
            return this;
        }
        @CustomType.Setter
        public Builder roleArn(String roleArn) {
            this.roleArn = Objects.requireNonNull(roleArn);
            return this;
        }
        @CustomType.Setter
        public Builder stateReason(String stateReason) {
            this.stateReason = Objects.requireNonNull(stateReason);
            return this;
        }
        @CustomType.Setter
        public Builder stateValue(String stateValue) {
            this.stateValue = Objects.requireNonNull(stateValue);
            return this;
        }
        public TopicRuleErrorActionCloudwatchAlarm build() {
            final var o = new TopicRuleErrorActionCloudwatchAlarm();
            o.alarmName = alarmName;
            o.roleArn = roleArn;
            o.stateReason = stateReason;
            o.stateValue = stateValue;
            return o;
        }
    }
}
