Class CfnCapacityReservationPropsMixin.CommitmentInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnCapacityReservationPropsMixin.CommitmentInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityReservationPropsMixin.CommitmentInfoProperty>
- Enclosing interface:
CfnCapacityReservationPropsMixin.CommitmentInfoProperty
@Stability(Stable)
public static final class CfnCapacityReservationPropsMixin.CommitmentInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityReservationPropsMixin.CommitmentInfoProperty>
A builder for
CfnCapacityReservationPropsMixin.CommitmentInfoProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.commitmentEndDate(String commitmentEndDate) committedInstanceCount(Number committedInstanceCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
commitmentEndDate
@Stability(Stable) public CfnCapacityReservationPropsMixin.CommitmentInfoProperty.Builder commitmentEndDate(String commitmentEndDate) - Parameters:
commitmentEndDate- The date and time at which the commitment duration expires, in the ISO8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ). You can't decrease the instance count or cancel the Capacity Reservation before this date and time.- Returns:
this
-
committedInstanceCount
@Stability(Stable) public CfnCapacityReservationPropsMixin.CommitmentInfoProperty.Builder committedInstanceCount(Number committedInstanceCount) Sets the value ofCfnCapacityReservationPropsMixin.CommitmentInfoProperty.getCommittedInstanceCount()- Parameters:
committedInstanceCount- The instance capacity that you committed to when you requested the future-dated Capacity Reservation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityReservationPropsMixin.CommitmentInfoProperty>- Returns:
- a new instance of
CfnCapacityReservationPropsMixin.CommitmentInfoProperty - Throws:
NullPointerException- if any required attribute was not provided
-