Interface SetAlarmStateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<SetAlarmStateRequest.Builder,
,SetAlarmStateRequest> SdkBuilder<SetAlarmStateRequest.Builder,
,SetAlarmStateRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SetAlarmStateRequest
public static interface SetAlarmStateRequest.Builder
extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<SetAlarmStateRequest.Builder,SetAlarmStateRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the alarm.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.stateReason
(String stateReason) The reason that this alarm is set to this specific state, in text format.stateReasonData
(String stateReasonData) The reason that this alarm is set to this specific state, in JSON format.stateValue
(String stateValue) The value of the state.stateValue
(StateValue stateValue) The value of the state.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
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 Details
-
alarmName
The name of the alarm.
- Parameters:
alarmName
- The name of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateValue
The value of the state.
- Parameters:
stateValue
- The value of the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateValue
The value of the state.
- Parameters:
stateValue
- The value of the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateReason
The reason that this alarm is set to this specific state, in text format.
- Parameters:
stateReason
- The reason that this alarm is set to this specific state, in text format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReasonData
The reason that this alarm is set to this specific state, in JSON format.
For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
- Parameters:
stateReasonData
- The reason that this alarm is set to this specific state, in JSON format.For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SetAlarmStateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetAlarmStateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-