Interface GetCapacityTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCapacityTaskResponse.Builder,
,GetCapacityTaskResponse> OutpostsResponse.Builder
,SdkBuilder<GetCapacityTaskResponse.Builder,
,GetCapacityTaskResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCapacityTaskResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Outpost asset.capacityTaskId
(String capacityTaskId) ID of the capacity task.capacityTaskStatus
(String capacityTaskStatus) Status of the capacity task.capacityTaskStatus
(CapacityTaskStatus capacityTaskStatus) Status of the capacity task.completionDate
(Instant completionDate) The date the capacity task ran successfully.creationDate
(Instant creationDate) The date the capacity task was created.Performs a dry run to determine if you are above or below instance capacity.default GetCapacityTaskResponse.Builder
failed
(Consumer<CapacityTaskFailure.Builder> failed) Reason why the capacity task failed.failed
(CapacityTaskFailure failed) Reason why the capacity task failed.default GetCapacityTaskResponse.Builder
instancesToExclude
(Consumer<InstancesToExclude.Builder> instancesToExclude) Instances that the user specified they cannot stop in order to free up the capacity needed to run the capacity task.instancesToExclude
(InstancesToExclude instancesToExclude) Instances that the user specified they cannot stop in order to free up the capacity needed to run the capacity task.lastModifiedDate
(Instant lastModifiedDate) The date the capacity task was last modified.ID of the Amazon Web Services Outposts order associated with the specified capacity task.ID of the Outpost associated with the specified capacity task.requestedInstancePools
(Collection<InstanceTypeCapacity> requestedInstancePools) List of instance pools requested in the capacity task.requestedInstancePools
(Consumer<InstanceTypeCapacity.Builder>... requestedInstancePools) List of instance pools requested in the capacity task.requestedInstancePools
(InstanceTypeCapacity... requestedInstancePools) List of instance pools requested in the capacity task.taskActionOnBlockingInstances
(String taskActionOnBlockingInstances) User-specified option in case an instance is blocking the capacity task from running.taskActionOnBlockingInstances
(TaskActionOnBlockingInstances taskActionOnBlockingInstances) User-specified option in case an instance is blocking the capacity task from running.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.outposts.model.OutpostsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
capacityTaskId
ID of the capacity task.
- Parameters:
capacityTaskId
- ID of the capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostId
ID of the Outpost associated with the specified capacity task.
- Parameters:
outpostId
- ID of the Outpost associated with the specified capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orderId
ID of the Amazon Web Services Outposts order associated with the specified capacity task.
- Parameters:
orderId
- ID of the Amazon Web Services Outposts order associated with the specified capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetId
The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.
- Parameters:
assetId
- The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestedInstancePools
GetCapacityTaskResponse.Builder requestedInstancePools(Collection<InstanceTypeCapacity> requestedInstancePools) List of instance pools requested in the capacity task.
- Parameters:
requestedInstancePools
- List of instance pools requested in the capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestedInstancePools
GetCapacityTaskResponse.Builder requestedInstancePools(InstanceTypeCapacity... requestedInstancePools) List of instance pools requested in the capacity task.
- Parameters:
requestedInstancePools
- List of instance pools requested in the capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestedInstancePools
GetCapacityTaskResponse.Builder requestedInstancePools(Consumer<InstanceTypeCapacity.Builder>... requestedInstancePools) List of instance pools requested in the capacity task.
This is a convenience method that creates an instance of theInstanceTypeCapacity.Builder
avoiding the need to create one manually viaInstanceTypeCapacity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequestedInstancePools(List<InstanceTypeCapacity>)
.- Parameters:
requestedInstancePools
- a consumer that will call methods onInstanceTypeCapacity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instancesToExclude
Instances that the user specified they cannot stop in order to free up the capacity needed to run the capacity task.
- Parameters:
instancesToExclude
- Instances that the user specified they cannot stop in order to free up the capacity needed to run the capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instancesToExclude
default GetCapacityTaskResponse.Builder instancesToExclude(Consumer<InstancesToExclude.Builder> instancesToExclude) Instances that the user specified they cannot stop in order to free up the capacity needed to run the capacity task.
This is a convenience method that creates an instance of theInstancesToExclude.Builder
avoiding the need to create one manually viaInstancesToExclude.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstancesToExclude(InstancesToExclude)
.- Parameters:
instancesToExclude
- a consumer that will call methods onInstancesToExclude.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Performs a dry run to determine if you are above or below instance capacity.
- Parameters:
dryRun
- Performs a dry run to determine if you are above or below instance capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityTaskStatus
Status of the capacity task.
A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
FAILED
- The capacity task could not be completed. -
COMPLETED
- The capacity task has completed successfully. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run. -
CANCELLATION_IN_PROGRESS
- The capacity task has been cancelled and is in the process of cleaning up resources. -
CANCELLED
- The capacity task is cancelled.
- Parameters:
capacityTaskStatus
- Status of the capacity task.A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
FAILED
- The capacity task could not be completed. -
COMPLETED
- The capacity task has completed successfully. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run. -
CANCELLATION_IN_PROGRESS
- The capacity task has been cancelled and is in the process of cleaning up resources. -
CANCELLED
- The capacity task is cancelled.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
capacityTaskStatus
Status of the capacity task.
A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
FAILED
- The capacity task could not be completed. -
COMPLETED
- The capacity task has completed successfully. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run. -
CANCELLATION_IN_PROGRESS
- The capacity task has been cancelled and is in the process of cleaning up resources. -
CANCELLED
- The capacity task is cancelled.
- Parameters:
capacityTaskStatus
- Status of the capacity task.A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
FAILED
- The capacity task could not be completed. -
COMPLETED
- The capacity task has completed successfully. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run. -
CANCELLATION_IN_PROGRESS
- The capacity task has been cancelled and is in the process of cleaning up resources. -
CANCELLED
- The capacity task is cancelled.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
failed
Reason why the capacity task failed.
- Parameters:
failed
- Reason why the capacity task failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failed
Reason why the capacity task failed.
This is a convenience method that creates an instance of theCapacityTaskFailure.Builder
avoiding the need to create one manually viaCapacityTaskFailure.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailed(CapacityTaskFailure)
.- Parameters:
failed
- a consumer that will call methods onCapacityTaskFailure.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationDate
The date the capacity task was created.
- Parameters:
creationDate
- The date the capacity task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completionDate
The date the capacity task ran successfully.
- Parameters:
completionDate
- The date the capacity task ran successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedDate
The date the capacity task was last modified.
- Parameters:
lastModifiedDate
- The date the capacity task was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskActionOnBlockingInstances
User-specified option in case an instance is blocking the capacity task from running. Shows one of the following options:
-
WAIT_FOR_EVACUATION
- Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task. -
FAIL_TASK
- The capacity task fails.
- Parameters:
taskActionOnBlockingInstances
- User-specified option in case an instance is blocking the capacity task from running. Shows one of the following options:-
WAIT_FOR_EVACUATION
- Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task. -
FAIL_TASK
- The capacity task fails.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
taskActionOnBlockingInstances
GetCapacityTaskResponse.Builder taskActionOnBlockingInstances(TaskActionOnBlockingInstances taskActionOnBlockingInstances) User-specified option in case an instance is blocking the capacity task from running. Shows one of the following options:
-
WAIT_FOR_EVACUATION
- Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task. -
FAIL_TASK
- The capacity task fails.
- Parameters:
taskActionOnBlockingInstances
- User-specified option in case an instance is blocking the capacity task from running. Shows one of the following options:-
WAIT_FOR_EVACUATION
- Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task. -
FAIL_TASK
- The capacity task fails.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-