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