Class InstanceProfileReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.iam.InstanceProfileReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceProfileReference>
- Enclosing interface:
InstanceProfileReference
@Stability(Stable)
public static final class InstanceProfileReference.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceProfileReference>
A builder for
InstanceProfileReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceProfileArn(String instanceProfileArn) Sets the value ofInstanceProfileReference.getInstanceProfileArn()instanceProfileName(String instanceProfileName) Sets the value ofInstanceProfileReference.getInstanceProfileName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceProfileArn
@Stability(Stable) public InstanceProfileReference.Builder instanceProfileArn(String instanceProfileArn) Sets the value ofInstanceProfileReference.getInstanceProfileArn()- Parameters:
instanceProfileArn- The ARN of the InstanceProfile resource. This parameter is required.- Returns:
this
-
instanceProfileName
@Stability(Stable) public InstanceProfileReference.Builder instanceProfileName(String instanceProfileName) Sets the value ofInstanceProfileReference.getInstanceProfileName()- Parameters:
instanceProfileName- The InstanceProfileName of the InstanceProfile resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InstanceProfileReference>- Returns:
- a new instance of
InstanceProfileReference - Throws:
NullPointerException- if any required attribute was not provided
-