Interface AlarmConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AlarmConfiguration.Builder,AlarmConfiguration>,SdkBuilder<AlarmConfiguration.Builder,AlarmConfiguration>,SdkPojo
- Enclosing class:
- AlarmConfiguration
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)A list of alarms configured for the deployment or deployment group.AlarmConfiguration.Builderalarms(Consumer<Alarm.Builder>... alarms)A list of alarms configured for the deployment or deployment group.AlarmConfiguration.Builderalarms(Alarm... alarms)A list of alarms configured for the deployment or deployment group.AlarmConfiguration.Builderenabled(Boolean enabled)Indicates whether the alarm configuration is enabled.AlarmConfiguration.BuilderignorePollAlarmFailure(Boolean ignorePollAlarmFailure)Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon 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, sdkFields
-
-
-
-
Method Detail
-
enabled
AlarmConfiguration.Builder enabled(Boolean enabled)
Indicates whether the alarm configuration is enabled.
- Parameters:
enabled- Indicates whether the alarm configuration is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ignorePollAlarmFailure
AlarmConfiguration.Builder ignorePollAlarmFailure(Boolean ignorePollAlarmFailure)
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
-
true: The deployment proceeds even if alarm status information can't be retrieved from Amazon CloudWatch. -
false: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
- Parameters:
ignorePollAlarmFailure- Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.-
true: The deployment proceeds even if alarm status information can't be retrieved from Amazon CloudWatch. -
false: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
alarms
AlarmConfiguration.Builder alarms(Collection<Alarm> alarms)
A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
- Parameters:
alarms- A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
AlarmConfiguration.Builder alarms(Alarm... alarms)
A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
- Parameters:
alarms- A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
AlarmConfiguration.Builder alarms(Consumer<Alarm.Builder>... alarms)
A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
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)
-
-