/*
* 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 connect-2017-08-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.Connect.Model
{
///
/// Container for the parameters to the CreateUser operation.
/// Creates a user account for the specified Amazon Connect instance.
///
///
///
/// For information about how to create user accounts using the Amazon Connect console,
/// see Add
/// Users in the Amazon Connect Administrator Guide.
///
///
public partial class CreateUserRequest : AmazonConnectRequest
{
private string _directoryUserId;
private string _hierarchyGroupId;
private UserIdentityInfo _identityInfo;
private string _instanceId;
private string _password;
private UserPhoneConfig _phoneConfig;
private string _routingProfileId;
private List _securityProfileIds = new List();
private Dictionary _tags = new Dictionary();
private string _username;
///
/// Gets and sets the property DirectoryUserId.
///
/// The identifier of the user account in the directory used for identity management.
/// If Amazon Connect cannot access the directory, you can specify this identifier to
/// authenticate users. If you include the identifier, we assume that Amazon Connect cannot
/// access the directory. Otherwise, the identity information is used to authenticate
/// users from your directory.
///
///
///
/// This parameter is required if you are using an existing directory for identity management
/// in Amazon Connect when Amazon Connect cannot access your directory to authenticate
/// users. If you are using SAML for identity management and include this parameter, an
/// error is returned.
///
///
public string DirectoryUserId
{
get { return this._directoryUserId; }
set { this._directoryUserId = value; }
}
// Check to see if DirectoryUserId property is set
internal bool IsSetDirectoryUserId()
{
return this._directoryUserId != null;
}
///
/// Gets and sets the property HierarchyGroupId.
///
/// The identifier of the hierarchy group for the user.
///
///
public string HierarchyGroupId
{
get { return this._hierarchyGroupId; }
set { this._hierarchyGroupId = value; }
}
// Check to see if HierarchyGroupId property is set
internal bool IsSetHierarchyGroupId()
{
return this._hierarchyGroupId != null;
}
///
/// Gets and sets the property IdentityInfo.
///
/// The information about the identity of the user.
///
///
public UserIdentityInfo IdentityInfo
{
get { return this._identityInfo; }
set { this._identityInfo = value; }
}
// Check to see if IdentityInfo property is set
internal bool IsSetIdentityInfo()
{
return this._identityInfo != null;
}
///
/// Gets and sets the property InstanceId.
///
/// The identifier of the Amazon Connect instance. You can find
/// the instance ID in the Amazon Resource Name (ARN) of the instance.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
///
/// Gets and sets the property Password.
///
/// The password for the user account. A password is required if you are using Amazon
/// Connect for identity management. Otherwise, it is an error to include a password.
///
///
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 PhoneConfig.
///
/// The phone settings for the user.
///
///
[AWSProperty(Required=true)]
public UserPhoneConfig PhoneConfig
{
get { return this._phoneConfig; }
set { this._phoneConfig = value; }
}
// Check to see if PhoneConfig property is set
internal bool IsSetPhoneConfig()
{
return this._phoneConfig != null;
}
///
/// Gets and sets the property RoutingProfileId.
///
/// The identifier of the routing profile for the user.
///
///
[AWSProperty(Required=true)]
public string RoutingProfileId
{
get { return this._routingProfileId; }
set { this._routingProfileId = value; }
}
// Check to see if RoutingProfileId property is set
internal bool IsSetRoutingProfileId()
{
return this._routingProfileId != null;
}
///
/// Gets and sets the property SecurityProfileIds.
///
/// The identifier of the security profile for the user.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List SecurityProfileIds
{
get { return this._securityProfileIds; }
set { this._securityProfileIds = value; }
}
// Check to see if SecurityProfileIds property is set
internal bool IsSetSecurityProfileIds()
{
return this._securityProfileIds != null && this._securityProfileIds.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
///
///
[AWSProperty(Min=1, Max=50)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property Username.
///
/// The user name for the account. For instances not using SAML for identity management,
/// the user name can include up to 20 characters. If you are using SAML for identity
/// management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
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;
}
}
}