/*
* 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 iam-2010-05-08.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.IdentityManagement.Model
{
///
/// Contains the user name and password create date for a user.
///
///
///
/// This data type is used as a response element in the CreateLoginProfile and
/// GetLoginProfile operations.
///
///
public partial class LoginProfile
{
private DateTime? _createDate;
private bool? _passwordResetRequired;
private string _userName;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public LoginProfile() { }
///
/// Instantiates LoginProfile with the parameterized properties
///
/// The name of the user, which can be used for signing in to the Amazon Web Services Management Console.
/// The date when the password for the user was created.
public LoginProfile(string userName, DateTime createDate)
{
_userName = userName;
_createDate = createDate;
}
///
/// Gets and sets the property CreateDate.
///
/// The date when the password for the user was created.
///
///
[AWSProperty(Required=true)]
public DateTime CreateDate
{
get { return this._createDate.GetValueOrDefault(); }
set { this._createDate = value; }
}
// Check to see if CreateDate property is set
internal bool IsSetCreateDate()
{
return this._createDate.HasValue;
}
///
/// Gets and sets the property PasswordResetRequired.
///
/// Specifies whether the user is required to set a new password on next sign-in.
///
///
public bool PasswordResetRequired
{
get { return this._passwordResetRequired.GetValueOrDefault(); }
set { this._passwordResetRequired = value; }
}
// Check to see if PasswordResetRequired property is set
internal bool IsSetPasswordResetRequired()
{
return this._passwordResetRequired.HasValue;
}
///
/// Gets and sets the property UserName.
///
/// The name of the user, which can be used for signing in to the Amazon Web Services
/// Management Console.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
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;
}
}
}