Interface InstanceGroupStatus.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceGroupStatus.Builder,
,InstanceGroupStatus> SdkBuilder<InstanceGroupStatus.Builder,
,InstanceGroupStatus> SdkPojo
- Enclosing class:
InstanceGroupStatus
public static interface InstanceGroupStatus.Builder
extends SdkPojo, CopyableBuilder<InstanceGroupStatus.Builder,InstanceGroupStatus>
-
Method Summary
Modifier and TypeMethodDescriptionThe current state of the instance group.state
(InstanceGroupState state) The current state of the instance group.default InstanceGroupStatus.Builder
stateChangeReason
(Consumer<InstanceGroupStateChangeReason.Builder> stateChangeReason) The status change reason details for the instance group.stateChangeReason
(InstanceGroupStateChangeReason stateChangeReason) The status change reason details for the instance group.default InstanceGroupStatus.Builder
timeline
(Consumer<InstanceGroupTimeline.Builder> timeline) The timeline of the instance group status over time.timeline
(InstanceGroupTimeline timeline) The timeline of the instance group 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 Details
-
state
The current state of the instance group.
- Parameters:
state
- The current state of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the instance group.
- Parameters:
state
- The current state of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateChangeReason
The status change reason details for the instance group.
- Parameters:
stateChangeReason
- The status change reason details for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateChangeReason
default InstanceGroupStatus.Builder stateChangeReason(Consumer<InstanceGroupStateChangeReason.Builder> stateChangeReason) The status change reason details for the instance group.
This is a convenience method that creates an instance of theInstanceGroupStateChangeReason.Builder
avoiding the need to create one manually viaInstanceGroupStateChangeReason.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostateChangeReason(InstanceGroupStateChangeReason)
.- Parameters:
stateChangeReason
- a consumer that will call methods onInstanceGroupStateChangeReason.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeline
The timeline of the instance group status over time.
- Parameters:
timeline
- The timeline of the instance group status over time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeline
The timeline of the instance group status over time.
This is a convenience method that creates an instance of theInstanceGroupTimeline.Builder
avoiding the need to create one manually viaInstanceGroupTimeline.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeline(InstanceGroupTimeline)
.- Parameters:
timeline
- a consumer that will call methods onInstanceGroupTimeline.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-