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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-