public static final class CreateScalingConfigurationRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateScalingConfigurationRequest.Builder |
affinity(String affinity)
Specifies whether to associate an ECS instance on a dedicated host with the dedicated host.
|
CreateScalingConfigurationRequest |
build() |
CreateScalingConfigurationRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateScalingConfigurationRequest.Builder |
cpu(Integer cpu)
The number of vCPUs.
|
CreateScalingConfigurationRequest.Builder |
creditSpecification(String creditSpecification)
The performance mode of the burstable instance.
|
CreateScalingConfigurationRequest.Builder |
customPriorities(List<CreateScalingConfigurationRequest.CustomPriorities> customPriorities)
The priority of the custom ECS instance type + vSwitch combination.
|
CreateScalingConfigurationRequest.Builder |
dataDisks(List<CreateScalingConfigurationRequest.DataDisks> dataDisks)
The data disks.
|
CreateScalingConfigurationRequest.Builder |
dedicatedHostClusterId(String dedicatedHostClusterId)
The ID of the dedicated host cluster.
|
CreateScalingConfigurationRequest.Builder |
dedicatedHostId(String dedicatedHostId)
The ID of the dedicated host on which you want to create an ECS instance.
|
CreateScalingConfigurationRequest.Builder |
deletionProtection(Boolean deletionProtection)
DeletionProtection.
|
CreateScalingConfigurationRequest.Builder |
deploymentSetId(String deploymentSetId)
The ID of the deployment set of the ECS instances that are created by using the scaling configuration.
|
CreateScalingConfigurationRequest.Builder |
hostName(String hostName)
The hostname of the ECS instance.
|
CreateScalingConfigurationRequest.Builder |
hpcClusterId(String hpcClusterId)
The ID of the Elastic High Performance Computing (E-HPC) cluster to which the ECS instances that are created by using the scaling configuration belong.
|
CreateScalingConfigurationRequest.Builder |
imageFamily(String imageFamily)
The name of the image family.
|
CreateScalingConfigurationRequest.Builder |
imageId(String imageId)
The ID of the image that Auto Scaling uses to automatically create ECS instances.
|
CreateScalingConfigurationRequest.Builder |
imageName(String imageName)
The name of the image.
|
CreateScalingConfigurationRequest.Builder |
imageOptions(CreateScalingConfigurationRequest.ImageOptions imageOptions)
ImageOptions.
|
CreateScalingConfigurationRequest.Builder |
instanceDescription(String instanceDescription)
The description of the ECS instance.
|
CreateScalingConfigurationRequest.Builder |
instanceName(String instanceName)
The name of the ECS instance that Auto Scaling creates based on the scaling configuration.
|
CreateScalingConfigurationRequest.Builder |
instancePatternInfos(List<CreateScalingConfigurationRequest.InstancePatternInfos> instancePatternInfos)
The information about the intelligent configuration settings, which determine the available instance types.
|
CreateScalingConfigurationRequest.Builder |
instanceType(String instanceType)
The instance type of the ECS instance.
|
CreateScalingConfigurationRequest.Builder |
instanceTypeOverrides(List<CreateScalingConfigurationRequest.InstanceTypeOverrides> instanceTypeOverrides)
The instance types.
|
CreateScalingConfigurationRequest.Builder |
instanceTypes(List<String> instanceTypes)
The instance types.
|
CreateScalingConfigurationRequest.Builder |
internetChargeType(String internetChargeType)
The metering method for network usage.
|
CreateScalingConfigurationRequest.Builder |
internetMaxBandwidthIn(Integer internetMaxBandwidthIn)
The maximum inbound public bandwidth.
|
CreateScalingConfigurationRequest.Builder |
internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
The maximum outbound public bandwidth.
|
CreateScalingConfigurationRequest.Builder |
ioOptimized(String ioOptimized)
Specifies whether to create an I/O optimized instance.
|
CreateScalingConfigurationRequest.Builder |
ipv6AddressCount(Integer ipv6AddressCount)
The number of randomly generated IPv6 addresses that you want to allocate to the elastic network interface (ENI).
|
CreateScalingConfigurationRequest.Builder |
keyPairName(String keyPairName)
The name of the key pair that you want to use to log on to an ECS instance.
|
CreateScalingConfigurationRequest.Builder |
loadBalancerWeight(Integer loadBalancerWeight)
The weight of an ECS instance as a backend server.
|
CreateScalingConfigurationRequest.Builder |
memory(Integer memory)
The memory size.
|
CreateScalingConfigurationRequest.Builder |
networkInterfaces(List<CreateScalingConfigurationRequest.NetworkInterfaces> networkInterfaces)
NetworkInterfaces.
|
CreateScalingConfigurationRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateScalingConfigurationRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateScalingConfigurationRequest.Builder |
password(String password)
The password that you want to use to log on to an ECS instance.
|
CreateScalingConfigurationRequest.Builder |
passwordInherit(Boolean passwordInherit)
Specifies whether to use the password that is preconfigured in the image.
|
CreateScalingConfigurationRequest.Builder |
privatePoolOptions(CreateScalingConfigurationRequest.PrivatePoolOptions privatePoolOptions)
PrivatePoolOptions.
|
CreateScalingConfigurationRequest.Builder |
ramRoleName(String ramRoleName)
The name of the RAM role that you attach to the ECS instance.
|
CreateScalingConfigurationRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the ECS instances that are created by using the scaling configuration belong.
|
CreateScalingConfigurationRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateScalingConfigurationRequest.Builder |
scalingConfigurationName(String scalingConfigurationName)
The name of the scaling configuration.
|
CreateScalingConfigurationRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group in which you want to create a scaling configuration.
|
CreateScalingConfigurationRequest.Builder |
schedulerOptions(Map<String,?> schedulerOptions)
The scheduler options.
|
CreateScalingConfigurationRequest.Builder |
securityEnhancementStrategy(String securityEnhancementStrategy)
Specifies whether to enable security hardening.
|
CreateScalingConfigurationRequest.Builder |
securityGroupId(String securityGroupId)
The ID of the security group with which ECS instances are associated.
|
CreateScalingConfigurationRequest.Builder |
securityGroupIds(List<String> securityGroupIds)
The IDs of the security groups with which you want to associate the ECS instances that are created by using the scaling configuration.
|
CreateScalingConfigurationRequest.Builder |
spotDuration(Integer spotDuration)
The retention period of the preemptible instance.
|
CreateScalingConfigurationRequest.Builder |
spotInterruptionBehavior(String spotInterruptionBehavior)
The interruption mode of the preemptible instance.
|
CreateScalingConfigurationRequest.Builder |
spotPriceLimits(List<CreateScalingConfigurationRequest.SpotPriceLimits> spotPriceLimits)
The billing information of the preemptible instances.
|
CreateScalingConfigurationRequest.Builder |
spotStrategy(String spotStrategy)
The preemption policy that you want to apply to pay-as-you-go and preemptible instances.
|
CreateScalingConfigurationRequest.Builder |
storageSetId(String storageSetId)
StorageSetId.
|
CreateScalingConfigurationRequest.Builder |
storageSetPartitionNumber(Integer storageSetPartitionNumber)
StorageSetPartitionNumber.
|
CreateScalingConfigurationRequest.Builder |
systemDisk(CreateScalingConfigurationRequest.SystemDisk systemDisk)
SystemDisk.
|
CreateScalingConfigurationRequest.Builder |
systemDiskCategories(List<String> systemDiskCategories)
The categories of the system disks.
|
CreateScalingConfigurationRequest.Builder |
tags(String tags)
The tags of the ECS instance.
|
CreateScalingConfigurationRequest.Builder |
tenancy(String tenancy)
Specifies whether to create an ECS instance on a dedicated host.
|
CreateScalingConfigurationRequest.Builder |
userData(String userData)
The user data of the Elastic Compute Service (ECS) instance.
|
CreateScalingConfigurationRequest.Builder |
zoneId(String zoneId)
The zone ID of the ECS instance.
|
public CreateScalingConfigurationRequest.Builder imageOptions(CreateScalingConfigurationRequest.ImageOptions imageOptions)
public CreateScalingConfigurationRequest.Builder privatePoolOptions(CreateScalingConfigurationRequest.PrivatePoolOptions privatePoolOptions)
public CreateScalingConfigurationRequest.Builder systemDisk(CreateScalingConfigurationRequest.SystemDisk systemDisk)
public CreateScalingConfigurationRequest.Builder affinity(String affinity)
* default: does not associate the ECS instance with the dedicated host. If you start an ECS instance that was stopped in economical mode and the original dedicated host has insufficient resources, the ECS instance is automatically deployed to another dedicated host in the automatic deployment resource pool. * host: associates the ECS instance with the dedicated host. If you start an ECS instance that was stopped in economical mode, the instance remains on the original dedicated host. If the original dedicated host has insufficient resources, the ECS instance fails to start. Default value: default
public CreateScalingConfigurationRequest.Builder clientToken(String clientToken)
public CreateScalingConfigurationRequest.Builder cpu(Integer cpu)
You can specify the number of vCPUs and the memory size to determine the range of instance types. For example, you can set CPU to 2 and Memory to 16 to specify instance types that have 2 vCPUs and 16 GiB of memory. If you specify Cpu and Memory, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling preferentially creates instances by using the lowest-priced instance type. > You can specify Cpu and Memory to determine the range of instance types only if you set Scaling Policy to Cost Optimization Policy and you do not specify instance types in the scaling configuration.
public CreateScalingConfigurationRequest.Builder creditSpecification(String creditSpecification)
* Standard: standard mode * Unlimited: unlimited mode For more information, see the "Performance modes" section in the "[Overview](~~59977~~)" topic.
public CreateScalingConfigurationRequest.Builder customPriorities(List<CreateScalingConfigurationRequest.CustomPriorities> customPriorities)
> This parameter takes effect only when Scaling Policy of the scaling group is set to Priority Policy. If Auto Scaling cannot create ECS instances by using the custom ECS instance type + vSwitch combination of the highest priority, Auto Scaling creates ECS instances by using the custom ECS instance type + vSwitch combination of the next highest priority. > If you specify the priorities of only partial custom ECS instance type + vSwitch combinations, Auto Scaling preferentially creates ECS instances by using the custom combinations that have specified priorities. If the custom combinations that have specified priorities do not provide sufficient resources, Auto Scaling creates ECS instances by using the custom combinations that do not have specified priorities based on the specified orders of vSwitches and instance types. * Example: the specified order of vSwitches for your scaling group is vsw1 and vsw2 and the specified order of instance types in your scaling configuration is type1 and type 2. In addition, you use CustomPriorities to specify \["vsw2+type2", "vsw1+type2"]. In this example, the vsw2+type2 combination has the highest priority and the vsw2+type1 combination has the lowest priority. The vsw1+type2 combination has a higher priority than the vsw1+type1 combination.
public CreateScalingConfigurationRequest.Builder dataDisks(List<CreateScalingConfigurationRequest.DataDisks> dataDisks)
public CreateScalingConfigurationRequest.Builder dedicatedHostClusterId(String dedicatedHostClusterId)
public CreateScalingConfigurationRequest.Builder dedicatedHostId(String dedicatedHostId)
You can call the DescribeDedicatedHosts operation to query dedicated host IDs.
public CreateScalingConfigurationRequest.Builder deletionProtection(Boolean deletionProtection)
public CreateScalingConfigurationRequest.Builder deploymentSetId(String deploymentSetId)
public CreateScalingConfigurationRequest.Builder hostName(String hostName)
* Windows instances: The hostname must be 2 to 15 characters in length and can contain letters, digits, and hyphens (-). The hostname cannot contain periods (.) or contain only digits. * Other instances, such as Linux instances: The hostname must be 2 to 64 characters in length. You can use periods (.) to separate a hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-).
public CreateScalingConfigurationRequest.Builder hpcClusterId(String hpcClusterId)
public CreateScalingConfigurationRequest.Builder imageFamily(String imageFamily)
public CreateScalingConfigurationRequest.Builder imageId(String imageId)
public CreateScalingConfigurationRequest.Builder imageName(String imageName)
You cannot use ImageName to specify images that are purchased from Alibaba Cloud Marketplace.
public CreateScalingConfigurationRequest.Builder instanceDescription(String instanceDescription)
public CreateScalingConfigurationRequest.Builder instanceName(String instanceName)
public CreateScalingConfigurationRequest.Builder instancePatternInfos(List<CreateScalingConfigurationRequest.InstancePatternInfos> instancePatternInfos)
public CreateScalingConfigurationRequest.Builder instanceType(String instanceType)
public CreateScalingConfigurationRequest.Builder instanceTypeOverrides(List<CreateScalingConfigurationRequest.InstanceTypeOverrides> instanceTypeOverrides)
public CreateScalingConfigurationRequest.Builder instanceTypes(List<String> instanceTypes)
Auto Scaling creates instances based on the priorities of the instance types. If Auto Scaling cannot create instances by using the instance type that has the highest priority, Auto Scaling creates instances by using the instance type that has the next highest priority.
public CreateScalingConfigurationRequest.Builder internetChargeType(String internetChargeType)
* PayByBandwidth: You are charged for the maximum available bandwidth that is specified by InternetMaxBandwidthOut. * PayByTraffic: You are charged based on the amount of transferred data. InternetMaxBandwidthOut specifies only the maximum available bandwidth. For the classic network, the default value is PayByBandwidth. For VPCs, the default value is PayByTraffic.
public CreateScalingConfigurationRequest.Builder internetMaxBandwidthIn(Integer internetMaxBandwidthIn)
Default value: 200 This parameter is not used for billing because inbound traffic to instances is free of charge.
public CreateScalingConfigurationRequest.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
* Valid values if you set InternetChargeType to PayByBandwidth: 0 to 100. If you leave this parameter empty, this parameter is automatically set to 0. * Valid values if you set InternetChargeType to PayByTraffic: 0 to 100. If you leave this parameter empty, an error is returned.
public CreateScalingConfigurationRequest.Builder ioOptimized(String ioOptimized)
none: does not create an I/O optimized instance. optimized: creates an I/O optimized instance. For instances of retired instance types, the default value is none. For instances of other instance types, the default value is optimized.
public CreateScalingConfigurationRequest.Builder ipv6AddressCount(Integer ipv6AddressCount)
public CreateScalingConfigurationRequest.Builder keyPairName(String keyPairName)
* Windows instances do not support this parameter. * By default, the username and password authentication method is disabled for Linux instances.
public CreateScalingConfigurationRequest.Builder loadBalancerWeight(Integer loadBalancerWeight)
Default value: 50
public CreateScalingConfigurationRequest.Builder memory(Integer memory)
You can specify the number of vCPUs and the memory size to determine the range of instance types. For example, you can set Cpu to 2 and Memory to 16 to specify instance types that have 2 vCPUs and 16 GiB of memory. If you specify Cpu and Memory, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling preferentially creates instances by using the lowest-priced instance type. > You can specify Cpu and Memory to determine the range of instance types only if you set Scaling Policy to Cost Optimization Policy and you do not specify instance types in the scaling configuration.
public CreateScalingConfigurationRequest.Builder networkInterfaces(List<CreateScalingConfigurationRequest.NetworkInterfaces> networkInterfaces)
public CreateScalingConfigurationRequest.Builder ownerAccount(String ownerAccount)
public CreateScalingConfigurationRequest.Builder ownerId(Long ownerId)
public CreateScalingConfigurationRequest.Builder password(String password)
`` `() ~!@#$%^&*-_+=\|{}[]:;\"<>,.?/ `` The password of a Windows instance cannot start with a forward slash (/). > For security reasons, we recommend that you use HTTPS to send requests if you specify Password.
public CreateScalingConfigurationRequest.Builder passwordInherit(Boolean passwordInherit)
* true * false
public CreateScalingConfigurationRequest.Builder ramRoleName(String ramRoleName)
public CreateScalingConfigurationRequest.Builder resourceGroupId(String resourceGroupId)
public CreateScalingConfigurationRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateScalingConfigurationRequest.Builder scalingConfigurationName(String scalingConfigurationName)
The name of the scaling configuration must be unique in a region. If you do not specify this parameter, the scaling configuration ID is used.
public CreateScalingConfigurationRequest.Builder scalingGroupId(String scalingGroupId)
public CreateScalingConfigurationRequest.Builder schedulerOptions(Map<String,?> schedulerOptions)
public CreateScalingConfigurationRequest.Builder securityEnhancementStrategy(String securityEnhancementStrategy)
* Active: enables security hardening. This value is applicable only to public images. * Deactive: disables security hardening. This value is applicable to all image types.
public CreateScalingConfigurationRequest.Builder securityGroupId(String securityGroupId)
public CreateScalingConfigurationRequest.Builder securityGroupIds(List<String> securityGroupIds)
> If you specify SecurityGroupId, you cannot specify SecurityGroupIds.
public CreateScalingConfigurationRequest.Builder spotDuration(Integer spotDuration)
* The following retention periods are available in invitational preview: 2, 3, 4, 5, and 6 hours. If you want to set this parameter to one of these values, submit a ticket. * If you set this parameter to 0, no protection period is specified for the preemptible instance. Default value: 1
public CreateScalingConfigurationRequest.Builder spotInterruptionBehavior(String spotInterruptionBehavior)
public CreateScalingConfigurationRequest.Builder spotPriceLimits(List<CreateScalingConfigurationRequest.SpotPriceLimits> spotPriceLimits)
public CreateScalingConfigurationRequest.Builder spotStrategy(String spotStrategy)
* NoSpot: The instance is created as a pay-as-you-go instance. * SpotWithPriceLimit: The instance is a preemptible instance that has a user-defined maximum hourly price. * SpotAsPriceGo: The instance is created as a preemptible instance for which the market price at the time of purchase is automatically used as the bid price. Default value: NoSpot
public CreateScalingConfigurationRequest.Builder storageSetId(String storageSetId)
public CreateScalingConfigurationRequest.Builder storageSetPartitionNumber(Integer storageSetPartitionNumber)
public CreateScalingConfigurationRequest.Builder systemDiskCategories(List<String> systemDiskCategories)
* cloud: basic disk * cloud_efficiency: ultra disk * cloud_ssd: standard SSD * cloud_essd: ESSD > If you specify SystemDiskCategories, you cannot specify `SystemDisk.Category`.
public CreateScalingConfigurationRequest.Builder tags(String tags)
* A tag key can be up to 64 characters in length. The key cannot start with acs: or aliyun and cannot contain `http://` or `https://`. You cannot specify an empty string as a tag key. * A tag value can be up to 128 characters in length. The value cannot start with acs: or aliyun and cannot contain `http://` or `https://`. You can specify an empty string as a tag value.
public CreateScalingConfigurationRequest.Builder tenancy(String tenancy)
* default: does not create an ECS instance on a dedicated host. * host: creates an ECS instance on a dedicated host. If you do not specify DedicatedHostId, Alibaba Cloud selects a dedicated host for the ECS instance. Default value: default
public CreateScalingConfigurationRequest.Builder userData(String userData)
public CreateScalingConfigurationRequest.Builder zoneId(String zoneId)
public CreateScalingConfigurationRequest build()
Copyright © 2024. All rights reserved.