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

com.aliyun.sdk.service.emr20210320.models.JoinResourceGroupRequest Maven / Gradle / Ivy

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

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link JoinResourceGroupRequest} extends {@link RequestModel}
 *
 * 

JoinResourceGroupRequest

*/ public class JoinResourceGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private JoinResourceGroupRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static JoinResourceGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder { private String regionId; private String resourceGroupId; private String resourceId; private String resourceType; private Builder() { super(); } private Builder(JoinResourceGroupRequest request) { super(request); this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceId = request.resourceId; this.resourceType = request.resourceType; } /** * The ID of the region in which you want to create the instance. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The ID of the resource group. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * The ID of the resource. */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * The type of the resource. Valid values: *

* * * cluster: cluster */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public JoinResourceGroupRequest build() { return new JoinResourceGroupRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy