/*
* 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
{
///
/// The representation of an WorkMail user.
///
public partial class User
{
private DateTime? _disabledDate;
private string _displayName;
private string _email;
private DateTime? _enabledDate;
private string _id;
private string _name;
private EntityState _state;
private UserRole _userRole;
///
/// Gets and sets the property DisabledDate.
///
/// The date indicating when the user was disabled from WorkMail use.
///
///
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 indicating when the user was enabled for WorkMail use.
///
///
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 Id.
///
/// The identifier of the user.
///
///
[AWSProperty(Min=12, Max=256)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property Name.
///
/// The name of 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 the user, which can be ENABLED, DISABLED, or DELETED.
///
///
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 UserRole.
///
/// The role of the 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;
}
}
}