
com.aliyun.ims20190815.models.CreateUserRequest Maven / Gradle / Ivy
Show all versions of ims20190815 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ims20190815.models;
import com.aliyun.tea.*;
public class CreateUserRequest extends TeaModel {
/**
* The description.
* The description must be 1 to 128 characters in length.
*
* example:
* This is a cloud computing engineer.
*/
@NameInMap("Comments")
public String comments;
/**
* The display name of the RAM user.
* The name must be 1 to 24 characters in length.
* This parameter is required.
*
* example:
* test
*/
@NameInMap("DisplayName")
public String displayName;
/**
* The email address of the RAM user.
*
* This parameter is valid only on the China site (aliyun.com).
*
*
* example:
*
*/
@NameInMap("Email")
public String email;
/**
* The mobile number of the RAM user.
* Format: Country code-Mobile phone number.
*
* This parameter is valid only on the China site (aliyun.com).
*
*
* example:
* 86-1868888****
*/
@NameInMap("MobilePhone")
public String mobilePhone;
/**
* The tag value.
* Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain http://
or https://
. The tag value cannot start with acs:
.
*/
@NameInMap("Tag")
public java.util.List tag;
/**
* The logon name of the RAM user.
* The name is in the format of <username>@<AccountAlias>.onaliyun.com
. <username>
indicates the name of the RAM user. <AccountAlias>.onaliyun.com
indicates the default domain name. For more information about how to obtain the default domain name, see GetDefaultDomain.
* The value of UserPrincipalName
must be 1 to 128 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (_). The value of <username>
must be 1 to 64 characters in length.
* This parameter is required.
*
* example:
*
*/
@NameInMap("UserPrincipalName")
public String userPrincipalName;
public static CreateUserRequest build(java.util.Map map) throws Exception {
CreateUserRequest self = new CreateUserRequest();
return TeaModel.build(map, self);
}
public CreateUserRequest setComments(String comments) {
this.comments = comments;
return this;
}
public String getComments() {
return this.comments;
}
public CreateUserRequest setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public String getDisplayName() {
return this.displayName;
}
public CreateUserRequest setEmail(String email) {
this.email = email;
return this;
}
public String getEmail() {
return this.email;
}
public CreateUserRequest setMobilePhone(String mobilePhone) {
this.mobilePhone = mobilePhone;
return this;
}
public String getMobilePhone() {
return this.mobilePhone;
}
public CreateUserRequest setTag(java.util.List tag) {
this.tag = tag;
return this;
}
public java.util.List getTag() {
return this.tag;
}
public CreateUserRequest setUserPrincipalName(String userPrincipalName) {
this.userPrincipalName = userPrincipalName;
return this;
}
public String getUserPrincipalName() {
return this.userPrincipalName;
}
public static class CreateUserRequestTag extends TeaModel {
/**
* The key of tag N.
* Valid values of N: 1 to 20. You cannot specify empty strings as tag keys. The tag key can be up to 128 characters in length and cannot contain http://
or https://
. The tag key cannot start with acs:
or aliyun
.
*
* example:
* operator
*/
@NameInMap("Key")
public String key;
/**
* The value of tag N.
* Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain http://
or https://
. The tag value cannot start with acs:
.
*
* example:
* alice
*/
@NameInMap("Value")
public String value;
public static CreateUserRequestTag build(java.util.Map map) throws Exception {
CreateUserRequestTag self = new CreateUserRequestTag();
return TeaModel.build(map, self);
}
public CreateUserRequestTag setKey(String key) {
this.key = key;
return this;
}
public String getKey() {
return this.key;
}
public CreateUserRequestTag setValue(String value) {
this.value = value;
return this;
}
public String getValue() {
return this.value;
}
}
}