
com.aliyun.sdk.service.quickbi_public20220101.models.CreateUserGroupRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-quickbi_public20220101 Show documentation
Show all versions of alibabacloud-quickbi_public20220101 Show documentation
Alibaba Cloud quickbi-public (20220101) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.quickbi_public20220101.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateUserGroupRequest} extends {@link RequestModel}
*
* CreateUserGroupRequest
*/
public class CreateUserGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ParentUserGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String parentUserGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserGroupDescription")
private String userGroupDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserGroupId")
private String userGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserGroupName")
@com.aliyun.core.annotation.Validation(required = true)
private String userGroupName;
private CreateUserGroupRequest(Builder builder) {
super(builder);
this.parentUserGroupId = builder.parentUserGroupId;
this.userGroupDescription = builder.userGroupDescription;
this.userGroupId = builder.userGroupId;
this.userGroupName = builder.userGroupName;
}
public static Builder builder() {
return new Builder();
}
public static CreateUserGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return parentUserGroupId
*/
public String getParentUserGroupId() {
return this.parentUserGroupId;
}
/**
* @return userGroupDescription
*/
public String getUserGroupDescription() {
return this.userGroupDescription;
}
/**
* @return userGroupId
*/
public String getUserGroupId() {
return this.userGroupId;
}
/**
* @return userGroupName
*/
public String getUserGroupName() {
return this.userGroupName;
}
public static final class Builder extends Request.Builder {
private String parentUserGroupId;
private String userGroupDescription;
private String userGroupId;
private String userGroupName;
private Builder() {
super();
}
private Builder(CreateUserGroupRequest request) {
super(request);
this.parentUserGroupId = request.parentUserGroupId;
this.userGroupDescription = request.userGroupDescription;
this.userGroupId = request.userGroupId;
this.userGroupName = request.userGroupName;
}
/**
* The ID of the parent user group. You can add new user groups to this group:
*
* - If you enter the ID of a parent user group, the new user group is added to the user group with the ID.
* - If you enter -1, the new user group is added to the root directory.
*
* This parameter is required.
*
* example:
* 3d2c23d4-2b41-4af8-a1f5-f6390f32****
*/
public Builder parentUserGroupId(String parentUserGroupId) {
this.putQueryParameter("ParentUserGroupId", parentUserGroupId);
this.parentUserGroupId = parentUserGroupId;
return this;
}
/**
* The description of the user group.
*
* - Format verification: Maximum length 255
* - Special format verification: Chinese and English digits_ \ / | () ] [
*
*
* example:
* User group description
*/
public Builder userGroupDescription(String userGroupDescription) {
this.putQueryParameter("UserGroupDescription", userGroupDescription);
this.userGroupDescription = userGroupDescription;
return this;
}
/**
* The unique ID of the user group.
*
* - If you specify the UserGroupId parameter, the system automatically generates the UserGroupId parameter. If you specify the UserGroupId parameter, the user ID is used as the user group ID. You must ensure that the user ID is unique within the organization.
* - Format verification: Maximum length 64, cannot be -1,
*
*
* example:
* pop0001
*/
public Builder userGroupId(String userGroupId) {
this.putQueryParameter("UserGroupId", userGroupId);
this.userGroupId = userGroupId;
return this;
}
/**
* The name of the RAM user group.
*
* - Format verification: Maximum length 255
* - Special format verification: Chinese and English digits_ \ / | () ] [
*
* This parameter is required.
*
* example:
* Hangzhou Financial Report
*/
public Builder userGroupName(String userGroupName) {
this.putQueryParameter("UserGroupName", userGroupName);
this.userGroupName = userGroupName;
return this;
}
@Override
public CreateUserGroupRequest build() {
return new CreateUserGroupRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy