All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.quicksight.model.User Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.quicksight.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A registered user of Amazon QuickSight. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class User implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) for the user. *

*/ private String arn; /** *

* The user's user name. This value is required if you are registering a user that will be managed in Amazon * QuickSight. In the output, the value for UserName is N/A when the value for * IdentityType is IAM and the corresponding IAM user is deleted. *

*/ private String userName; /** *

* The user's email address. *

*/ private String email; /** *

* The Amazon QuickSight role for the user. The user role can be one of the following:. *

*
    *
  • *

    * READER: A user who has read-only access to dashboards. *

    *
  • *
  • *

    * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

    *
  • *
  • *

    * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

    *
  • *
  • *

    * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have access * to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive summaries from * dashboards. *

    *
  • *
  • *

    * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can author * dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for Q&A, and * generate executive summaries from dashboards. *

    *
  • *
  • *

    * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative settings. * Admin Pro users are billed at Author Pro pricing. *

    *
  • *
  • *

    * RESTRICTED_READER: This role isn't currently available for use. *

    *
  • *
  • *

    * RESTRICTED_AUTHOR: This role isn't currently available for use. *

    *
  • *
*/ private String role; /** *

* The type of identity authentication used by the user. *

*/ private String identityType; /** *

* The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. *

*/ private Boolean active; /** *

* The principal ID of the user. *

*/ private String principalId; /** *

* The custom permissions profile associated with this user. *

*/ private String customPermissionsName; /** *

* The type of supported external login provider that provides identity to let the user federate into Amazon * QuickSight with an associated IAM role. The type can be one of the following. *

*
    *
  • *

    * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. *

    *
  • *
  • *

    * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. *

    *
  • *
*/ private String externalLoginFederationProviderType; /** *

* The URL of the external login provider. *

*/ private String externalLoginFederationProviderUrl; /** *

* The identity ID for the user in the external login provider. *

*/ private String externalLoginId; /** *

* The Amazon Resource Name (ARN) for the user. *

* * @param arn * The Amazon Resource Name (ARN) for the user. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) for the user. *

* * @return The Amazon Resource Name (ARN) for the user. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) for the user. *

* * @param arn * The Amazon Resource Name (ARN) for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withArn(String arn) { setArn(arn); return this; } /** *

* The user's user name. This value is required if you are registering a user that will be managed in Amazon * QuickSight. In the output, the value for UserName is N/A when the value for * IdentityType is IAM and the corresponding IAM user is deleted. *

* * @param userName * The user's user name. This value is required if you are registering a user that will be managed in Amazon * QuickSight. In the output, the value for UserName is N/A when the value for * IdentityType is IAM and the corresponding IAM user is deleted. */ public void setUserName(String userName) { this.userName = userName; } /** *

* The user's user name. This value is required if you are registering a user that will be managed in Amazon * QuickSight. In the output, the value for UserName is N/A when the value for * IdentityType is IAM and the corresponding IAM user is deleted. *

* * @return The user's user name. This value is required if you are registering a user that will be managed in Amazon * QuickSight. In the output, the value for UserName is N/A when the value for * IdentityType is IAM and the corresponding IAM user is deleted. */ public String getUserName() { return this.userName; } /** *

* The user's user name. This value is required if you are registering a user that will be managed in Amazon * QuickSight. In the output, the value for UserName is N/A when the value for * IdentityType is IAM and the corresponding IAM user is deleted. *

* * @param userName * The user's user name. This value is required if you are registering a user that will be managed in Amazon * QuickSight. In the output, the value for UserName is N/A when the value for * IdentityType is IAM and the corresponding IAM user is deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public User withUserName(String userName) { setUserName(userName); return this; } /** *

* The user's email address. *

* * @param email * The user's email address. */ public void setEmail(String email) { this.email = email; } /** *

* The user's email address. *

* * @return The user's email address. */ public String getEmail() { return this.email; } /** *

* The user's email address. *

* * @param email * The user's email address. * @return Returns a reference to this object so that method calls can be chained together. */ public User withEmail(String email) { setEmail(email); return this; } /** *

* The Amazon QuickSight role for the user. The user role can be one of the following:. *

*
    *
  • *

    * READER: A user who has read-only access to dashboards. *

    *
  • *
  • *

    * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

    *
  • *
  • *

    * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

    *
  • *
  • *

    * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have access * to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive summaries from * dashboards. *

    *
  • *
  • *

    * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can author * dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for Q&A, and * generate executive summaries from dashboards. *

    *
  • *
  • *

    * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative settings. * Admin Pro users are billed at Author Pro pricing. *

    *
  • *
  • *

    * RESTRICTED_READER: This role isn't currently available for use. *

    *
  • *
  • *

    * RESTRICTED_AUTHOR: This role isn't currently available for use. *

    *
  • *
* * @param role * The Amazon QuickSight role for the user. The user role can be one of the following:.

*
    *
  • *

    * READER: A user who has read-only access to dashboards. *

    *
  • *
  • *

    * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

    *
  • *
  • *

    * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

    *
  • *
  • *

    * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have * access to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive * summaries from dashboards. *

    *
  • *
  • *

    * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can * author dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for * Q&A, and generate executive summaries from dashboards. *

    *
  • *
  • *

    * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative * settings. Admin Pro users are billed at Author Pro pricing. *

    *
  • *
  • *

    * RESTRICTED_READER: This role isn't currently available for use. *

    *
  • *
  • *

    * RESTRICTED_AUTHOR: This role isn't currently available for use. *

    *
  • * @see UserRole */ public void setRole(String role) { this.role = role; } /** *

    * The Amazon QuickSight role for the user. The user role can be one of the following:. *

    *
      *
    • *

      * READER: A user who has read-only access to dashboards. *

      *
    • *
    • *

      * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

      *
    • *
    • *

      * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

      *
    • *
    • *

      * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have access * to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive summaries from * dashboards. *

      *
    • *
    • *

      * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can author * dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for Q&A, and * generate executive summaries from dashboards. *

      *
    • *
    • *

      * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative settings. * Admin Pro users are billed at Author Pro pricing. *

      *
    • *
    • *

      * RESTRICTED_READER: This role isn't currently available for use. *

      *
    • *
    • *

      * RESTRICTED_AUTHOR: This role isn't currently available for use. *

      *
    • *
    * * @return The Amazon QuickSight role for the user. The user role can be one of the following:.

    *
      *
    • *

      * READER: A user who has read-only access to dashboards. *

      *
    • *
    • *

      * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

      *
    • *
    • *

      * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

      *
    • *
    • *

      * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have * access to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive * summaries from dashboards. *

      *
    • *
    • *

      * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can * author dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for * Q&A, and generate executive summaries from dashboards. *

      *
    • *
    • *

      * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative * settings. Admin Pro users are billed at Author Pro pricing. *

      *
    • *
    • *

      * RESTRICTED_READER: This role isn't currently available for use. *

      *
    • *
    • *

      * RESTRICTED_AUTHOR: This role isn't currently available for use. *

      *
    • * @see UserRole */ public String getRole() { return this.role; } /** *

      * The Amazon QuickSight role for the user. The user role can be one of the following:. *

      *
        *
      • *

        * READER: A user who has read-only access to dashboards. *

        *
      • *
      • *

        * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

        *
      • *
      • *

        * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

        *
      • *
      • *

        * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have access * to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive summaries from * dashboards. *

        *
      • *
      • *

        * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can author * dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for Q&A, and * generate executive summaries from dashboards. *

        *
      • *
      • *

        * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative settings. * Admin Pro users are billed at Author Pro pricing. *

        *
      • *
      • *

        * RESTRICTED_READER: This role isn't currently available for use. *

        *
      • *
      • *

        * RESTRICTED_AUTHOR: This role isn't currently available for use. *

        *
      • *
      * * @param role * The Amazon QuickSight role for the user. The user role can be one of the following:.

      *
        *
      • *

        * READER: A user who has read-only access to dashboards. *

        *
      • *
      • *

        * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

        *
      • *
      • *

        * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

        *
      • *
      • *

        * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have * access to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive * summaries from dashboards. *

        *
      • *
      • *

        * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can * author dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for * Q&A, and generate executive summaries from dashboards. *

        *
      • *
      • *

        * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative * settings. Admin Pro users are billed at Author Pro pricing. *

        *
      • *
      • *

        * RESTRICTED_READER: This role isn't currently available for use. *

        *
      • *
      • *

        * RESTRICTED_AUTHOR: This role isn't currently available for use. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see UserRole */ public User withRole(String role) { setRole(role); return this; } /** *

        * The Amazon QuickSight role for the user. The user role can be one of the following:. *

        *
          *
        • *

          * READER: A user who has read-only access to dashboards. *

          *
        • *
        • *

          * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

          *
        • *
        • *

          * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

          *
        • *
        • *

          * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have access * to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive summaries from * dashboards. *

          *
        • *
        • *

          * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can author * dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for Q&A, and * generate executive summaries from dashboards. *

          *
        • *
        • *

          * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative settings. * Admin Pro users are billed at Author Pro pricing. *

          *
        • *
        • *

          * RESTRICTED_READER: This role isn't currently available for use. *

          *
        • *
        • *

          * RESTRICTED_AUTHOR: This role isn't currently available for use. *

          *
        • *
        * * @param role * The Amazon QuickSight role for the user. The user role can be one of the following:.

        *
          *
        • *

          * READER: A user who has read-only access to dashboards. *

          *
        • *
        • *

          * AUTHOR: A user who can create data sources, datasets, analyses, and dashboards. *

          *
        • *
        • *

          * ADMIN: A user who is an author, who can also manage Amazon Amazon QuickSight settings. *

          *
        • *
        • *

          * READER_PRO: Reader Pro adds Generative BI capabilities to the Reader role. Reader Pros have * access to Amazon Q in Amazon QuickSight, can build stories with Amazon Q, and can generate executive * summaries from dashboards. *

          *
        • *
        • *

          * AUTHOR_PRO: Author Pro adds Generative BI capabilities to the Author role. Author Pros can * author dashboards with natural language with Amazon Q, build stories with Amazon Q, create Topics for * Q&A, and generate executive summaries from dashboards. *

          *
        • *
        • *

          * ADMIN_PRO: Admin Pros are Author Pros who can also manage Amazon QuickSight administrative * settings. Admin Pro users are billed at Author Pro pricing. *

          *
        • *
        • *

          * RESTRICTED_READER: This role isn't currently available for use. *

          *
        • *
        • *

          * RESTRICTED_AUTHOR: This role isn't currently available for use. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see UserRole */ public User withRole(UserRole role) { this.role = role.toString(); return this; } /** *

          * The type of identity authentication used by the user. *

          * * @param identityType * The type of identity authentication used by the user. * @see IdentityType */ public void setIdentityType(String identityType) { this.identityType = identityType; } /** *

          * The type of identity authentication used by the user. *

          * * @return The type of identity authentication used by the user. * @see IdentityType */ public String getIdentityType() { return this.identityType; } /** *

          * The type of identity authentication used by the user. *

          * * @param identityType * The type of identity authentication used by the user. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityType */ public User withIdentityType(String identityType) { setIdentityType(identityType); return this; } /** *

          * The type of identity authentication used by the user. *

          * * @param identityType * The type of identity authentication used by the user. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityType */ public User withIdentityType(IdentityType identityType) { this.identityType = identityType.toString(); return this; } /** *

          * The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. *

          * * @param active * The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. */ public void setActive(Boolean active) { this.active = active; } /** *

          * The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. *

          * * @return The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. */ public Boolean getActive() { return this.active; } /** *

          * The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. *

          * * @param active * The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. * @return Returns a reference to this object so that method calls can be chained together. */ public User withActive(Boolean active) { setActive(active); return this; } /** *

          * The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. *

          * * @return The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active * Directory user, that user is inactive until they sign in and provide a password. */ public Boolean isActive() { return this.active; } /** *

          * The principal ID of the user. *

          * * @param principalId * The principal ID of the user. */ public void setPrincipalId(String principalId) { this.principalId = principalId; } /** *

          * The principal ID of the user. *

          * * @return The principal ID of the user. */ public String getPrincipalId() { return this.principalId; } /** *

          * The principal ID of the user. *

          * * @param principalId * The principal ID of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withPrincipalId(String principalId) { setPrincipalId(principalId); return this; } /** *

          * The custom permissions profile associated with this user. *

          * * @param customPermissionsName * The custom permissions profile associated with this user. */ public void setCustomPermissionsName(String customPermissionsName) { this.customPermissionsName = customPermissionsName; } /** *

          * The custom permissions profile associated with this user. *

          * * @return The custom permissions profile associated with this user. */ public String getCustomPermissionsName() { return this.customPermissionsName; } /** *

          * The custom permissions profile associated with this user. *

          * * @param customPermissionsName * The custom permissions profile associated with this user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withCustomPermissionsName(String customPermissionsName) { setCustomPermissionsName(customPermissionsName); return this; } /** *

          * The type of supported external login provider that provides identity to let the user federate into Amazon * QuickSight with an associated IAM role. The type can be one of the following. *

          *
            *
          • *

            * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. *

            *
          • *
          • *

            * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. *

            *
          • *
          * * @param externalLoginFederationProviderType * The type of supported external login provider that provides identity to let the user federate into Amazon * QuickSight with an associated IAM role. The type can be one of the following.

          *
            *
          • *

            * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. *

            *
          • *
          • *

            * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. *

            *
          • */ public void setExternalLoginFederationProviderType(String externalLoginFederationProviderType) { this.externalLoginFederationProviderType = externalLoginFederationProviderType; } /** *

            * The type of supported external login provider that provides identity to let the user federate into Amazon * QuickSight with an associated IAM role. The type can be one of the following. *

            *
              *
            • *

              * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. *

              *
            • *
            • *

              * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. *

              *
            • *
            * * @return The type of supported external login provider that provides identity to let the user federate into Amazon * QuickSight with an associated IAM role. The type can be one of the following.

            *
              *
            • *

              * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. *

              *
            • *
            • *

              * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. *

              *
            • */ public String getExternalLoginFederationProviderType() { return this.externalLoginFederationProviderType; } /** *

              * The type of supported external login provider that provides identity to let the user federate into Amazon * QuickSight with an associated IAM role. The type can be one of the following. *

              *
                *
              • *

                * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. *

                *
              • *
              • *

                * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. *

                *
              • *
              * * @param externalLoginFederationProviderType * The type of supported external login provider that provides identity to let the user federate into Amazon * QuickSight with an associated IAM role. The type can be one of the following.

              *
                *
              • *

                * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. *

                *
              • *
              • *

                * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider. *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. */ public User withExternalLoginFederationProviderType(String externalLoginFederationProviderType) { setExternalLoginFederationProviderType(externalLoginFederationProviderType); return this; } /** *

                * The URL of the external login provider. *

                * * @param externalLoginFederationProviderUrl * The URL of the external login provider. */ public void setExternalLoginFederationProviderUrl(String externalLoginFederationProviderUrl) { this.externalLoginFederationProviderUrl = externalLoginFederationProviderUrl; } /** *

                * The URL of the external login provider. *

                * * @return The URL of the external login provider. */ public String getExternalLoginFederationProviderUrl() { return this.externalLoginFederationProviderUrl; } /** *

                * The URL of the external login provider. *

                * * @param externalLoginFederationProviderUrl * The URL of the external login provider. * @return Returns a reference to this object so that method calls can be chained together. */ public User withExternalLoginFederationProviderUrl(String externalLoginFederationProviderUrl) { setExternalLoginFederationProviderUrl(externalLoginFederationProviderUrl); return this; } /** *

                * The identity ID for the user in the external login provider. *

                * * @param externalLoginId * The identity ID for the user in the external login provider. */ public void setExternalLoginId(String externalLoginId) { this.externalLoginId = externalLoginId; } /** *

                * The identity ID for the user in the external login provider. *

                * * @return The identity ID for the user in the external login provider. */ public String getExternalLoginId() { return this.externalLoginId; } /** *

                * The identity ID for the user in the external login provider. *

                * * @param externalLoginId * The identity ID for the user in the external login provider. * @return Returns a reference to this object so that method calls can be chained together. */ public User withExternalLoginId(String externalLoginId) { setExternalLoginId(externalLoginId); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getEmail() != null) sb.append("Email: ").append(getEmail()).append(","); if (getRole() != null) sb.append("Role: ").append(getRole()).append(","); if (getIdentityType() != null) sb.append("IdentityType: ").append(getIdentityType()).append(","); if (getActive() != null) sb.append("Active: ").append(getActive()).append(","); if (getPrincipalId() != null) sb.append("PrincipalId: ").append(getPrincipalId()).append(","); if (getCustomPermissionsName() != null) sb.append("CustomPermissionsName: ").append(getCustomPermissionsName()).append(","); if (getExternalLoginFederationProviderType() != null) sb.append("ExternalLoginFederationProviderType: ").append(getExternalLoginFederationProviderType()).append(","); if (getExternalLoginFederationProviderUrl() != null) sb.append("ExternalLoginFederationProviderUrl: ").append(getExternalLoginFederationProviderUrl()).append(","); if (getExternalLoginId() != null) sb.append("ExternalLoginId: ").append(getExternalLoginId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof User == false) return false; User other = (User) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getEmail() == null ^ this.getEmail() == null) return false; if (other.getEmail() != null && other.getEmail().equals(this.getEmail()) == false) return false; if (other.getRole() == null ^ this.getRole() == null) return false; if (other.getRole() != null && other.getRole().equals(this.getRole()) == false) return false; if (other.getIdentityType() == null ^ this.getIdentityType() == null) return false; if (other.getIdentityType() != null && other.getIdentityType().equals(this.getIdentityType()) == false) return false; if (other.getActive() == null ^ this.getActive() == null) return false; if (other.getActive() != null && other.getActive().equals(this.getActive()) == false) return false; if (other.getPrincipalId() == null ^ this.getPrincipalId() == null) return false; if (other.getPrincipalId() != null && other.getPrincipalId().equals(this.getPrincipalId()) == false) return false; if (other.getCustomPermissionsName() == null ^ this.getCustomPermissionsName() == null) return false; if (other.getCustomPermissionsName() != null && other.getCustomPermissionsName().equals(this.getCustomPermissionsName()) == false) return false; if (other.getExternalLoginFederationProviderType() == null ^ this.getExternalLoginFederationProviderType() == null) return false; if (other.getExternalLoginFederationProviderType() != null && other.getExternalLoginFederationProviderType().equals(this.getExternalLoginFederationProviderType()) == false) return false; if (other.getExternalLoginFederationProviderUrl() == null ^ this.getExternalLoginFederationProviderUrl() == null) return false; if (other.getExternalLoginFederationProviderUrl() != null && other.getExternalLoginFederationProviderUrl().equals(this.getExternalLoginFederationProviderUrl()) == false) return false; if (other.getExternalLoginId() == null ^ this.getExternalLoginId() == null) return false; if (other.getExternalLoginId() != null && other.getExternalLoginId().equals(this.getExternalLoginId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getEmail() == null) ? 0 : getEmail().hashCode()); hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode()); hashCode = prime * hashCode + ((getIdentityType() == null) ? 0 : getIdentityType().hashCode()); hashCode = prime * hashCode + ((getActive() == null) ? 0 : getActive().hashCode()); hashCode = prime * hashCode + ((getPrincipalId() == null) ? 0 : getPrincipalId().hashCode()); hashCode = prime * hashCode + ((getCustomPermissionsName() == null) ? 0 : getCustomPermissionsName().hashCode()); hashCode = prime * hashCode + ((getExternalLoginFederationProviderType() == null) ? 0 : getExternalLoginFederationProviderType().hashCode()); hashCode = prime * hashCode + ((getExternalLoginFederationProviderUrl() == null) ? 0 : getExternalLoginFederationProviderUrl().hashCode()); hashCode = prime * hashCode + ((getExternalLoginId() == null) ? 0 : getExternalLoginId().hashCode()); return hashCode; } @Override public User clone() { try { return (User) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.quicksight.model.transform.UserMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy