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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InstanceStateChange.Builder
currentState(Consumer<InstanceState.Builder> currentState)
The current state of the instance.InstanceStateChange.Builder
currentState(InstanceState currentState)
The current state of the instance.InstanceStateChange.Builder
instanceId(String instanceId)
The ID of the instance.default InstanceStateChange.Builder
previousState(Consumer<InstanceState.Builder> previousState)
The previous state of the instance.InstanceStateChange.Builder
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 Detail
-
currentState
InstanceStateChange.Builder currentState(InstanceState 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
default InstanceStateChange.Builder currentState(Consumer<InstanceState.Builder> 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:
currentState(InstanceState)
-
instanceId
InstanceStateChange.Builder instanceId(String 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
InstanceStateChange.Builder previousState(InstanceState 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
default InstanceStateChange.Builder previousState(Consumer<InstanceState.Builder> 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:
previousState(InstanceState)
-
-