/*
* 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 information about
/// the user.
///
public partial class GetUserResponse : AmazonWebServiceResponse
{
private List _mfaOptions = new List();
private string _preferredMfaSetting;
private List _userAttributes = new List();
private List _userMFASettingList = new List();
private string _username;
///
/// 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.
///
///
///
/// For custom attributes, you must prepend the custom:
prefix to the attribute
/// name.
///
///
[AWSProperty(Required=true)]
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 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 you want to retrieve from the get user request.
///
///
[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;
}
}
}