Class CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.ReservedCapacityOptionsRequestProperty>
- Enclosing interface:
CfnEC2Fleet.ReservedCapacityOptionsRequestProperty
@Stability(Stable)
public static final class CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.ReservedCapacityOptionsRequestProperty>
A builder for
CfnEC2Fleet.ReservedCapacityOptionsRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) build()Builds the configured instance.capacityReservationTarget(IResolvable capacityReservationTarget) capacityReservationTarget(CfnEC2Fleet.CapacityReservationTargetRequestProperty capacityReservationTarget) reservationTypes(List<String> reservationTypes) Sets the value ofCfnEC2Fleet.ReservedCapacityOptionsRequestProperty.getReservationTypes()reservedCapacityFallbackOptions(IResolvable reservedCapacityFallbackOptions) reservedCapacityFallbackOptions(CfnEC2Fleet.ReservedCapacityFallbackOptionsRequestProperty reservedCapacityFallbackOptions)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStrategy
@Stability(Stable) public CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder allocationStrategy(String allocationStrategy) - Parameters:
allocationStrategy- the value to be set.- Returns:
this
-
capacityReservationTarget
@Stability(Stable) public CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder capacityReservationTarget(IResolvable capacityReservationTarget) - Parameters:
capacityReservationTarget- the value to be set.- Returns:
this
-
capacityReservationTarget
@Stability(Stable) public CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder capacityReservationTarget(CfnEC2Fleet.CapacityReservationTargetRequestProperty capacityReservationTarget) - Parameters:
capacityReservationTarget- the value to be set.- Returns:
this
-
reservationTypes
@Stability(Stable) public CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder reservationTypes(List<String> reservationTypes) Sets the value ofCfnEC2Fleet.ReservedCapacityOptionsRequestProperty.getReservationTypes()- Parameters:
reservationTypes- the value to be set.- Returns:
this
-
reservedCapacityFallbackOptions
@Stability(Stable) public CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder reservedCapacityFallbackOptions(IResolvable reservedCapacityFallbackOptions) Sets the value ofCfnEC2Fleet.ReservedCapacityOptionsRequestProperty.getReservedCapacityFallbackOptions()- Parameters:
reservedCapacityFallbackOptions- the value to be set.- Returns:
this
-
reservedCapacityFallbackOptions
@Stability(Stable) public CfnEC2Fleet.ReservedCapacityOptionsRequestProperty.Builder reservedCapacityFallbackOptions(CfnEC2Fleet.ReservedCapacityFallbackOptionsRequestProperty reservedCapacityFallbackOptions) Sets the value ofCfnEC2Fleet.ReservedCapacityOptionsRequestProperty.getReservedCapacityFallbackOptions()- Parameters:
reservedCapacityFallbackOptions- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2Fleet.ReservedCapacityOptionsRequestProperty>- Returns:
- a new instance of
CfnEC2Fleet.ReservedCapacityOptionsRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-