com.pulumi.aws.iot.outputs.TopicRuleErrorActionCloudwatchAlarm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The 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;
@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) {
if (alarmName == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchAlarm", "alarmName");
}
this.alarmName = alarmName;
return this;
}
@CustomType.Setter
public Builder roleArn(String roleArn) {
if (roleArn == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchAlarm", "roleArn");
}
this.roleArn = roleArn;
return this;
}
@CustomType.Setter
public Builder stateReason(String stateReason) {
if (stateReason == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchAlarm", "stateReason");
}
this.stateReason = stateReason;
return this;
}
@CustomType.Setter
public Builder stateValue(String stateValue) {
if (stateValue == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchAlarm", "stateValue");
}
this.stateValue = stateValue;
return this;
}
public TopicRuleErrorActionCloudwatchAlarm build() {
final var _resultValue = new TopicRuleErrorActionCloudwatchAlarm();
_resultValue.alarmName = alarmName;
_resultValue.roleArn = roleArn;
_resultValue.stateReason = stateReason;
_resultValue.stateValue = stateValue;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy