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 Details

    • 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:
    • 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:
    • 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 the InstanceFleetStateChangeReason.Builder avoiding the need to create one manually via InstanceFleetStateChangeReason.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to stateChangeReason(InstanceFleetStateChangeReason).

      Parameters:
      stateChangeReason - a consumer that will call methods on InstanceFleetStateChangeReason.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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 the InstanceFleetTimeline.Builder avoiding the need to create one manually via InstanceFleetTimeline.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timeline(InstanceFleetTimeline).

      Parameters:
      timeline - a consumer that will call methods on InstanceFleetTimeline.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: