Interface InstanceStatus.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<InstanceStatus.Builder,,InstanceStatus> SdkBuilder<InstanceStatus.Builder,,InstanceStatus> SdkPojo
- Enclosing class:
 InstanceStatus
public static interface InstanceStatus.Builder
extends SdkPojo, CopyableBuilder<InstanceStatus.Builder,InstanceStatus> 
- 
Method Summary
Modifier and TypeMethodDescriptionThe current state of the instance.state(InstanceState state) The current state of the instance.default InstanceStatus.BuilderstateChangeReason(Consumer<InstanceStateChangeReason.Builder> stateChangeReason) The details of the status change reason for the instance.stateChangeReason(InstanceStateChangeReason stateChangeReason) The details of the status change reason for the instance.default InstanceStatus.Buildertimeline(Consumer<InstanceTimeline.Builder> timeline) The timeline of the instance status over time.timeline(InstanceTimeline timeline) The timeline of the instance status over time.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, sdkFields 
- 
Method Details
- 
state
The current state of the instance.
- Parameters:
 state- The current state of the instance.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
state
The current state of the instance.
- Parameters:
 state- The current state of the instance.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
stateChangeReason
The details of the status change reason for the instance.
- Parameters:
 stateChangeReason- The details of the status change reason for the instance.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
stateChangeReason
default InstanceStatus.Builder stateChangeReason(Consumer<InstanceStateChangeReason.Builder> stateChangeReason) The details of the status change reason for the instance.
This is a convenience method that creates an instance of theInstanceStateChangeReason.Builderavoiding the need to create one manually viaInstanceStateChangeReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostateChangeReason(InstanceStateChangeReason).- Parameters:
 stateChangeReason- a consumer that will call methods onInstanceStateChangeReason.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
timeline
The timeline of the instance status over time.
- Parameters:
 timeline- The timeline of the instance status over time.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
timeline
The timeline of the instance status over time.
This is a convenience method that creates an instance of theInstanceTimeline.Builderavoiding the need to create one manually viaInstanceTimeline.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeline(InstanceTimeline).- Parameters:
 timeline- a consumer that will call methods onInstanceTimeline.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -