Class UserAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.iam.UserAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserAttributes>
- Enclosing interface:
- UserAttributes
@Stability(Stable)
public static final class UserAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<UserAttributes>
A builder for
UserAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofUserAttributes.getUserArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userArn
Sets the value ofUserAttributes.getUserArn()
- Parameters:
userArn
- The ARN of the user. This parameter is required. Format: arn::iam::<account-id>:user/<user-name-with-path> - Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserAttributes>
- Returns:
- a new instance of
UserAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-