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

com.aliyun.sdk.service.dataphin_public20230630.models.AddTenantMembersRequest 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 AddTenantMembersRequest} extends {@link RequestModel}
 *
 * 

AddTenantMembersRequest

*/ public class AddTenantMembersRequest 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("AddCommand") @com.aliyun.core.annotation.Validation(required = true) private AddCommand addCommand; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OpTenantId") @com.aliyun.core.annotation.Validation(required = true) private Long opTenantId; private AddTenantMembersRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.addCommand = builder.addCommand; this.opTenantId = builder.opTenantId; } public static Builder builder() { return new Builder(); } public static AddTenantMembersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return addCommand */ public AddCommand getAddCommand() { return this.addCommand; } /** * @return opTenantId */ public Long getOpTenantId() { return this.opTenantId; } public static final class Builder extends Request.Builder { private String regionId; private AddCommand addCommand; private Long opTenantId; private Builder() { super(); } private Builder(AddTenantMembersRequest request) { super(request); this.regionId = request.regionId; this.addCommand = request.addCommand; this.opTenantId = request.opTenantId; } /** * RegionId. */ public Builder regionId(String regionId) { this.putHostParameter("RegionId", regionId); this.regionId = regionId; return this; } /** *

This parameter is required.

*/ public Builder addCommand(AddCommand addCommand) { String addCommandShrink = shrink(addCommand, "AddCommand", "json"); this.putBodyParameter("AddCommand", addCommandShrink); this.addCommand = addCommand; return this; } /** *

This parameter is required.

* * example: *

30001011

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

AddTenantMembersRequest

*/ public static class UserList extends TeaModel { @com.aliyun.core.annotation.NameInMap("Id") private String id; @com.aliyun.core.annotation.NameInMap("RoleList") private java.util.List roleList; private UserList(Builder builder) { this.id = builder.id; this.roleList = builder.roleList; } public static Builder builder() { return new Builder(); } public static UserList create() { return builder().build(); } /** * @return id */ public String getId() { return this.id; } /** * @return roleList */ public java.util.List getRoleList() { return this.roleList; } public static final class Builder { private String id; private java.util.List roleList; /** * Id. */ public Builder id(String id) { this.id = id; return this; } /** * RoleList. */ public Builder roleList(java.util.List roleList) { this.roleList = roleList; return this; } public UserList build() { return new UserList(this); } } } /** * * {@link AddTenantMembersRequest} extends {@link TeaModel} * *

AddTenantMembersRequest

*/ public static class AddCommand extends TeaModel { @com.aliyun.core.annotation.NameInMap("UserList") @com.aliyun.core.annotation.Validation(required = true) private java.util.List userList; private AddCommand(Builder builder) { this.userList = builder.userList; } public static Builder builder() { return new Builder(); } public static AddCommand create() { return builder().build(); } /** * @return userList */ public java.util.List getUserList() { return this.userList; } public static final class Builder { private java.util.List userList; /** *

This parameter is required.

*/ public Builder userList(java.util.List userList) { this.userList = userList; return this; } public AddCommand build() { return new AddCommand(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy