Class CfnEC2Fleet.IamInstanceProfileSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.IamInstanceProfileSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.IamInstanceProfileSpecificationProperty>
- Enclosing interface:
CfnEC2Fleet.IamInstanceProfileSpecificationProperty
@Stability(Stable)
public static final class CfnEC2Fleet.IamInstanceProfileSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.IamInstanceProfileSpecificationProperty>
A builder for
CfnEC2Fleet.IamInstanceProfileSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEC2Fleet.IamInstanceProfileSpecificationProperty.getArn()build()Builds the configured instance.Sets the value ofCfnEC2Fleet.IamInstanceProfileSpecificationProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
@Stability(Stable) public CfnEC2Fleet.IamInstanceProfileSpecificationProperty.Builder arn(String arn) Sets the value ofCfnEC2Fleet.IamInstanceProfileSpecificationProperty.getArn()- Parameters:
arn- the value to be set.- Returns:
this
-
name
@Stability(Stable) public CfnEC2Fleet.IamInstanceProfileSpecificationProperty.Builder name(String name) Sets the value ofCfnEC2Fleet.IamInstanceProfileSpecificationProperty.getName()- Parameters:
name- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2Fleet.IamInstanceProfileSpecificationProperty>- Returns:
- a new instance of
CfnEC2Fleet.IamInstanceProfileSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-