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