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 TypeMethodDescriptionbuild()Builds the configured instance.reservationTypes(List<String> reservationTypes) Sets the value ofCfnEC2Fleet.ReservedCapacityOptionsRequestProperty.getReservationTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
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
-