Interface ListBlockingInstancesForCapacityTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListBlockingInstancesForCapacityTaskResponse.Builder,,ListBlockingInstancesForCapacityTaskResponse> OutpostsResponse.Builder,SdkBuilder<ListBlockingInstancesForCapacityTaskResponse.Builder,,ListBlockingInstancesForCapacityTaskResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListBlockingInstancesForCapacityTaskResponse
@Mutable
@NotThreadSafe
public static interface ListBlockingInstancesForCapacityTaskResponse.Builder
extends OutpostsResponse.Builder, SdkPojo, CopyableBuilder<ListBlockingInstancesForCapacityTaskResponse.Builder,ListBlockingInstancesForCapacityTaskResponse>
-
Method Summary
Modifier and TypeMethodDescriptionblockingInstances(Collection<BlockingInstance> blockingInstances) A list of all running Amazon EC2 instances on the Outpost.blockingInstances(Consumer<BlockingInstance.Builder>... blockingInstances) A list of all running Amazon EC2 instances on the Outpost.blockingInstances(BlockingInstance... blockingInstances) A list of all running Amazon EC2 instances on the Outpost.Sets the value of the NextToken property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.outposts.model.OutpostsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
blockingInstances
ListBlockingInstancesForCapacityTaskResponse.Builder blockingInstances(Collection<BlockingInstance> blockingInstances) A list of all running Amazon EC2 instances on the Outpost. Stopping one or more of these instances can free up the capacity needed to run the capacity task.
- Parameters:
blockingInstances- A list of all running Amazon EC2 instances on the Outpost. Stopping one or more of these instances can 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.
-
blockingInstances
ListBlockingInstancesForCapacityTaskResponse.Builder blockingInstances(BlockingInstance... blockingInstances) A list of all running Amazon EC2 instances on the Outpost. Stopping one or more of these instances can free up the capacity needed to run the capacity task.
- Parameters:
blockingInstances- A list of all running Amazon EC2 instances on the Outpost. Stopping one or more of these instances can 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.
-
blockingInstances
ListBlockingInstancesForCapacityTaskResponse.Builder blockingInstances(Consumer<BlockingInstance.Builder>... blockingInstances) A list of all running Amazon EC2 instances on the Outpost. Stopping one or more of these instances can free up the capacity needed to run the capacity task.
This is a convenience method that creates an instance of theBlockingInstance.Builderavoiding the need to create one manually viaBlockingInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toblockingInstances(List<BlockingInstance>).- Parameters:
blockingInstances- a consumer that will call methods onBlockingInstance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-