Interface DescribeSpotFleetInstancesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeSpotFleetInstancesResponse.Builder,DescribeSpotFleetInstancesResponse>
,Ec2Response.Builder
,SdkBuilder<DescribeSpotFleetInstancesResponse.Builder,DescribeSpotFleetInstancesResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- DescribeSpotFleetInstancesResponse
public static interface DescribeSpotFleetInstancesResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeSpotFleetInstancesResponse.Builder,DescribeSpotFleetInstancesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeSpotFleetInstancesResponse.Builder
activeInstances(Collection<ActiveInstance> activeInstances)
The running instances.DescribeSpotFleetInstancesResponse.Builder
activeInstances(Consumer<ActiveInstance.Builder>... activeInstances)
The running instances.DescribeSpotFleetInstancesResponse.Builder
activeInstances(ActiveInstance... activeInstances)
The running instances.DescribeSpotFleetInstancesResponse.Builder
nextToken(String nextToken)
The token to include in another request to get the next page of items.DescribeSpotFleetInstancesResponse.Builder
spotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.-
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 Detail
-
activeInstances
DescribeSpotFleetInstancesResponse.Builder activeInstances(Collection<ActiveInstance> activeInstances)
The running instances. This list is refreshed periodically and might be out of date.
- Parameters:
activeInstances
- The running instances. This list is refreshed periodically and might be out of date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeInstances
DescribeSpotFleetInstancesResponse.Builder activeInstances(ActiveInstance... activeInstances)
The running instances. This list is refreshed periodically and might be out of date.
- Parameters:
activeInstances
- The running instances. This list is refreshed periodically and might be out of date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeInstances
DescribeSpotFleetInstancesResponse.Builder activeInstances(Consumer<ActiveInstance.Builder>... activeInstances)
The running instances. This list is refreshed periodically and might be out of date.
This is a convenience method that creates an instance of theActiveInstance.Builder
avoiding the need to create one manually viaActiveInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#activeInstances(List
.) - Parameters:
activeInstances
- a consumer that will call methods onActiveInstance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#activeInstances(java.util.Collection
)
-
nextToken
DescribeSpotFleetInstancesResponse.Builder nextToken(String nextToken)
The token to include in another request to get the next page of items. This value is
null
when there are no more items to return.- Parameters:
nextToken
- The token to include in another request to get the next page of items. This value isnull
when there are no more items to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotFleetRequestId
DescribeSpotFleetInstancesResponse.Builder spotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot Fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-