Interface StartCapacityTaskResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<StartCapacityTaskResponse.Builder,StartCapacityTaskResponse>,OutpostsResponse.Builder,SdkBuilder<StartCapacityTaskResponse.Builder,StartCapacityTaskResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- StartCapacityTaskResponse
public static interface StartCapacityTaskResponse.Builder extends OutpostsResponse.Builder, SdkPojo, CopyableBuilder<StartCapacityTaskResponse.Builder,StartCapacityTaskResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StartCapacityTaskResponse.BuildercapacityTaskId(String capacityTaskId)ID of the capacity task that you want to start.StartCapacityTaskResponse.BuildercapacityTaskStatus(String capacityTaskStatus)Status of the specified capacity task.StartCapacityTaskResponse.BuildercapacityTaskStatus(CapacityTaskStatus capacityTaskStatus)Status of the specified capacity task.StartCapacityTaskResponse.BuildercompletionDate(Instant completionDate)Date that the specified capacity task ran successfully.StartCapacityTaskResponse.BuildercreationDate(Instant creationDate)Date that the specified capacity task was created.StartCapacityTaskResponse.BuilderdryRun(Boolean dryRun)Results of the dry run showing if the specified capacity task is above or below the available instance capacity.default StartCapacityTaskResponse.Builderfailed(Consumer<CapacityTaskFailure.Builder> failed)Reason that the specified capacity task failed.StartCapacityTaskResponse.Builderfailed(CapacityTaskFailure failed)Reason that the specified capacity task failed.StartCapacityTaskResponse.BuilderlastModifiedDate(Instant lastModifiedDate)Date that the specified capacity task was last modified.StartCapacityTaskResponse.BuilderorderId(String orderId)ID of the Amazon Web Services Outposts order of the host associated with the capacity task.StartCapacityTaskResponse.BuilderoutpostId(String outpostId)ID of the Outpost associated with the capacity task.StartCapacityTaskResponse.BuilderrequestedInstancePools(Collection<InstanceTypeCapacity> requestedInstancePools)List of the instance pools requested in the specified capacity task.StartCapacityTaskResponse.BuilderrequestedInstancePools(Consumer<InstanceTypeCapacity.Builder>... requestedInstancePools)List of the instance pools requested in the specified capacity task.StartCapacityTaskResponse.BuilderrequestedInstancePools(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 Detail
-
capacityTaskId
StartCapacityTaskResponse.Builder capacityTaskId(String 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
StartCapacityTaskResponse.Builder outpostId(String 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
StartCapacityTaskResponse.Builder orderId(String 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.Builderavoiding the need to create one manually viaInstanceTypeCapacity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#requestedInstancePools(List.) - 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:
#requestedInstancePools(java.util.Collection)
-
dryRun
StartCapacityTaskResponse.Builder dryRun(Boolean 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
StartCapacityTaskResponse.Builder capacityTaskStatus(String 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,CapacityTaskStatus
-
capacityTaskStatus
StartCapacityTaskResponse.Builder capacityTaskStatus(CapacityTaskStatus 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,CapacityTaskStatus
-
failed
StartCapacityTaskResponse.Builder failed(CapacityTaskFailure 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
default StartCapacityTaskResponse.Builder failed(Consumer<CapacityTaskFailure.Builder> failed)
Reason that the specified capacity task failed.
This is a convenience method that creates an instance of theCapacityTaskFailure.Builderavoiding the need to create one manually viaCapacityTaskFailure.builder().When the
Consumercompletes,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:
failed(CapacityTaskFailure)
-
creationDate
StartCapacityTaskResponse.Builder creationDate(Instant 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
StartCapacityTaskResponse.Builder completionDate(Instant 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
StartCapacityTaskResponse.Builder lastModifiedDate(Instant 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.
-
-