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 Details

    • Builder

      public Builder()
  • Method Details

    • userArn

      @Stability(Stable) public UserAttributes.Builder userArn(String userArn)
      Sets the value of UserAttributes.getUserArn()
      Parameters:
      userArn - The ARN of the user. This parameter is required. Format: arn::iam::invalid input: '<'account-id>:user/invalid input: '<'user-name-with-path>
      Returns:
      this
    • build

      @Stability(Stable) public UserAttributes build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<UserAttributes>
      Returns:
      a new instance of UserAttributes
      Throws:
      NullPointerException - if any required attribute was not provided