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