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