Class CloudWatchSetAlarmStateAction.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.CloudWatchSetAlarmStateAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchSetAlarmStateAction>
- Enclosing class:
- CloudWatchSetAlarmStateAction
@Stability(Experimental)
public static final class CloudWatchSetAlarmStateAction.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchSetAlarmStateAction>
(experimental) A fluent builder for
CloudWatchSetAlarmStateAction.-
Method Summary
Modifier and TypeMethodDescriptionalarmStateToSet(AlarmState alarmStateToSet) (experimental) The value of the alarm state to set.build()(experimental) The reason for the alarm change.(experimental) The IAM role that allows access to AWS service.
-
Method Details
-
create
- Parameters:
alarm- This parameter is required.- Returns:
- a new instance of
CloudWatchSetAlarmStateAction.Builder.
-
role
(experimental) The IAM role that allows access to AWS service.Default: a new role will be created
- Parameters:
role- The IAM role that allows access to AWS service. This parameter is required.- Returns:
this
-
alarmStateToSet
@Stability(Experimental) public CloudWatchSetAlarmStateAction.Builder alarmStateToSet(AlarmState alarmStateToSet) (experimental) The value of the alarm state to set.- Parameters:
alarmStateToSet- The value of the alarm state to set. This parameter is required.- Returns:
this
-
reason
(experimental) The reason for the alarm change.Default: None
- Parameters:
reason- The reason for the alarm change. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudWatchSetAlarmStateAction>- Returns:
- a newly built instance of
CloudWatchSetAlarmStateAction.
-