Interface CreateFleetResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateFleetResponse.Builder,CreateFleetResponse>
,Ec2Response.Builder
,SdkBuilder<CreateFleetResponse.Builder,CreateFleetResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateFleetResponse
public static interface CreateFleetResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateFleetResponse.Builder,CreateFleetResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateFleetResponse.Builder
errors(Collection<CreateFleetError> errors)
Information about the instances that could not be launched by the fleet.CreateFleetResponse.Builder
errors(Consumer<CreateFleetError.Builder>... errors)
Information about the instances that could not be launched by the fleet.CreateFleetResponse.Builder
errors(CreateFleetError... errors)
Information about the instances that could not be launched by the fleet.CreateFleetResponse.Builder
fleetId(String fleetId)
The ID of the EC2 Fleet.CreateFleetResponse.Builder
instances(Collection<CreateFleetInstance> instances)
Information about the instances that were launched by the fleet.CreateFleetResponse.Builder
instances(Consumer<CreateFleetInstance.Builder>... instances)
Information about the instances that were launched by the fleet.CreateFleetResponse.Builder
instances(CreateFleetInstance... instances)
Information about the instances that were launched by the fleet.-
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
-
fleetId
CreateFleetResponse.Builder fleetId(String 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.
-
errors
CreateFleetResponse.Builder errors(Collection<CreateFleetError> errors)
Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.- Parameters:
errors
- Information about the instances that could not be launched by the fleet. Supported only for fleets of typeinstant
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
CreateFleetResponse.Builder errors(CreateFleetError... errors)
Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.- Parameters:
errors
- Information about the instances that could not be launched by the fleet. Supported only for fleets of typeinstant
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
CreateFleetResponse.Builder errors(Consumer<CreateFleetError.Builder>... errors)
Information about the instances that could not be launched by the fleet. Supported only for fleets of type
This is a convenience method that creates an instance of theinstant
.CreateFleetError.Builder
avoiding the need to create one manually viaCreateFleetError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#errors(List
.) - Parameters:
errors
- a consumer that will call methods onCreateFleetError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#errors(java.util.Collection
)
-
instances
CreateFleetResponse.Builder instances(Collection<CreateFleetInstance> instances)
Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.- Parameters:
instances
- Information about the instances that were launched by the fleet. Supported only for fleets of typeinstant
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
CreateFleetResponse.Builder instances(CreateFleetInstance... instances)
Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.- Parameters:
instances
- Information about the instances that were launched by the fleet. Supported only for fleets of typeinstant
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
CreateFleetResponse.Builder instances(Consumer<CreateFleetInstance.Builder>... instances)
Information about the instances that were launched by the fleet. Supported only for fleets of type
This is a convenience method that creates an instance of theinstant
.CreateFleetInstance.Builder
avoiding the need to create one manually viaCreateFleetInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#instances(List
.) - Parameters:
instances
- a consumer that will call methods onCreateFleetInstance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#instances(java.util.Collection
)
-
-