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