Class CfnCapacityReservationPropsMixin.CapacityAllocationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnCapacityReservationPropsMixin.CapacityAllocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityReservationPropsMixin.CapacityAllocationProperty>
- Enclosing interface:
CfnCapacityReservationPropsMixin.CapacityAllocationProperty
@Stability(Stable)
public static final class CfnCapacityReservationPropsMixin.CapacityAllocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityReservationPropsMixin.CapacityAllocationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationType(String allocationType) build()Builds the configured instance.Sets the value ofCfnCapacityReservationPropsMixin.CapacityAllocationProperty.getCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationType
@Stability(Stable) public CfnCapacityReservationPropsMixin.CapacityAllocationProperty.Builder allocationType(String allocationType) - Parameters:
allocationType- The usage type.usedindicates that the instance capacity is in use by instances that are running in the Capacity Reservation.- Returns:
this
-
count
@Stability(Stable) public CfnCapacityReservationPropsMixin.CapacityAllocationProperty.Builder count(Number count) Sets the value ofCfnCapacityReservationPropsMixin.CapacityAllocationProperty.getCount()- Parameters:
count- The amount of instance capacity associated with the usage. For example a value of4indicates that instance capacity for 4 instances is currently in use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityReservationPropsMixin.CapacityAllocationProperty>- Returns:
- a new instance of
CfnCapacityReservationPropsMixin.CapacityAllocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-