Interface LaunchTemplateCapacityReservationSpecificationResponse.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateCapacityReservationSpecificationResponse.Builder,LaunchTemplateCapacityReservationSpecificationResponse>
,SdkBuilder<LaunchTemplateCapacityReservationSpecificationResponse.Builder,LaunchTemplateCapacityReservationSpecificationResponse>
,SdkPojo
- Enclosing class:
- LaunchTemplateCapacityReservationSpecificationResponse
public static interface LaunchTemplateCapacityReservationSpecificationResponse.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateCapacityReservationSpecificationResponse.Builder,LaunchTemplateCapacityReservationSpecificationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LaunchTemplateCapacityReservationSpecificationResponse.Builder
capacityReservationPreference(String capacityReservationPreference)
Indicates the instance's Capacity Reservation preferences.LaunchTemplateCapacityReservationSpecificationResponse.Builder
capacityReservationPreference(CapacityReservationPreference capacityReservationPreference)
Indicates the instance's Capacity Reservation preferences.default LaunchTemplateCapacityReservationSpecificationResponse.Builder
capacityReservationTarget(Consumer<CapacityReservationTargetResponse.Builder> capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.LaunchTemplateCapacityReservationSpecificationResponse.Builder
capacityReservationTarget(CapacityReservationTargetResponse capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
capacityReservationPreference
LaunchTemplateCapacityReservationSpecificationResponse.Builder capacityReservationPreference(String capacityReservationPreference)
Indicates the instance's Capacity Reservation preferences. Possible preferences include:
-
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). -
none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- Parameters:
capacityReservationPreference
- Indicates the instance's Capacity Reservation preferences. Possible preferences include:-
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). -
none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationPreference
,CapacityReservationPreference
-
-
capacityReservationPreference
LaunchTemplateCapacityReservationSpecificationResponse.Builder capacityReservationPreference(CapacityReservationPreference capacityReservationPreference)
Indicates the instance's Capacity Reservation preferences. Possible preferences include:
-
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). -
none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- Parameters:
capacityReservationPreference
- Indicates the instance's Capacity Reservation preferences. Possible preferences include:-
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). -
none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationPreference
,CapacityReservationPreference
-
-
capacityReservationTarget
LaunchTemplateCapacityReservationSpecificationResponse.Builder capacityReservationTarget(CapacityReservationTargetResponse capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.
- Parameters:
capacityReservationTarget
- Information about the target Capacity Reservation or Capacity Reservation group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationTarget
default LaunchTemplateCapacityReservationSpecificationResponse.Builder capacityReservationTarget(Consumer<CapacityReservationTargetResponse.Builder> capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.
This is a convenience method that creates an instance of theCapacityReservationTargetResponse.Builder
avoiding the need to create one manually viaCapacityReservationTargetResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservationTarget(CapacityReservationTargetResponse)
.- Parameters:
capacityReservationTarget
- a consumer that will call methods onCapacityReservationTargetResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
capacityReservationTarget(CapacityReservationTargetResponse)
-
-