Interface InstanceFleetStatus.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceFleetStatus.Builder,InstanceFleetStatus>,SdkBuilder<InstanceFleetStatus.Builder,InstanceFleetStatus>,SdkPojo
- Enclosing class:
- InstanceFleetStatus
public static interface InstanceFleetStatus.Builder extends SdkPojo, CopyableBuilder<InstanceFleetStatus.Builder,InstanceFleetStatus>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceFleetStatus.Builderstate(String state)A code representing the instance fleet status.InstanceFleetStatus.Builderstate(InstanceFleetState state)A code representing the instance fleet status.default InstanceFleetStatus.BuilderstateChangeReason(Consumer<InstanceFleetStateChangeReason.Builder> stateChangeReason)Provides status change reason details for the instance fleet.InstanceFleetStatus.BuilderstateChangeReason(InstanceFleetStateChangeReason stateChangeReason)Provides status change reason details for the instance fleet.default InstanceFleetStatus.Buildertimeline(Consumer<InstanceFleetTimeline.Builder> timeline)Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.InstanceFleetStatus.Buildertimeline(InstanceFleetTimeline timeline)Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.-
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
-
state
InstanceFleetStatus.Builder state(String state)
A code representing the instance fleet status.
-
PROVISIONING—The instance fleet is provisioning Amazon EC2 resources and is not yet ready to run jobs. -
BOOTSTRAPPING—Amazon EC2 instances and other resources have been provisioned and the bootstrap actions specified for the instances are underway. -
RUNNING—Amazon EC2 instances and other resources are running. They are either executing jobs or waiting to execute jobs. -
RESIZING—A resize operation is underway. Amazon EC2 instances are either being added or removed. -
SUSPENDED—A resize operation could not complete. Existing Amazon EC2 instances are running, but instances can't be added or removed. -
TERMINATING—The instance fleet is terminating Amazon EC2 instances. -
TERMINATED—The instance fleet is no longer active, and all Amazon EC2 instances have been terminated.
- Parameters:
state- A code representing the instance fleet status.-
PROVISIONING—The instance fleet is provisioning Amazon EC2 resources and is not yet ready to run jobs. -
BOOTSTRAPPING—Amazon EC2 instances and other resources have been provisioned and the bootstrap actions specified for the instances are underway. -
RUNNING—Amazon EC2 instances and other resources are running. They are either executing jobs or waiting to execute jobs. -
RESIZING—A resize operation is underway. Amazon EC2 instances are either being added or removed. -
SUSPENDED—A resize operation could not complete. Existing Amazon EC2 instances are running, but instances can't be added or removed. -
TERMINATING—The instance fleet is terminating Amazon EC2 instances. -
TERMINATED—The instance fleet is no longer active, and all Amazon EC2 instances have been terminated.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceFleetState,InstanceFleetState
-
-
state
InstanceFleetStatus.Builder state(InstanceFleetState state)
A code representing the instance fleet status.
-
PROVISIONING—The instance fleet is provisioning Amazon EC2 resources and is not yet ready to run jobs. -
BOOTSTRAPPING—Amazon EC2 instances and other resources have been provisioned and the bootstrap actions specified for the instances are underway. -
RUNNING—Amazon EC2 instances and other resources are running. They are either executing jobs or waiting to execute jobs. -
RESIZING—A resize operation is underway. Amazon EC2 instances are either being added or removed. -
SUSPENDED—A resize operation could not complete. Existing Amazon EC2 instances are running, but instances can't be added or removed. -
TERMINATING—The instance fleet is terminating Amazon EC2 instances. -
TERMINATED—The instance fleet is no longer active, and all Amazon EC2 instances have been terminated.
- Parameters:
state- A code representing the instance fleet status.-
PROVISIONING—The instance fleet is provisioning Amazon EC2 resources and is not yet ready to run jobs. -
BOOTSTRAPPING—Amazon EC2 instances and other resources have been provisioned and the bootstrap actions specified for the instances are underway. -
RUNNING—Amazon EC2 instances and other resources are running. They are either executing jobs or waiting to execute jobs. -
RESIZING—A resize operation is underway. Amazon EC2 instances are either being added or removed. -
SUSPENDED—A resize operation could not complete. Existing Amazon EC2 instances are running, but instances can't be added or removed. -
TERMINATING—The instance fleet is terminating Amazon EC2 instances. -
TERMINATED—The instance fleet is no longer active, and all Amazon EC2 instances have been terminated.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceFleetState,InstanceFleetState
-
-
stateChangeReason
InstanceFleetStatus.Builder stateChangeReason(InstanceFleetStateChangeReason stateChangeReason)
Provides status change reason details for the instance fleet.
- Parameters:
stateChangeReason- Provides status change reason details for the instance fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateChangeReason
default InstanceFleetStatus.Builder stateChangeReason(Consumer<InstanceFleetStateChangeReason.Builder> stateChangeReason)
Provides status change reason details for the instance fleet.
This is a convenience method that creates an instance of theInstanceFleetStateChangeReason.Builderavoiding the need to create one manually viaInstanceFleetStateChangeReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostateChangeReason(InstanceFleetStateChangeReason).- Parameters:
stateChangeReason- a consumer that will call methods onInstanceFleetStateChangeReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
stateChangeReason(InstanceFleetStateChangeReason)
-
timeline
InstanceFleetStatus.Builder timeline(InstanceFleetTimeline timeline)
Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.
- Parameters:
timeline- Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeline
default InstanceFleetStatus.Builder timeline(Consumer<InstanceFleetTimeline.Builder> timeline)
Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.
This is a convenience method that creates an instance of theInstanceFleetTimeline.Builderavoiding the need to create one manually viaInstanceFleetTimeline.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeline(InstanceFleetTimeline).- Parameters:
timeline- a consumer that will call methods onInstanceFleetTimeline.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeline(InstanceFleetTimeline)
-
-