public class ModifyAutoScalingGroupRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyAutoScalingGroupRequest() |
ModifyAutoScalingGroupRequest(ModifyAutoScalingGroupRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAutoScalingGroupId()
Get Scaling group ID.
|
String |
getAutoScalingGroupName()
Get Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account.
|
Boolean |
getCapacityRebalance()
Get Capacity rebalancing feature, which is applicable only to spot instances within the scaling group.
|
Long |
getDefaultCooldown()
Get Default cooldown period in seconds.
|
Long |
getDesiredCapacity()
Get Expected number of instances, value ranges from 0 to 2000.
|
String |
getHealthCheckType()
Get Scaling group instance health check type, whose valid values include:
CVM: Determines whether an instance is unhealthy based on its network status.
|
String |
getInstanceAllocationPolicy()
Get Instance assignment policy, whose valid values include LAUNCH_CONFIGURATION and SPOT_MIXED.
|
InstanceNameIndexSettings |
getInstanceNameIndexSettings()
Get Instance name sequencing settings.
|
Long |
getIpv6AddressCount()
Get The number of IPv6 addresses that an instance has.
|
String |
getLaunchConfigurationId()
Get Launch configuration ID.
|
Long |
getLoadBalancerHealthCheckGracePeriod()
Get Grace period of the CLB health check
|
Long |
getMaxSize()
Get Maximum number of instances, value range from 0 to 2000.
|
Long |
getMinSize()
Get Minimum number of instances.
|
String |
getMultiZoneSubnetPolicy()
Get Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
|
Long |
getProjectId()
Get Project ID.
|
String |
getRetryPolicy()
Get Retry policy, whose valid values include IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY, with the default value being IMMEDIATE_RETRY.
|
ServiceSettings |
getServiceSettings()
Get Service settings such as unhealthy instance replacement.
|
SpotMixedAllocationPolicy |
getSpotMixedAllocationPolicy()
Get Specifies how to assign pay-as-you-go instances and spot instances.
|
String[] |
getSubnetIds()
Get subnet ID list.
|
String[] |
getTerminationPolicies()
Get Termination policy, whose maximum length is currently 1.
|
String |
getVpcId()
Get vpc ID.
|
String[] |
getZones()
Get List of availability zones
|
String |
getZonesCheckPolicy()
Get AZ verification policy, whose valid values include ALL and ANY, with the default value being ANY.
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set Scaling group ID.
|
void |
setAutoScalingGroupName(String AutoScalingGroupName)
Set Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account.
|
void |
setCapacityRebalance(Boolean CapacityRebalance)
Set Capacity rebalancing feature, which is applicable only to spot instances within the scaling group.
|
void |
setDefaultCooldown(Long DefaultCooldown)
Set Default cooldown period in seconds.
|
void |
setDesiredCapacity(Long DesiredCapacity)
Set Expected number of instances, value ranges from 0 to 2000.
|
void |
setHealthCheckType(String HealthCheckType)
Set Scaling group instance health check type, whose valid values include:
CVM: Determines whether an instance is unhealthy based on its network status.
|
void |
setInstanceAllocationPolicy(String InstanceAllocationPolicy)
Set Instance assignment policy, whose valid values include LAUNCH_CONFIGURATION and SPOT_MIXED.
|
void |
setInstanceNameIndexSettings(InstanceNameIndexSettings InstanceNameIndexSettings)
Set Instance name sequencing settings.
|
void |
setIpv6AddressCount(Long Ipv6AddressCount)
Set The number of IPv6 addresses that an instance has.
|
void |
setLaunchConfigurationId(String LaunchConfigurationId)
Set Launch configuration ID.
|
void |
setLoadBalancerHealthCheckGracePeriod(Long LoadBalancerHealthCheckGracePeriod)
Set Grace period of the CLB health check
|
void |
setMaxSize(Long MaxSize)
Set Maximum number of instances, value range from 0 to 2000.
|
void |
setMinSize(Long MinSize)
Set Minimum number of instances.
|
void |
setMultiZoneSubnetPolicy(String MultiZoneSubnetPolicy)
Set Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setRetryPolicy(String RetryPolicy)
Set Retry policy, whose valid values include IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY, with the default value being IMMEDIATE_RETRY.
|
void |
setServiceSettings(ServiceSettings ServiceSettings)
Set Service settings such as unhealthy instance replacement.
|
void |
setSpotMixedAllocationPolicy(SpotMixedAllocationPolicy SpotMixedAllocationPolicy)
Set Specifies how to assign pay-as-you-go instances and spot instances.
|
void |
setSubnetIds(String[] SubnetIds)
Set subnet ID list.
|
void |
setTerminationPolicies(String[] TerminationPolicies)
Set Termination policy, whose maximum length is currently 1.
|
void |
setVpcId(String VpcId)
Set vpc ID.
|
void |
setZones(String[] Zones)
Set List of availability zones
|
void |
setZonesCheckPolicy(String ZonesCheckPolicy)
Set AZ verification policy, whose valid values include ALL and ANY, with the default value being ANY.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyAutoScalingGroupRequest()
public ModifyAutoScalingGroupRequest(ModifyAutoScalingGroupRequest source)
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId
- Scaling group ID. obtain available scaling group ids in the following ways:.
public String getAutoScalingGroupName()
public void setAutoScalingGroupName(String AutoScalingGroupName)
AutoScalingGroupName
- Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account.public Long getDefaultCooldown()
public void setDefaultCooldown(Long DefaultCooldown)
DefaultCooldown
- Default cooldown period in seconds. value ranges from 0 to 3600. default value: 300.public Long getDesiredCapacity()
public void setDesiredCapacity(Long DesiredCapacity)
DesiredCapacity
- Expected number of instances, value ranges from 0 to 2000. to meet maximum value greater than or equal to expected value, expected value greater than or equal to minimum value.public String getLaunchConfigurationId()
public void setLaunchConfigurationId(String LaunchConfigurationId)
LaunchConfigurationId
- Launch configuration ID. obtain available launch configuration ids in the following ways:.
public Long getMaxSize()
public void setMaxSize(Long MaxSize)
MaxSize
- Maximum number of instances, value range from 0 to 2000. to meet maximum value greater than or equal to expected value, expected value greater than or equal to minimum value.public Long getMinSize()
public void setMinSize(Long MinSize)
MinSize
- Minimum number of instances. value range [0,2000]. to meet maximum value equal to or greater than expected value, expected value equal to or greater than minimum value.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. obtain this parameter by calling [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1), `ProjectId` field in the return value. default value is 0, indicates usage of the default project.public String[] getSubnetIds()
public void setSubnetIds(String[] SubnetIds)
SubnetIds
- subnet ID list. you can obtain a valid vpc subnet ID by logging in to the [console](https://console.cloud.tencent.com/vpc/subnet). you can also call the API [DescribeSubnets](https://intl.cloud.tencent.com/document/product/215/15784?from_cn_redirect=1) and retrieve the valid vpc subnet ID from the SubnetId field in the API response.public String[] getTerminationPolicies()
public void setTerminationPolicies(String[] TerminationPolicies)
TerminationPolicies
- Termination policy, whose maximum length is currently 1. Valid values include OLDEST_INSTANCE and NEWEST_INSTANCE.
public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- vpc ID. when modifying the vpc, you need to change the SubnetIds parameter to the subnet of this vpc. effective VpcId can be queried by logging in to the console (https://console.cloud.tencent.com/vpc/vpc) or obtained from the VpcId field in the api response by calling the DescribeVpc api (https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1).public String[] getZones()
public void setZones(String[] Zones)
Zones
- List of availability zonespublic String getRetryPolicy()
public void setRetryPolicy(String RetryPolicy)
RetryPolicy
- Retry policy, whose valid values include IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY, with the default value being IMMEDIATE_RETRY. A partially successful scaling activity is considered a failed activity.
public String getZonesCheckPolicy()
public void setZonesCheckPolicy(String ZonesCheckPolicy)
ZonesCheckPolicy
- AZ verification policy, whose valid values include ALL and ANY, with the default value being ANY. This policy comes into effect when actual changes are made to resource-related fields in the scaling group (such as launch configuration, AZ, or subnet).
public ServiceSettings getServiceSettings()
public void setServiceSettings(ServiceSettings ServiceSettings)
ServiceSettings
- Service settings such as unhealthy instance replacement.public Long getIpv6AddressCount()
public void setIpv6AddressCount(Long Ipv6AddressCount)
Ipv6AddressCount
- The number of IPv6 addresses that an instance has. valid values: 0 and 1. default value: 0, which means the instance does not allocate an IPv6 address. use a private network that supports IPv6 and enable IPv6 CIDR in the subnet. for usage restrictions, see [IPv6 usage limits](https://intl.cloud.tencent.com/document/product/1142/38369?from_cn_redirect=1).public String getMultiZoneSubnetPolicy()
public void setMultiZoneSubnetPolicy(String MultiZoneSubnetPolicy)
MultiZoneSubnetPolicy
- Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
public String getHealthCheckType()
public void setHealthCheckType(String HealthCheckType)
HealthCheckType
- Scaling group instance health check type, whose valid values include:
public Long getLoadBalancerHealthCheckGracePeriod()
public void setLoadBalancerHealthCheckGracePeriod(Long LoadBalancerHealthCheckGracePeriod)
LoadBalancerHealthCheckGracePeriod
- Grace period of the CLB health checkpublic String getInstanceAllocationPolicy()
public void setInstanceAllocationPolicy(String InstanceAllocationPolicy)
InstanceAllocationPolicy
- Instance assignment policy, whose valid values include LAUNCH_CONFIGURATION and SPOT_MIXED.
public SpotMixedAllocationPolicy getSpotMixedAllocationPolicy()
public void setSpotMixedAllocationPolicy(SpotMixedAllocationPolicy SpotMixedAllocationPolicy)
SpotMixedAllocationPolicy
- Specifies how to assign pay-as-you-go instances and spot instances.
This parameter is valid only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`.public Boolean getCapacityRebalance()
public void setCapacityRebalance(Boolean CapacityRebalance)
CapacityRebalance
- Capacity rebalancing feature, which is applicable only to spot instances within the scaling group. Valid values:
public InstanceNameIndexSettings getInstanceNameIndexSettings()
public void setInstanceNameIndexSettings(InstanceNameIndexSettings InstanceNameIndexSettings)
InstanceNameIndexSettings
- Instance name sequencing settings. When enabled, an incremental numeric sequence will be appended to the names of instances automatically created within the scaling group.Copyright © 2025. All rights reserved.