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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceStatus.Builder
state(String state)
The current state of the instance.InstanceStatus.Builder
state(InstanceState state)
The current state of the instance.default InstanceStatus.Builder
stateChangeReason(Consumer<InstanceStateChangeReason.Builder> stateChangeReason)
The details of the status change reason for the instance.InstanceStatus.Builder
stateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.default InstanceStatus.Builder
timeline(Consumer<InstanceTimeline.Builder> timeline)
The timeline of the instance status over time.InstanceStatus.Builder
timeline(InstanceTimeline timeline)
The timeline of the instance status over time.-
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
-
state
InstanceStatus.Builder state(String 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:
InstanceState
,InstanceState
-
state
InstanceStatus.Builder state(InstanceState 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:
InstanceState
,InstanceState
-
stateChangeReason
InstanceStatus.Builder stateChangeReason(InstanceStateChangeReason 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.Builder
avoiding the need to create one manually viaInstanceStateChangeReason.builder()
.When the
Consumer
completes,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:
stateChangeReason(InstanceStateChangeReason)
-
timeline
InstanceStatus.Builder timeline(InstanceTimeline 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
default InstanceStatus.Builder timeline(Consumer<InstanceTimeline.Builder> timeline)
The timeline of the instance status over time.
This is a convenience method that creates an instance of theInstanceTimeline.Builder
avoiding the need to create one manually viaInstanceTimeline.builder()
.When the
Consumer
completes,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:
timeline(InstanceTimeline)
-
-