Interface AlarmConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AlarmConfiguration.Builder,
,AlarmConfiguration> SdkBuilder<AlarmConfiguration.Builder,
,AlarmConfiguration> SdkPojo
- Enclosing class:
AlarmConfiguration
@Mutable
@NotThreadSafe
public static interface AlarmConfiguration.Builder
extends SdkPojo, CopyableBuilder<AlarmConfiguration.Builder,AlarmConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionalarms
(Collection<Alarm> alarms) The name of the CloudWatch alarm specified in the configuration.alarms
(Consumer<Alarm.Builder>... alarms) The name of the CloudWatch alarm specified in the configuration.The name of the CloudWatch alarm specified in the configuration.ignorePollAlarmFailure
(Boolean ignorePollAlarmFailure) When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ignorePollAlarmFailure
When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
- Parameters:
ignorePollAlarmFailure
- When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
The name of the CloudWatch alarm specified in the configuration.
- Parameters:
alarms
- The name of the CloudWatch alarm specified in the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
The name of the CloudWatch alarm specified in the configuration.
- Parameters:
alarms
- The name of the CloudWatch alarm specified in the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
The name of the CloudWatch alarm specified in the configuration.
This is a convenience method that creates an instance of theAlarm.Builder
avoiding the need to create one manually viaAlarm.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toalarms(List<Alarm>)
.- Parameters:
alarms
- a consumer that will call methods onAlarm.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-