/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the cognito-idp-2016-04-18.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CognitoIdentityProvider.Model { /// /// Represents the response from the server from the request to get the specified user /// as an administrator. /// public partial class AdminGetUserResponse : AmazonWebServiceResponse { private bool? _enabled; private List _mfaOptions = new List(); private string _preferredMfaSetting; private List _userAttributes = new List(); private DateTime? _userCreateDate; private DateTime? _userLastModifiedDate; private List _userMFASettingList = new List(); private string _username; private UserStatusType _userStatus; /// /// Gets and sets the property Enabled. /// /// Indicates that the status is enabled. /// /// public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// /// Gets and sets the property 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 List MFAOptions { get { return this._mfaOptions; } set { this._mfaOptions = value; } } // Check to see if MFAOptions property is set internal bool IsSetMFAOptions() { return this._mfaOptions != null && this._mfaOptions.Count > 0; } /// /// Gets and sets the property PreferredMfaSetting. /// /// The user's preferred MFA setting. /// /// public string PreferredMfaSetting { get { return this._preferredMfaSetting; } set { this._preferredMfaSetting = value; } } // Check to see if PreferredMfaSetting property is set internal bool IsSetPreferredMfaSetting() { return this._preferredMfaSetting != null; } /// /// Gets and sets the property UserAttributes. /// /// An array of name-value pairs representing user attributes. /// /// public List UserAttributes { get { return this._userAttributes; } set { this._userAttributes = value; } } // Check to see if UserAttributes property is set internal bool IsSetUserAttributes() { return this._userAttributes != null && this._userAttributes.Count > 0; } /// /// Gets and sets the property UserCreateDate. /// /// The date the user was created. /// /// public DateTime UserCreateDate { get { return this._userCreateDate.GetValueOrDefault(); } set { this._userCreateDate = value; } } // Check to see if UserCreateDate property is set internal bool IsSetUserCreateDate() { return this._userCreateDate.HasValue; } /// /// Gets and sets the property UserLastModifiedDate. /// /// The date the user was last modified. /// /// public DateTime UserLastModifiedDate { get { return this._userLastModifiedDate.GetValueOrDefault(); } set { this._userLastModifiedDate = value; } } // Check to see if UserLastModifiedDate property is set internal bool IsSetUserLastModifiedDate() { return this._userLastModifiedDate.HasValue; } /// /// Gets and sets the property UserMFASettingList. /// /// The MFA options that are activated for the user. The possible values in this list /// are SMS_MFA and SOFTWARE_TOKEN_MFA. /// /// public List UserMFASettingList { get { return this._userMFASettingList; } set { this._userMFASettingList = value; } } // Check to see if UserMFASettingList property is set internal bool IsSetUserMFASettingList() { return this._userMFASettingList != null && this._userMFASettingList.Count > 0; } /// /// Gets and sets the property Username. /// /// The user name of the user about whom you're receiving information. /// /// [AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)] public string Username { get { return this._username; } set { this._username = value; } } // Check to see if Username property is set internal bool IsSetUsername() { return this._username != null; } /// /// Gets and sets the property UserStatus. /// /// 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. /// ///
///
public UserStatusType UserStatus { get { return this._userStatus; } set { this._userStatus = value; } } // Check to see if UserStatus property is set internal bool IsSetUserStatus() { return this._userStatus != null; } } }