Interface InstanceStateChange.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceStateChange.Builder,,InstanceStateChange> SdkBuilder<InstanceStateChange.Builder,,InstanceStateChange> SdkPojo
- Enclosing class:
InstanceStateChange
@Mutable
@NotThreadSafe
public static interface InstanceStateChange.Builder
extends SdkPojo, CopyableBuilder<InstanceStateChange.Builder,InstanceStateChange>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstanceStateChange.BuildercurrentState(Consumer<InstanceState.Builder> currentState) The current state of the instance.currentState(InstanceState currentState) The current state of the instance.instanceId(String instanceId) The ID of the instance.default InstanceStateChange.BuilderpreviousState(Consumer<InstanceState.Builder> previousState) The previous state of the instance.previousState(InstanceState previousState) The previous state of the instance.Methods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentState
The current state of the instance.
- Parameters:
currentState- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentState
The current state of the instance.
This is a convenience method that creates an instance of theInstanceState.Builderavoiding the need to create one manually viaInstanceState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocurrentState(InstanceState).- Parameters:
currentState- a consumer that will call methods onInstanceState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
previousState
The previous state of the instance.
- Parameters:
previousState- The previous state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
previousState
The previous state of the instance.
This is a convenience method that creates an instance of theInstanceState.Builderavoiding the need to create one manually viaInstanceState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topreviousState(InstanceState).- Parameters:
previousState- a consumer that will call methods onInstanceState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-