com.aliyun.sdk.service.bpstudio20210931.models.ChangeResourceGroupRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-bpstudio20210931 Show documentation
Show all versions of alibabacloud-bpstudio20210931 Show documentation
Alibaba Cloud BPStudio (20210931) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.bpstudio20210931.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ChangeResourceGroupRequest} extends {@link RequestModel}
*
* ChangeResourceGroupRequest
*/
public class ChangeResourceGroupRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("NewResourceGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String newResourceGroupId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ResourceId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceType;
private ChangeResourceGroupRequest(Builder builder) {
super(builder);
this.newResourceGroupId = builder.newResourceGroupId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static ChangeResourceGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return newResourceGroupId
*/
public String getNewResourceGroupId() {
return this.newResourceGroupId;
}
/**
* @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 newResourceGroupId;
private String resourceId;
private String resourceType;
private Builder() {
super();
}
private Builder(ChangeResourceGroupRequest request) {
super(request);
this.newResourceGroupId = request.newResourceGroupId;
this.resourceId = request.resourceId;
this.resourceType = request.resourceType;
}
/**
* The ID of the new resource group.
*/
public Builder newResourceGroupId(String newResourceGroupId) {
this.putBodyParameter("NewResourceGroupId", newResourceGroupId);
this.newResourceGroupId = newResourceGroupId;
return this;
}
/**
* The ID of the resource.
*/
public Builder resourceId(String resourceId) {
this.putBodyParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* The type of the resource for which you want to change the resource group. Valid values: APPLICATION and TEMPLATE.
*/
public Builder resourceType(String resourceType) {
this.putBodyParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
@Override
public ChangeResourceGroupRequest build() {
return new ChangeResourceGroupRequest(this);
}
}
}