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