/* * Copyright 2018-2023 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.cognitoidp.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Represents the response from the server from the request to get the specified user as an administrator. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AdminGetUserResult extends com.amazonaws.AmazonWebServiceResult* The user name of the user about whom you're receiving information. *
*/ private String username; /** ** An array of name-value pairs representing user attributes. *
*/ private java.util.List* The date the user was created. *
*/ private java.util.Date userCreateDate; /** ** The date the user was last modified. *
*/ private java.util.Date userLastModifiedDate; /** *
* Indicates that the status is enabled
.
*
* The user status. Can be one of the following: *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can * sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first * sign-in, the user must change their password to a new value before doing anything else. *
** This response parameter is no longer supported. It provides information only about SMS MFA configurations. * It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To * look up information about either type of MFA configuration, use UserMFASettingList instead. *
*/ private java.util.List* The user's preferred MFA setting. *
*/ private String preferredMfaSetting; /** *
* The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
* SOFTWARE_TOKEN_MFA
.
*
* The user name of the user about whom you're receiving information. *
* * @param username * The user name of the user about whom you're receiving information. */ public void setUsername(String username) { this.username = username; } /** ** The user name of the user about whom you're receiving information. *
* * @return The user name of the user about whom you're receiving information. */ public String getUsername() { return this.username; } /** ** The user name of the user about whom you're receiving information. *
* * @param username * The user name of the user about whom you're receiving information. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withUsername(String username) { setUsername(username); return this; } /** ** An array of name-value pairs representing user attributes. *
* * @return An array of name-value pairs representing user attributes. */ public java.util.List* An array of name-value pairs representing user attributes. *
* * @param userAttributes * An array of name-value pairs representing user attributes. */ public void setUserAttributes(java.util.Collection* An array of name-value pairs representing user attributes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserAttributes(java.util.Collection)} or {@link #withUserAttributes(java.util.Collection)} if you want * to override the existing values. *
* * @param userAttributes * An array of name-value pairs representing user attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withUserAttributes(AttributeType... userAttributes) { if (this.userAttributes == null) { setUserAttributes(new java.util.ArrayList* An array of name-value pairs representing user attributes. *
* * @param userAttributes * An array of name-value pairs representing user attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withUserAttributes(java.util.Collection* The date the user was created. *
* * @param userCreateDate * The date the user was created. */ public void setUserCreateDate(java.util.Date userCreateDate) { this.userCreateDate = userCreateDate; } /** ** The date the user was created. *
* * @return The date the user was created. */ public java.util.Date getUserCreateDate() { return this.userCreateDate; } /** ** The date the user was created. *
* * @param userCreateDate * The date the user was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withUserCreateDate(java.util.Date userCreateDate) { setUserCreateDate(userCreateDate); return this; } /** ** The date the user was last modified. *
* * @param userLastModifiedDate * The date the user was last modified. */ public void setUserLastModifiedDate(java.util.Date userLastModifiedDate) { this.userLastModifiedDate = userLastModifiedDate; } /** ** The date the user was last modified. *
* * @return The date the user was last modified. */ public java.util.Date getUserLastModifiedDate() { return this.userLastModifiedDate; } /** ** The date the user was last modified. *
* * @param userLastModifiedDate * The date the user was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withUserLastModifiedDate(java.util.Date userLastModifiedDate) { setUserLastModifiedDate(userLastModifiedDate); return this; } /** *
* Indicates that the status is enabled
.
*
enabled
.
*/
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
*
* Indicates that the status is enabled
.
*
enabled
.
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
*
* Indicates that the status is enabled
.
*
enabled
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AdminGetUserResult withEnabled(Boolean enabled) {
setEnabled(enabled);
return this;
}
/**
*
* Indicates that the status is enabled
.
*
enabled
.
*/
public Boolean isEnabled() {
return this.enabled;
}
/**
* * The user status. Can be one of the following: *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can * sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first * sign-in, the user must change their password to a new value before doing anything else. *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they * can sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on * first sign-in, the user must change their password to a new value before doing anything else. *
** The user status. Can be one of the following: *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can * sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first * sign-in, the user must change their password to a new value before doing anything else. *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they * can sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on * first sign-in, the user must change their password to a new value before doing anything else. *
** The user status. Can be one of the following: *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can * sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first * sign-in, the user must change their password to a new value before doing anything else. *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they * can sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on * first sign-in, the user must change their password to a new value before doing anything else. *
** The user status. Can be one of the following: *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can * sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first * sign-in, the user must change their password to a new value before doing anything else. *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they * can sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on * first sign-in, the user must change their password to a new value before doing anything else. *
** The user status. Can be one of the following: *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can * sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first * sign-in, the user must change their password to a new value before doing anything else. *
** UNCONFIRMED - User has been created but not confirmed. *
** CONFIRMED - User has been confirmed. *
** ARCHIVED - User is no longer active. *
** UNKNOWN - User status isn't known. *
** RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they * can sign in. *
** FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on * first sign-in, the user must change their password to a new value before doing anything else. *
** This response parameter is no longer supported. It provides information only about SMS MFA configurations. * It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To * look up information about either type of MFA configuration, use UserMFASettingList instead. *
* * @return This response parameter is no longer supported. It provides information only about SMS MFA * configurations. It doesn't provide information about time-based one-time password (TOTP) software token * MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList * instead. */ public java.util.List* This response parameter is no longer supported. It provides information only about SMS MFA configurations. * It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To * look up information about either type of MFA configuration, use UserMFASettingList instead. *
* * @param mFAOptions * This response parameter is no longer supported. It provides information only about SMS MFA * configurations. It doesn't provide information about time-based one-time password (TOTP) software token * MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList * instead. */ public void setMFAOptions(java.util.Collection* This response parameter is no longer supported. It provides information only about SMS MFA configurations. * It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To * look up information about either type of MFA configuration, use UserMFASettingList instead. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMFAOptions(java.util.Collection)} or {@link #withMFAOptions(java.util.Collection)} if you want to * override the existing values. *
* * @param mFAOptions * This response parameter is no longer supported. It provides information only about SMS MFA * configurations. It doesn't provide information about time-based one-time password (TOTP) software token * MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList * instead. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withMFAOptions(MFAOptionType... mFAOptions) { if (this.mFAOptions == null) { setMFAOptions(new java.util.ArrayList* This response parameter is no longer supported. It provides information only about SMS MFA configurations. * It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To * look up information about either type of MFA configuration, use UserMFASettingList instead. *
* * @param mFAOptions * This response parameter is no longer supported. It provides information only about SMS MFA * configurations. It doesn't provide information about time-based one-time password (TOTP) software token * MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList * instead. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withMFAOptions(java.util.Collection* The user's preferred MFA setting. *
* * @param preferredMfaSetting * The user's preferred MFA setting. */ public void setPreferredMfaSetting(String preferredMfaSetting) { this.preferredMfaSetting = preferredMfaSetting; } /** ** The user's preferred MFA setting. *
* * @return The user's preferred MFA setting. */ public String getPreferredMfaSetting() { return this.preferredMfaSetting; } /** ** The user's preferred MFA setting. *
* * @param preferredMfaSetting * The user's preferred MFA setting. * @return Returns a reference to this object so that method calls can be chained together. */ public AdminGetUserResult withPreferredMfaSetting(String preferredMfaSetting) { setPreferredMfaSetting(preferredMfaSetting); return this; } /** *
* The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
* SOFTWARE_TOKEN_MFA
.
*
SMS_MFA
and SOFTWARE_TOKEN_MFA
.
*/
public java.util.List
* The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
* SOFTWARE_TOKEN_MFA
.
*
SMS_MFA
* and SOFTWARE_TOKEN_MFA
.
*/
public void setUserMFASettingList(java.util.Collection
* The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
* SOFTWARE_TOKEN_MFA
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserMFASettingList(java.util.Collection)} or {@link #withUserMFASettingList(java.util.Collection)} if * you want to override the existing values. *
* * @param userMFASettingList * The MFA options that are activated for the user. The possible values in this list areSMS_MFA
* and SOFTWARE_TOKEN_MFA
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AdminGetUserResult withUserMFASettingList(String... userMFASettingList) {
if (this.userMFASettingList == null) {
setUserMFASettingList(new java.util.ArrayList
* The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
* SOFTWARE_TOKEN_MFA
.
*
SMS_MFA
* and SOFTWARE_TOKEN_MFA
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AdminGetUserResult withUserMFASettingList(java.util.Collection