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