Interface InstanceStateChange.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceStateChange.Builder,
,InstanceStateChange> SdkBuilder<InstanceStateChange.Builder,
,InstanceStateChange> SdkPojo
- Enclosing class:
InstanceStateChange
public static interface InstanceStateChange.Builder
extends SdkPojo, CopyableBuilder<InstanceStateChange.Builder,InstanceStateChange>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstanceStateChange.Builder
currentState
(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.Builder
previousState
(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
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
-
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.Builder
avoiding the need to create one manually viaInstanceState.builder()
.When the
Consumer
completes,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:
-
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.
-
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.Builder
avoiding the need to create one manually viaInstanceState.builder()
.When the
Consumer
completes,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:
-