public class CreateAutoScalingGroupRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateAutoScalingGroupRequest() |
CreateAutoScalingGroupRequest(CreateAutoScalingGroupRequest 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 |
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 Indicates whether the capacity re-balancing feature is enabled.
|
Long |
getDefaultCooldown()
Get Default cooldown period in seconds.
|
Long |
getDesiredCapacity()
Get Desired number of instances.
|
ForwardLoadBalancer[] |
getForwardLoadBalancers()
Get List of application CLBs.
|
String |
getHealthCheckType()
Get Health check type of instances in a scaling group.
CVM: confirm whether an instance is healthy based on the network status. |
String |
getInstanceAllocationPolicy()
Get Specifies how to assign instances.
|
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 during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.
Valid range: 0-7200, in seconds. |
String[] |
getLoadBalancerIds()
Get List of classic CLB IDs.
|
Long |
getMaxSize()
Get Maximum number of instances.
|
Long |
getMinSize()
Get Minimum number of instances.
|
String |
getMultiZoneSubnetPolicy()
Get Multi-availability zone/subnet policy.
|
Long |
getProjectId()
Get Project ID of an instance in a scaling group.
|
String |
getRetryPolicy()
Get Retry policy.
|
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 List of subnet IDs.
|
Tag[] |
getTags()
Get List of tag descriptions.
|
String[] |
getTerminationPolicies()
Get Termination policy.
|
String |
getVpcId()
Get VPC ID; if on a basic network, enter an empty string
|
String[] |
getZones()
Get List of availability zones.
|
String |
getZonesCheckPolicy()
Get Availability zone verification policy.
|
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 Indicates whether the capacity re-balancing feature is enabled.
|
void |
setDefaultCooldown(Long DefaultCooldown)
Set Default cooldown period in seconds.
|
void |
setDesiredCapacity(Long DesiredCapacity)
Set Desired number of instances.
|
void |
setForwardLoadBalancers(ForwardLoadBalancer[] ForwardLoadBalancers)
Set List of application CLBs.
|
void |
setHealthCheckType(String HealthCheckType)
Set Health check type of instances in a scaling group.
CVM: confirm whether an instance is healthy based on the network status. |
void |
setInstanceAllocationPolicy(String InstanceAllocationPolicy)
Set Specifies how to assign instances.
|
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 during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.
Valid range: 0-7200, in seconds. |
void |
setLoadBalancerIds(String[] LoadBalancerIds)
Set List of classic CLB IDs.
|
void |
setMaxSize(Long MaxSize)
Set Maximum number of instances.
|
void |
setMinSize(Long MinSize)
Set Minimum number of instances.
|
void |
setMultiZoneSubnetPolicy(String MultiZoneSubnetPolicy)
Set Multi-availability zone/subnet policy.
|
void |
setProjectId(Long ProjectId)
Set Project ID of an instance in a scaling group.
|
void |
setRetryPolicy(String RetryPolicy)
Set Retry policy.
|
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 List of subnet IDs.
|
void |
setTags(Tag[] Tags)
Set List of tag descriptions.
|
void |
setTerminationPolicies(String[] TerminationPolicies)
Set Termination policy.
|
void |
setVpcId(String VpcId)
Set VPC ID; if on a basic network, enter an empty string
|
void |
setZones(String[] Zones)
Set List of availability zones.
|
void |
setZonesCheckPolicy(String ZonesCheckPolicy)
Set Availability zone verification policy.
|
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 CreateAutoScalingGroupRequest()
public CreateAutoScalingGroupRequest(CreateAutoScalingGroupRequest source)
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 String getLaunchConfigurationId()
public void setLaunchConfigurationId(String LaunchConfigurationId)
LaunchConfigurationId
- Launch configuration IDpublic Long getMaxSize()
public void setMaxSize(Long MaxSize)
MaxSize
- Maximum number of instances. Value range: 0-2,000.public Long getMinSize()
public void setMinSize(Long MinSize)
MinSize
- Minimum number of instances. Value range: 0-2,000.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID; if on a basic network, enter an empty stringpublic Long getDefaultCooldown()
public void setDefaultCooldown(Long DefaultCooldown)
DefaultCooldown
- Default cooldown period in seconds. Default value: 300public Long getDesiredCapacity()
public void setDesiredCapacity(Long DesiredCapacity)
DesiredCapacity
- Desired number of instances. The number should be no larger than the maximum and no smaller than minimum number of instancespublic String[] getLoadBalancerIds()
public void setLoadBalancerIds(String[] LoadBalancerIds)
LoadBalancerIds
- List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID of an instance in a scaling group. The default project is used if it’s left blank.public ForwardLoadBalancer[] getForwardLoadBalancers()
public void setForwardLoadBalancers(ForwardLoadBalancer[] ForwardLoadBalancers)
ForwardLoadBalancers
- List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time.public String[] getSubnetIds()
public void setSubnetIds(String[] SubnetIds)
SubnetIds
- List of subnet IDs. A subnet must be specified in the VPC scenario. If multiple subnets are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created.public String[] getTerminationPolicies()
public void setTerminationPolicies(String[] TerminationPolicies)
TerminationPolicies
- Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE. Default value: OLDEST_INSTANCE.
public String[] getZones()
public void setZones(String[] Zones)
Zones
- List of availability zones. An availability zone must be specified in the basic network scenario. If multiple availability zones are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created.public String getRetryPolicy()
public void setRetryPolicy(String RetryPolicy)
RetryPolicy
- Retry policy. Valid values: `IMMEDIATE_RETRY` (default), `INCREMENTAL_INTERVALS`, `NO_RETRY`. A partially successful scaling is judged as a failed one.
public String getZonesCheckPolicy()
public void setZonesCheckPolicy(String ZonesCheckPolicy)
ZonesCheckPolicy
- Availability zone verification policy. Value range: ALL, ANY. Default value: ANY.
public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- List of tag descriptions. In this parameter, you can specify the tags to be bound with a scaling group as well as corresponding resource instances. Each scaling group can have up to 30 tags.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.public String getMultiZoneSubnetPolicy()
public void setMultiZoneSubnetPolicy(String MultiZoneSubnetPolicy)
MultiZoneSubnetPolicy
- Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
public String getHealthCheckType()
public void setHealthCheckType(String HealthCheckType)
HealthCheckType
- Health check type of instances in a scaling group.public Long getLoadBalancerHealthCheckGracePeriod()
public void setLoadBalancerHealthCheckGracePeriod(Long LoadBalancerHealthCheckGracePeriod)
LoadBalancerHealthCheckGracePeriod
- Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.public String getInstanceAllocationPolicy()
public void setInstanceAllocationPolicy(String InstanceAllocationPolicy)
InstanceAllocationPolicy
- Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`; default value: `LAUNCH_CONFIGURATION`.
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
- Indicates whether the capacity re-balancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values:
public InstanceNameIndexSettings getInstanceNameIndexSettings()
public void setInstanceNameIndexSettings(InstanceNameIndexSettings InstanceNameIndexSettings)
InstanceNameIndexSettings
- Instance name sequencing settings. If this parameter is not specified, the default is not enabled. When enabled, an incremental numeric sequence will be appended to the names of instances automatically created within the scaling group.Copyright © 2024. All rights reserved.