Interface AutoScalingPolicyStatus.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AutoScalingPolicyStatus.Builder,AutoScalingPolicyStatus>,SdkBuilder<AutoScalingPolicyStatus.Builder,AutoScalingPolicyStatus>,SdkPojo
- Enclosing class:
- AutoScalingPolicyStatus
public static interface AutoScalingPolicyStatus.Builder extends SdkPojo, CopyableBuilder<AutoScalingPolicyStatus.Builder,AutoScalingPolicyStatus>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AutoScalingPolicyStatus.Builderstate(String state)Indicates the status of the automatic scaling policy.AutoScalingPolicyStatus.Builderstate(AutoScalingPolicyState state)Indicates the status of the automatic scaling policy.default AutoScalingPolicyStatus.BuilderstateChangeReason(Consumer<AutoScalingPolicyStateChangeReason.Builder> stateChangeReason)The reason for a change in status.AutoScalingPolicyStatus.BuilderstateChangeReason(AutoScalingPolicyStateChangeReason stateChangeReason)The reason for a change in status.-
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
-
state
AutoScalingPolicyStatus.Builder state(String state)
Indicates the status of the automatic scaling policy.
- Parameters:
state- Indicates the status of the automatic scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingPolicyState,AutoScalingPolicyState
-
state
AutoScalingPolicyStatus.Builder state(AutoScalingPolicyState state)
Indicates the status of the automatic scaling policy.
- Parameters:
state- Indicates the status of the automatic scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingPolicyState,AutoScalingPolicyState
-
stateChangeReason
AutoScalingPolicyStatus.Builder stateChangeReason(AutoScalingPolicyStateChangeReason stateChangeReason)
The reason for a change in status.
- Parameters:
stateChangeReason- The reason for a change in status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateChangeReason
default AutoScalingPolicyStatus.Builder stateChangeReason(Consumer<AutoScalingPolicyStateChangeReason.Builder> stateChangeReason)
The reason for a change in status.
This is a convenience method that creates an instance of theAutoScalingPolicyStateChangeReason.Builderavoiding the need to create one manually viaAutoScalingPolicyStateChangeReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostateChangeReason(AutoScalingPolicyStateChangeReason).- Parameters:
stateChangeReason- a consumer that will call methods onAutoScalingPolicyStateChangeReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
stateChangeReason(AutoScalingPolicyStateChangeReason)
-
-