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

com.aliyun.sdk.service.bpstudio20210931.models.ChangeResourceGroupRequest Maven / Gradle / Ivy

There is a newer version: 5.0.6
Show newest version
// 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); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy