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