Interface StartCapacityTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<StartCapacityTaskResponse.Builder,
,StartCapacityTaskResponse> OutpostsResponse.Builder
,SdkBuilder<StartCapacityTaskResponse.Builder,
,StartCapacityTaskResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
StartCapacityTaskResponse
-
Method Summary
Modifier and TypeMethodDescriptioncapacityTaskId
(String capacityTaskId) ID of the capacity task that you want to start.capacityTaskStatus
(String capacityTaskStatus) Status of the specified capacity task.capacityTaskStatus
(CapacityTaskStatus capacityTaskStatus) Status of the specified capacity task.completionDate
(Instant completionDate) Date that the specified capacity task ran successfully.creationDate
(Instant creationDate) Date that the specified capacity task was created.Results of the dry run showing if the specified capacity task is above or below the available instance capacity.failed
(Consumer<CapacityTaskFailure.Builder> failed) Reason that the specified capacity task failed.failed
(CapacityTaskFailure failed) Reason that the specified capacity task failed.lastModifiedDate
(Instant lastModifiedDate) Date that the specified capacity task was last modified.ID of the Amazon Web Services Outposts order of the host associated with the capacity task.ID of the Outpost associated with the capacity task.requestedInstancePools
(Collection<InstanceTypeCapacity> requestedInstancePools) List of the instance pools requested in the specified capacity task.requestedInstancePools
(Consumer<InstanceTypeCapacity.Builder>... requestedInstancePools) List of the instance pools requested in the specified capacity task.requestedInstancePools
(InstanceTypeCapacity... requestedInstancePools) List of the instance pools requested in the specified capacity task.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
capacityTaskId
ID of the capacity task that you want to start.
- Parameters:
capacityTaskId
- ID of the capacity task that you want to start.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostId
ID of the Outpost associated with the capacity task.
- Parameters:
outpostId
- ID of the Outpost associated with the 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 of the host associated with the capacity task.
- Parameters:
orderId
- ID of the Amazon Web Services Outposts order of the host associated with the capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestedInstancePools
StartCapacityTaskResponse.Builder requestedInstancePools(Collection<InstanceTypeCapacity> requestedInstancePools) List of the instance pools requested in the specified capacity task.
- Parameters:
requestedInstancePools
- List of the instance pools requested in the specified capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestedInstancePools
StartCapacityTaskResponse.Builder requestedInstancePools(InstanceTypeCapacity... requestedInstancePools) List of the instance pools requested in the specified capacity task.
- Parameters:
requestedInstancePools
- List of the instance pools requested in the specified capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestedInstancePools
StartCapacityTaskResponse.Builder requestedInstancePools(Consumer<InstanceTypeCapacity.Builder>... requestedInstancePools) List of the instance pools requested in the specified 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:
-
dryRun
Results of the dry run showing if the specified capacity task is above or below the available instance capacity.
- Parameters:
dryRun
- Results of the dry run showing if the specified capacity task is above or below the available instance capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityTaskStatus
Status of the specified capacity task.
- Parameters:
capacityTaskStatus
- Status of the specified capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityTaskStatus
Status of the specified capacity task.
- Parameters:
capacityTaskStatus
- Status of the specified capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failed
Reason that the specified capacity task failed.
- Parameters:
failed
- Reason that the specified capacity task failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failed
Reason that the specified 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
Date that the specified capacity task was created.
- Parameters:
creationDate
- Date that the specified capacity task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completionDate
Date that the specified capacity task ran successfully.
- Parameters:
completionDate
- Date that the specified capacity task ran successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedDate
Date that the specified capacity task was last modified.
- Parameters:
lastModifiedDate
- Date that the specified capacity task was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-