Interface CreateCapacityReservationFleetResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateCapacityReservationFleetResponse.Builder,,CreateCapacityReservationFleetResponse> Ec2Response.Builder,SdkBuilder<CreateCapacityReservationFleetResponse.Builder,,CreateCapacityReservationFleetResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateCapacityReservationFleetResponse
-
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) The allocation strategy used by the Capacity Reservation Fleet.capacityReservationFleetId(String capacityReservationFleetId) The ID of the Capacity Reservation Fleet.createTime(Instant createTime) The date and time at which the Capacity Reservation Fleet was created.The date and time at which the Capacity Reservation Fleet expires.fleetCapacityReservations(Collection<FleetCapacityReservation> fleetCapacityReservations) Information about the individual Capacity Reservations in the Capacity Reservation Fleet.fleetCapacityReservations(Consumer<FleetCapacityReservation.Builder>... fleetCapacityReservations) Information about the individual Capacity Reservations in the Capacity Reservation Fleet.fleetCapacityReservations(FleetCapacityReservation... fleetCapacityReservations) Information about the individual Capacity Reservations in the Capacity Reservation Fleet.instanceMatchCriteria(String instanceMatchCriteria) The instance matching criteria for the Capacity Reservation Fleet.instanceMatchCriteria(FleetInstanceMatchCriteria instanceMatchCriteria) The instance matching criteria for the Capacity Reservation Fleet.The status of the Capacity Reservation Fleet.The status of the Capacity Reservation Fleet.tags(Collection<Tag> tags) The tags assigned to the Capacity Reservation Fleet.tags(Consumer<Tag.Builder>... tags) The tags assigned to the Capacity Reservation Fleet.The tags assigned to the Capacity Reservation Fleet.Indicates the tenancy of Capacity Reservation Fleet.tenancy(FleetCapacityReservationTenancy tenancy) Indicates the tenancy of Capacity Reservation Fleet.totalFulfilledCapacity(Double totalFulfilledCapacity) The requested capacity units that have been successfully reserved.totalTargetCapacity(Integer totalTargetCapacity) The total number of capacity units for which the Capacity Reservation Fleet reserves capacity.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
-
capacityReservationFleetId
CreateCapacityReservationFleetResponse.Builder capacityReservationFleetId(String capacityReservationFleetId) The ID of the Capacity Reservation Fleet.
- Parameters:
capacityReservationFleetId- The ID of the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The status of the Capacity Reservation Fleet.
- Parameters:
state- The status of the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The status of the Capacity Reservation Fleet.
- Parameters:
state- The status of the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalTargetCapacity
The total number of capacity units for which the Capacity Reservation Fleet reserves capacity.
- Parameters:
totalTargetCapacity- The total number of capacity units for which the Capacity Reservation Fleet reserves capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalFulfilledCapacity
CreateCapacityReservationFleetResponse.Builder totalFulfilledCapacity(Double totalFulfilledCapacity) The requested capacity units that have been successfully reserved.
- Parameters:
totalFulfilledCapacity- The requested capacity units that have been successfully reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMatchCriteria
The instance matching criteria for the Capacity Reservation Fleet.
- Parameters:
instanceMatchCriteria- The instance matching criteria for the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceMatchCriteria
CreateCapacityReservationFleetResponse.Builder instanceMatchCriteria(FleetInstanceMatchCriteria instanceMatchCriteria) The instance matching criteria for the Capacity Reservation Fleet.
- Parameters:
instanceMatchCriteria- The instance matching criteria for the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allocationStrategy
The allocation strategy used by the Capacity Reservation Fleet.
- Parameters:
allocationStrategy- The allocation strategy used by the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
The date and time at which the Capacity Reservation Fleet was created.
- Parameters:
createTime- The date and time at which the Capacity Reservation Fleet was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
The date and time at which the Capacity Reservation Fleet expires.
- Parameters:
endDate- The date and time at which the Capacity Reservation Fleet expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tenancy
Indicates the tenancy of Capacity Reservation Fleet.
- Parameters:
tenancy- Indicates the tenancy of Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tenancy
Indicates the tenancy of Capacity Reservation Fleet.
- Parameters:
tenancy- Indicates the tenancy of Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fleetCapacityReservations
CreateCapacityReservationFleetResponse.Builder fleetCapacityReservations(Collection<FleetCapacityReservation> fleetCapacityReservations) Information about the individual Capacity Reservations in the Capacity Reservation Fleet.
- Parameters:
fleetCapacityReservations- Information about the individual Capacity Reservations in the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetCapacityReservations
CreateCapacityReservationFleetResponse.Builder fleetCapacityReservations(FleetCapacityReservation... fleetCapacityReservations) Information about the individual Capacity Reservations in the Capacity Reservation Fleet.
- Parameters:
fleetCapacityReservations- Information about the individual Capacity Reservations in the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetCapacityReservations
CreateCapacityReservationFleetResponse.Builder fleetCapacityReservations(Consumer<FleetCapacityReservation.Builder>... fleetCapacityReservations) Information about the individual Capacity Reservations in the Capacity Reservation Fleet.
This is a convenience method that creates an instance of theFleetCapacityReservation.Builderavoiding the need to create one manually viaFleetCapacityReservation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofleetCapacityReservations(List<FleetCapacityReservation>).- Parameters:
fleetCapacityReservations- a consumer that will call methods onFleetCapacityReservation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags assigned to the Capacity Reservation Fleet.
- Parameters:
tags- The tags assigned to the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the Capacity Reservation Fleet.
- Parameters:
tags- The tags assigned to the Capacity Reservation Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the Capacity Reservation Fleet.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-