/*
* 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 workmail-2017-10-01.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.WorkMail.Model
{
///
/// This is the response object from the DescribeUser operation.
///
public partial class DescribeUserResponse : AmazonWebServiceResponse
{
private DateTime? _disabledDate;
private string _displayName;
private string _email;
private DateTime? _enabledDate;
private string _name;
private EntityState _state;
private string _userId;
private UserRole _userRole;
///
/// Gets and sets the property DisabledDate.
///
/// The date and time at which the user was disabled for WorkMail usage, in UNIX epoch
/// time format.
///
///
public DateTime DisabledDate
{
get { return this._disabledDate.GetValueOrDefault(); }
set { this._disabledDate = value; }
}
// Check to see if DisabledDate property is set
internal bool IsSetDisabledDate()
{
return this._disabledDate.HasValue;
}
///
/// Gets and sets the property DisplayName.
///
/// The display name of the user.
///
///
[AWSProperty(Max=256)]
public string DisplayName
{
get { return this._displayName; }
set { this._displayName = value; }
}
// Check to see if DisplayName property is set
internal bool IsSetDisplayName()
{
return this._displayName != null;
}
///
/// Gets and sets the property Email.
///
/// The email of the user.
///
///
[AWSProperty(Min=1, Max=254)]
public string Email
{
get { return this._email; }
set { this._email = value; }
}
// Check to see if Email property is set
internal bool IsSetEmail()
{
return this._email != null;
}
///
/// Gets and sets the property EnabledDate.
///
/// The date and time at which the user was enabled for WorkMailusage, in UNIX epoch time
/// format.
///
///
public DateTime EnabledDate
{
get { return this._enabledDate.GetValueOrDefault(); }
set { this._enabledDate = value; }
}
// Check to see if EnabledDate property is set
internal bool IsSetEnabledDate()
{
return this._enabledDate.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name for the user.
///
///
[AWSProperty(Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property State.
///
/// The state of a user: enabled (registered to WorkMail) or disabled (deregistered or
/// never registered to WorkMail).
///
///
public EntityState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property UserId.
///
/// The identifier for the described user.
///
///
[AWSProperty(Min=12, Max=256)]
public string UserId
{
get { return this._userId; }
set { this._userId = value; }
}
// Check to see if UserId property is set
internal bool IsSetUserId()
{
return this._userId != null;
}
///
/// Gets and sets the property UserRole.
///
/// In certain cases, other entities are modeled as users. If interoperability is enabled,
/// resources are imported into WorkMail as users. Because different WorkMail organizations
/// rely on different directory types, administrators can distinguish between an unregistered
/// user (account is disabled and has a user role) and the directory administrators. The
/// values are USER, RESOURCE, and SYSTEM_USER.
///
///
public UserRole UserRole
{
get { return this._userRole; }
set { this._userRole = value; }
}
// Check to see if UserRole property is set
internal bool IsSetUserRole()
{
return this._userRole != null;
}
}
}