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

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

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

import com.aliyun.tea.*;

public class AttachInstancesRequest 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 use the scaling group to manage the lifecycles of manually added instances. Valid values:

*
    *
  • true: The scaling group manages the lifecycles of manually added instances and automatically created instances in the same manner. In this case, Auto Scaling releases the instances when they are removed from the scaling group. This rule does not apply to instances that are removed by calling the DetachInstances operation.
  • *
  • false: The scaling group does not manage the lifecycles of manually added instances. In this case, Auto Scaling does not release the instances when they are removed from the scaling group.
  • *
*
*

You cannot specify this parameter for subscription instances, non-Alibaba Cloud instances, and instances in Economical Mode.

*
*

Default value: false.

* * example: *

false

*/ @NameInMap("Entrusted") public Boolean entrusted; /** *

The IDs of the ECS instances, elastic container instances, non-Alibaba Cloud instances, or instances in Economical Mode.

*/ @NameInMap("InstanceIds") public java.util.List instanceIds; /** *

Specifies whether to trigger the lifecycle hook for scale-outs when you call this operation. Valid values:

*
    *
  • true
  • *
  • false
  • *
*
*

You cannot specify this parameter for subscription instances and instances in Economical Mode.

*
*

Default value: false.

* * example: *

false

*/ @NameInMap("LifecycleHook") public Boolean lifecycleHook; /** *

The weight of an ECS instance or elastic container instance as a backend server. You can use this parameter to specify weights for multiple instances at the same time.

*/ @NameInMap("LoadBalancerWeights") public java.util.List loadBalancerWeights; @NameInMap("OwnerAccount") public String ownerAccount; @NameInMap("OwnerId") public Long ownerId; /** *

The region ID of the scaling group.

* * example: *

cn-qingdao

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

The ID of the scaling group.

*

This parameter is required.

* * example: *

asg-bp18p2yfxow2dloq****

*/ @NameInMap("ScalingGroupId") public String scalingGroupId; public static AttachInstancesRequest build(java.util.Map map) throws Exception { AttachInstancesRequest self = new AttachInstancesRequest(); return TeaModel.build(map, self); } public AttachInstancesRequest setClientToken(String clientToken) { this.clientToken = clientToken; return this; } public String getClientToken() { return this.clientToken; } public AttachInstancesRequest setEntrusted(Boolean entrusted) { this.entrusted = entrusted; return this; } public Boolean getEntrusted() { return this.entrusted; } public AttachInstancesRequest setInstanceIds(java.util.List instanceIds) { this.instanceIds = instanceIds; return this; } public java.util.List getInstanceIds() { return this.instanceIds; } public AttachInstancesRequest setLifecycleHook(Boolean lifecycleHook) { this.lifecycleHook = lifecycleHook; return this; } public Boolean getLifecycleHook() { return this.lifecycleHook; } public AttachInstancesRequest setLoadBalancerWeights(java.util.List loadBalancerWeights) { this.loadBalancerWeights = loadBalancerWeights; return this; } public java.util.List getLoadBalancerWeights() { return this.loadBalancerWeights; } public AttachInstancesRequest setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; return this; } public String getOwnerAccount() { return this.ownerAccount; } public AttachInstancesRequest setOwnerId(Long ownerId) { this.ownerId = ownerId; return this; } public Long getOwnerId() { return this.ownerId; } public AttachInstancesRequest setRegionId(String regionId) { this.regionId = regionId; return this; } public String getRegionId() { return this.regionId; } public AttachInstancesRequest setResourceOwnerAccount(String resourceOwnerAccount) { this.resourceOwnerAccount = resourceOwnerAccount; return this; } public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public AttachInstancesRequest setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } public Long getResourceOwnerId() { return this.resourceOwnerId; } public AttachInstancesRequest setScalingGroupId(String scalingGroupId) { this.scalingGroupId = scalingGroupId; return this; } public String getScalingGroupId() { return this.scalingGroupId; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy