Interface DescribeFleetInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeFleetInstancesResponse.Builder,,DescribeFleetInstancesResponse> Ec2Response.Builder,SdkBuilder<DescribeFleetInstancesResponse.Builder,,DescribeFleetInstancesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeFleetInstancesResponse
public static interface DescribeFleetInstancesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeFleetInstancesResponse.Builder,DescribeFleetInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionactiveInstances(Collection<ActiveInstance> activeInstances) The running instances.activeInstances(Consumer<ActiveInstance.Builder>... activeInstances) The running instances.activeInstances(ActiveInstance... activeInstances) The running instances.The ID of the EC2 Fleet.The token to include in another request to get the next page of items.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
DescribeFleetInstancesResponse.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.Builderavoiding the need to create one manually viaActiveInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactiveInstances(List<ActiveInstance>).- 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:
-
nextToken
The token to include in another request to get the next page of items. This value is
nullwhen 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 isnullwhen there are no more items to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetId
The ID of the EC2 Fleet.
- Parameters:
fleetId- The ID of the EC2 Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-