All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.dataphin_public20230630.models.CreateUserGroupRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dataphin_public20230630.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
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.Host @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("CreateCommand") private CreateCommand createCommand; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OpTenantId") @com.aliyun.core.annotation.Validation(required = true) private Long opTenantId; private CreateUserGroupRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.createCommand = builder.createCommand; this.opTenantId = builder.opTenantId; } public static Builder builder() { return new Builder(); } public static CreateUserGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return createCommand */ public CreateCommand getCreateCommand() { return this.createCommand; } /** * @return opTenantId */ public Long getOpTenantId() { return this.opTenantId; } public static final class Builder extends Request.Builder { private String regionId; private CreateCommand createCommand; private Long opTenantId; private Builder() { super(); } private Builder(CreateUserGroupRequest request) { super(request); this.regionId = request.regionId; this.createCommand = request.createCommand; this.opTenantId = request.opTenantId; } /** * RegionId. */ public Builder regionId(String regionId) { this.putHostParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * CreateCommand. */ public Builder createCommand(CreateCommand createCommand) { String createCommandShrink = shrink(createCommand, "CreateCommand", "json"); this.putBodyParameter("CreateCommand", createCommandShrink); this.createCommand = createCommand; return this; } /** *

This parameter is required.

* * example: *

30001011

*/ public Builder opTenantId(Long opTenantId) { this.putQueryParameter("OpTenantId", opTenantId); this.opTenantId = opTenantId; return this; } @Override public CreateUserGroupRequest build() { return new CreateUserGroupRequest(this); } } /** * * {@link CreateUserGroupRequest} extends {@link TeaModel} * *

CreateUserGroupRequest

*/ public static class CreateCommand extends TeaModel { @com.aliyun.core.annotation.NameInMap("Active") private Boolean active; @com.aliyun.core.annotation.NameInMap("AdminUserIdList") private java.util.List adminUserIdList; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Name") private String name; private CreateCommand(Builder builder) { this.active = builder.active; this.adminUserIdList = builder.adminUserIdList; this.description = builder.description; this.name = builder.name; } public static Builder builder() { return new Builder(); } public static CreateCommand create() { return builder().build(); } /** * @return active */ public Boolean getActive() { return this.active; } /** * @return adminUserIdList */ public java.util.List getAdminUserIdList() { return this.adminUserIdList; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } public static final class Builder { private Boolean active; private java.util.List adminUserIdList; private String description; private String name; /** * Active. */ public Builder active(Boolean active) { this.active = active; return this; } /** * AdminUserIdList. */ public Builder adminUserIdList(java.util.List adminUserIdList) { this.adminUserIdList = adminUserIdList; return this; } /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * Name. */ public Builder name(String name) { this.name = name; return this; } public CreateCommand build() { return new CreateCommand(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy