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

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

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ess20220222.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.Query @com.aliyun.core.annotation.NameInMap("NewResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) private String newResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private ChangeResourceGroupRequest(Builder builder) { super(builder); this.newResourceGroupId = builder.newResourceGroupId; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; 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 ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder { private String newResourceGroupId; private Long ownerId; private String regionId; private String resourceId; private String resourceOwnerAccount; private String resourceType; private Builder() { super(); } private Builder(ChangeResourceGroupRequest request) { super(request); this.newResourceGroupId = request.newResourceGroupId; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceType = request.resourceType; } /** *

The ID of the resource group to which you want to move the scaling group.

*

This parameter is required.

* * example: *

rg-aek2ckjqe3*****

*/ public Builder newResourceGroupId(String newResourceGroupId) { this.putQueryParameter("NewResourceGroupId", newResourceGroupId); this.newResourceGroupId = newResourceGroupId; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** *

The region ID of the scaling group.

*

This parameter is required.

* * example: *

cn-hangzhou

*/ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** *

The ID of the scaling group that you want to move from the current resource group to another resource group.

*

This parameter is required.

* * example: *

asg-bp17xb4x1vr29lgt****

*/ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** *

The resource type. Set the value to scalinggroup.

* * example: *

scalinggroup

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy