Class CloudWatchSetAlarmStateActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.CloudWatchSetAlarmStateActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchSetAlarmStateActionProps>
- Enclosing interface:
CloudWatchSetAlarmStateActionProps
@Stability(Experimental)
public static final class CloudWatchSetAlarmStateActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchSetAlarmStateActionProps>
A builder for
CloudWatchSetAlarmStateActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalarmStateToSet
(AlarmState alarmStateToSet) Sets the value ofCloudWatchSetAlarmStateActionProps.getAlarmStateToSet()
build()
Builds the configured instance.Sets the value ofCloudWatchSetAlarmStateActionProps.getReason()
Sets the value ofCommonActionProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmStateToSet
@Stability(Experimental) public CloudWatchSetAlarmStateActionProps.Builder alarmStateToSet(AlarmState alarmStateToSet) Sets the value ofCloudWatchSetAlarmStateActionProps.getAlarmStateToSet()
- Parameters:
alarmStateToSet
- The value of the alarm state to set. This parameter is required.- Returns:
this
-
reason
Sets the value ofCloudWatchSetAlarmStateActionProps.getReason()
- Parameters:
reason
- The reason for the alarm change.- Returns:
this
-
role
Sets the value ofCommonActionProps.getRole()
- Parameters:
role
- The IAM role that allows access to AWS service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudWatchSetAlarmStateActionProps>
- Returns:
- a new instance of
CloudWatchSetAlarmStateActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-