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

com.aliyun.ess20220222.models.AttachVServerGroupsRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ess20220222.models;

import com.aliyun.tea.*;

public class AttachVServerGroupsRequest extends TeaModel {
    /**
     * 

The client token that is used to ensure the idempotence of the request.

*

You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see Ensure idempotence.

* * example: *

123e4567-e89b-12d3-a456-42665544****

*/ @NameInMap("ClientToken") public String clientToken; /** *

Specifies whether to add the existing Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to the new vServer group. Valid values:

*
    *
  • true
  • *
  • false
  • *
*

Default value: false.

* * example: *

false

*/ @NameInMap("ForceAttach") public Boolean forceAttach; @NameInMap("OwnerId") public Long ownerId; /** *

The region ID of the scaling group. Examples: cn-hangzhou and cn-shanghai. For information about regions and zones, see Regions and zones.

*

This parameter is required.

* * example: *

cn-hangzhou

*/ @NameInMap("RegionId") public String regionId; @NameInMap("ResourceOwnerAccount") public String resourceOwnerAccount; /** *

The ID of the scaling group.

*

This parameter is required.

* * example: *

asg-bp18p2yfxow2dloq****

*/ @NameInMap("ScalingGroupId") public String scalingGroupId; /** *

The information about the vServer groups.

*

This parameter is required.

*/ @NameInMap("VServerGroups") public java.util.List VServerGroups; public static AttachVServerGroupsRequest build(java.util.Map map) throws Exception { AttachVServerGroupsRequest self = new AttachVServerGroupsRequest(); return TeaModel.build(map, self); } public AttachVServerGroupsRequest setClientToken(String clientToken) { this.clientToken = clientToken; return this; } public String getClientToken() { return this.clientToken; } public AttachVServerGroupsRequest setForceAttach(Boolean forceAttach) { this.forceAttach = forceAttach; return this; } public Boolean getForceAttach() { return this.forceAttach; } public AttachVServerGroupsRequest setOwnerId(Long ownerId) { this.ownerId = ownerId; return this; } public Long getOwnerId() { return this.ownerId; } public AttachVServerGroupsRequest setRegionId(String regionId) { this.regionId = regionId; return this; } public String getRegionId() { return this.regionId; } public AttachVServerGroupsRequest setResourceOwnerAccount(String resourceOwnerAccount) { this.resourceOwnerAccount = resourceOwnerAccount; return this; } public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public AttachVServerGroupsRequest setScalingGroupId(String scalingGroupId) { this.scalingGroupId = scalingGroupId; return this; } public String getScalingGroupId() { return this.scalingGroupId; } public AttachVServerGroupsRequest setVServerGroups(java.util.List VServerGroups) { this.VServerGroups = VServerGroups; return this; } public java.util.List getVServerGroups() { return this.VServerGroups; } public static class AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes extends TeaModel { /** *

The port number over which Auto Scaling adds ECS instances or elastic container instances to the new vServer group. Valid values: 1 to 65535.

* * example: *

22

*/ @NameInMap("Port") public Integer port; /** *

The ID of the vServer group.

* * example: *

lb-bp1u7etiogg38yvwz****

*/ @NameInMap("VServerGroupId") public String VServerGroupId; /** *

The weight of an ECS instance or elastic container instance as a backend server. Valid values: 0 to 100.

*

Default value: 50.

* * example: *

100

*/ @NameInMap("Weight") public Integer weight; public static AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes build(java.util.Map map) throws Exception { AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes self = new AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes(); return TeaModel.build(map, self); } public AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes setPort(Integer port) { this.port = port; return this; } public Integer getPort() { return this.port; } public AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes setVServerGroupId(String VServerGroupId) { this.VServerGroupId = VServerGroupId; return this; } public String getVServerGroupId() { return this.VServerGroupId; } public AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes setWeight(Integer weight) { this.weight = weight; return this; } public Integer getWeight() { return this.weight; } } public static class AttachVServerGroupsRequestVServerGroups extends TeaModel { /** *

The ID of the CLB instance to which the new vServer group belongs.

* * example: *

rsp-bp1jp1rge****

*/ @NameInMap("LoadBalancerId") public String loadBalancerId; /** *

The attributes of the vServer group.

*/ @NameInMap("VServerGroupAttributes") public java.util.List VServerGroupAttributes; public static AttachVServerGroupsRequestVServerGroups build(java.util.Map map) throws Exception { AttachVServerGroupsRequestVServerGroups self = new AttachVServerGroupsRequestVServerGroups(); return TeaModel.build(map, self); } public AttachVServerGroupsRequestVServerGroups setLoadBalancerId(String loadBalancerId) { this.loadBalancerId = loadBalancerId; return this; } public String getLoadBalancerId() { return this.loadBalancerId; } public AttachVServerGroupsRequestVServerGroups setVServerGroupAttributes(java.util.List VServerGroupAttributes) { this.VServerGroupAttributes = VServerGroupAttributes; return this; } public java.util.List getVServerGroupAttributes() { return this.VServerGroupAttributes; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy