Interface CancelSpotInstanceRequestsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CancelSpotInstanceRequestsResponse.Builder,
,CancelSpotInstanceRequestsResponse> Ec2Response.Builder
,SdkBuilder<CancelSpotInstanceRequestsResponse.Builder,
,CancelSpotInstanceRequestsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CancelSpotInstanceRequestsResponse
public static interface CancelSpotInstanceRequestsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CancelSpotInstanceRequestsResponse.Builder,CancelSpotInstanceRequestsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncancelledSpotInstanceRequests
(Collection<CancelledSpotInstanceRequest> cancelledSpotInstanceRequests) The Spot Instance requests.cancelledSpotInstanceRequests
(Consumer<CancelledSpotInstanceRequest.Builder>... cancelledSpotInstanceRequests) The Spot Instance requests.cancelledSpotInstanceRequests
(CancelledSpotInstanceRequest... cancelledSpotInstanceRequests) The Spot Instance requests.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
cancelledSpotInstanceRequests
CancelSpotInstanceRequestsResponse.Builder cancelledSpotInstanceRequests(Collection<CancelledSpotInstanceRequest> cancelledSpotInstanceRequests) The Spot Instance requests.
- Parameters:
cancelledSpotInstanceRequests
- The Spot Instance requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cancelledSpotInstanceRequests
CancelSpotInstanceRequestsResponse.Builder cancelledSpotInstanceRequests(CancelledSpotInstanceRequest... cancelledSpotInstanceRequests) The Spot Instance requests.
- Parameters:
cancelledSpotInstanceRequests
- The Spot Instance requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cancelledSpotInstanceRequests
CancelSpotInstanceRequestsResponse.Builder cancelledSpotInstanceRequests(Consumer<CancelledSpotInstanceRequest.Builder>... cancelledSpotInstanceRequests) The Spot Instance requests.
This is a convenience method that creates an instance of theCancelledSpotInstanceRequest.Builder
avoiding the need to create one manually viaCancelledSpotInstanceRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocancelledSpotInstanceRequests(List<CancelledSpotInstanceRequest>)
.- Parameters:
cancelledSpotInstanceRequests
- a consumer that will call methods onCancelledSpotInstanceRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-