Class CfnInstancePropsMixin.CreditSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstancePropsMixin.CreditSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.CreditSpecificationProperty>
- Enclosing interface:
CfnInstancePropsMixin.CreditSpecificationProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.CreditSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.CreditSpecificationProperty>
A builder for
CfnInstancePropsMixin.CreditSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cpuCredits(String cpuCredits) Sets the value ofCfnInstancePropsMixin.CreditSpecificationProperty.getCpuCredits()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpuCredits
@Stability(Stable) public CfnInstancePropsMixin.CreditSpecificationProperty.Builder cpuCredits(String cpuCredits) Sets the value ofCfnInstancePropsMixin.CreditSpecificationProperty.getCpuCredits()- Parameters:
cpuCredits- The credit option for CPU usage of the instance. Valid values:standard|unlimitedT3 instances with
hosttenancy do not support theunlimitedCPU credit option.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.CreditSpecificationProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.CreditSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-