/*
* 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 workdocs-2016-05-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.WorkDocs.Model
{
///
/// Container for the parameters to the CreateUser operation.
/// Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created
/// user is "ACTIVE". New users can access Amazon WorkDocs.
///
public partial class CreateUserRequest : AmazonWorkDocsRequest
{
private string _authenticationToken;
private string _emailAddress;
private string _givenName;
private string _organizationId;
private string _password;
private StorageRuleType _storageRule;
private string _surname;
private string _timeZoneId;
private string _username;
///
/// Gets and sets the property AuthenticationToken.
///
/// Amazon WorkDocs authentication token. Not required when using Amazon Web Services
/// administrator credentials to access the API.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=8199)]
public string AuthenticationToken
{
get { return this._authenticationToken; }
set { this._authenticationToken = value; }
}
// Check to see if AuthenticationToken property is set
internal bool IsSetAuthenticationToken()
{
return this._authenticationToken != null;
}
///
/// Gets and sets the property EmailAddress.
///
/// The email address of the user.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=256)]
public string EmailAddress
{
get { return this._emailAddress; }
set { this._emailAddress = value; }
}
// Check to see if EmailAddress property is set
internal bool IsSetEmailAddress()
{
return this._emailAddress != null;
}
///
/// Gets and sets the property GivenName.
///
/// The given name of the user.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=64)]
public string GivenName
{
get { return this._givenName; }
set { this._givenName = value; }
}
// Check to see if GivenName property is set
internal bool IsSetGivenName()
{
return this._givenName != null;
}
///
/// Gets and sets the property OrganizationId.
///
/// The ID of the organization.
///
///
[AWSProperty(Min=1, Max=256)]
public string OrganizationId
{
get { return this._organizationId; }
set { this._organizationId = value; }
}
// Check to see if OrganizationId property is set
internal bool IsSetOrganizationId()
{
return this._organizationId != null;
}
///
/// Gets and sets the property Password.
///
/// The password of the user.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=4, Max=32)]
public string Password
{
get { return this._password; }
set { this._password = value; }
}
// Check to see if Password property is set
internal bool IsSetPassword()
{
return this._password != null;
}
///
/// Gets and sets the property StorageRule.
///
/// The amount of storage for the user.
///
///
public StorageRuleType StorageRule
{
get { return this._storageRule; }
set { this._storageRule = value; }
}
// Check to see if StorageRule property is set
internal bool IsSetStorageRule()
{
return this._storageRule != null;
}
///
/// Gets and sets the property Surname.
///
/// The surname of the user.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=64)]
public string Surname
{
get { return this._surname; }
set { this._surname = value; }
}
// Check to see if Surname property is set
internal bool IsSetSurname()
{
return this._surname != null;
}
///
/// Gets and sets the property TimeZoneId.
///
/// The time zone ID of the user.
///
///
[AWSProperty(Min=1, Max=256)]
public string TimeZoneId
{
get { return this._timeZoneId; }
set { this._timeZoneId = value; }
}
// Check to see if TimeZoneId property is set
internal bool IsSetTimeZoneId()
{
return this._timeZoneId != null;
}
///
/// Gets and sets the property Username.
///
/// The login name of the user.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=256)]
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;
}
}
}