Interface CreateFleetResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateFleetResponse.Builder,,CreateFleetResponse> Ec2Response.Builder,SdkBuilder<CreateFleetResponse.Builder,,CreateFleetResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateFleetResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrors(Collection<CreateFleetError> errors) Information about the instances that could not be launched by the fleet.errors(Consumer<CreateFleetError.Builder>... errors) Information about the instances that could not be launched by the fleet.errors(CreateFleetError... errors) Information about the instances that could not be launched by the fleet.The ID of the EC2 Fleet.instances(Collection<CreateFleetInstance> instances) Information about the instances that were launched by the fleet.instances(Consumer<CreateFleetInstance.Builder>... instances) Information about the instances that were launched by the fleet.instances(CreateFleetInstance... instances) Information about the instances that were launched by the fleet.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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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.Builderavoiding the need to create one manually viaCreateFleetError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<CreateFleetError>).- 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:
-
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
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
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.Builderavoiding the need to create one manually viaCreateFleetInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstances(List<CreateFleetInstance>).- 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:
-