/* * 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 information about the user. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetUserResult extends com.amazonaws.AmazonWebServiceResult* The user name of the user you want to retrieve from the get user request. *
*/ private String username; /** ** An array of name-value pairs representing user attributes. *
*
* For custom attributes, you must prepend the custom:
prefix to the attribute name.
*
* 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 you want to retrieve from the get user request. *
* * @param username * The user name of the user you want to retrieve from the get user request. */ public void setUsername(String username) { this.username = username; } /** ** The user name of the user you want to retrieve from the get user request. *
* * @return The user name of the user you want to retrieve from the get user request. */ public String getUsername() { return this.username; } /** ** The user name of the user you want to retrieve from the get user request. *
* * @param username * The user name of the user you want to retrieve from the get user request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUserResult withUsername(String username) { setUsername(username); return this; } /** ** An array of name-value pairs representing user attributes. *
*
* For custom attributes, you must prepend the custom:
prefix to the attribute name.
*
* For custom attributes, you must prepend the
* An array of name-value pairs representing user attributes.
*
* For custom attributes, you must prepend the custom:
prefix to the attribute name.
*/
public java.util.Listcustom:
prefix to the attribute name.
*
* For custom attributes, you must prepend the
* An array of name-value pairs representing user attributes.
*
* For custom attributes, you must prepend the
* 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.
* custom:
prefix to the attribute name.
*/
public void setUserAttributes(java.util.Collectioncustom:
prefix to the attribute name.
*
* For custom attributes, you must prepend the
* An array of name-value pairs representing user attributes.
*
* For custom attributes, you must prepend the custom:
prefix to the attribute name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetUserResult withUserAttributes(AttributeType... userAttributes) {
if (this.userAttributes == null) {
setUserAttributes(new java.util.ArrayListcustom:
prefix to the attribute name.
*
* For custom attributes, you must prepend the
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* The user's preferred MFA setting.
*
* The user's preferred MFA setting.
*
* The user's preferred MFA setting.
*
* The MFA options that are activated for the user. The possible values in this list are
* The MFA options that are activated for the user. The possible values in this list are
* The MFA options that are activated for the user. The possible values in this list are
* 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.
*
* The MFA options that are activated for the user. The possible values in this list are custom:
prefix to the attribute name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetUserResult withUserAttributes(java.util.CollectionSMS_MFA
and
* SOFTWARE_TOKEN_MFA
.
* SMS_MFA
and SOFTWARE_TOKEN_MFA
.
*/
public java.util.ListSMS_MFA
and
* SOFTWARE_TOKEN_MFA
.
* SMS_MFA
* and SOFTWARE_TOKEN_MFA
.
*/
public void setUserMFASettingList(java.util.CollectionSMS_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 GetUserResult withUserMFASettingList(String... userMFASettingList) {
if (this.userMFASettingList == null) {
setUserMFASettingList(new java.util.ArrayListSMS_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 GetUserResult withUserMFASettingList(java.util.Collection