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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AlarmConfiguration.Builderalarms(Collection<Alarm> alarms)The name of the CloudWatch alarm specified in the configuration.AlarmConfiguration.Builderalarms(Consumer<Alarm.Builder>... alarms)The name of the CloudWatch alarm specified in the configuration.AlarmConfiguration.Builderalarms(Alarm... alarms)The name of the CloudWatch alarm specified in the configuration.AlarmConfiguration.BuilderignorePollAlarmFailure(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 Detail
-
ignorePollAlarmFailure
AlarmConfiguration.Builder 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. 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
AlarmConfiguration.Builder alarms(Collection<Alarm> 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
AlarmConfiguration.Builder alarms(Alarm... 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
AlarmConfiguration.Builder alarms(Consumer<Alarm.Builder>... alarms)
The name of the CloudWatch alarm specified in the configuration.
This is a convenience method that creates an instance of theAlarm.Builderavoiding the need to create one manually viaAlarm.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#alarms(List.) - 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:
#alarms(java.util.Collection)
-
-