public static final class ModifyScalingConfigurationRequest.Builder extends Object
public ModifyScalingConfigurationRequest.Builder imageOptions(ModifyScalingConfigurationRequest.ImageOptions imageOptions)
public ModifyScalingConfigurationRequest.Builder privatePoolOptions(ModifyScalingConfigurationRequest.PrivatePoolOptions privatePoolOptions)
public ModifyScalingConfigurationRequest.Builder systemDisk(ModifyScalingConfigurationRequest.SystemDisk systemDisk)
public ModifyScalingConfigurationRequest.Builder affinity(String affinity)
* default: does not associate the ECS instance with the dedicated host. If you start an instance that is stopped in economical mode and the original dedicated host has insufficient resources, the 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 is stopped in economical mode, the ECS instance remains on the original dedicated host. If the original dedicated host has insufficient resources, the ECS instance fails to start.
public ModifyScalingConfigurationRequest.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 an instance type in the scaling configuration.
public ModifyScalingConfigurationRequest.Builder creditSpecification(String creditSpecification)
* Standard: standard mode. For more information, see the "Standard mode" section in the [Burstable instances](~~59977~~) topic. * Unlimited: unlimited mode. For more information, see the "Unlimited mode" section in the [Burstable instances](~~59977~~) topic.
public ModifyScalingConfigurationRequest.Builder customPriorities(List<ModifyScalingConfigurationRequest.CustomPriorities> customPriorities)
public ModifyScalingConfigurationRequest.Builder dataDisks(List<ModifyScalingConfigurationRequest.DataDisks> dataDisks)
public ModifyScalingConfigurationRequest.Builder dedicatedHostClusterId(String dedicatedHostClusterId)
public ModifyScalingConfigurationRequest.Builder dedicatedHostId(String dedicatedHostId)
You can call the DescribeDedicatedHosts operation to query the most recent list of dedicated host IDs.
public ModifyScalingConfigurationRequest.Builder deletionProtection(Boolean deletionProtection)
public ModifyScalingConfigurationRequest.Builder deploymentSetId(String deploymentSetId)
public ModifyScalingConfigurationRequest.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. Separate a hostname into multiple segments with periods (.). Each segment can contain letters, digits, and hyphens (-).
public ModifyScalingConfigurationRequest.Builder hpcClusterId(String hpcClusterId)
public ModifyScalingConfigurationRequest.Builder imageFamily(String imageFamily)
public ModifyScalingConfigurationRequest.Builder imageId(String imageId)
> If the image that is specified in the scaling configuration contains system disks and data disks, the data that is stored in the data disks is cleared after you modify the image.
public ModifyScalingConfigurationRequest.Builder imageName(String imageName)
You cannot use ImageName to specify images from Alibaba Cloud Marketplace.
public ModifyScalingConfigurationRequest.Builder instanceDescription(String instanceDescription)
public ModifyScalingConfigurationRequest.Builder instanceName(String instanceName)
public ModifyScalingConfigurationRequest.Builder instancePatternInfos(List<ModifyScalingConfigurationRequest.InstancePatternInfos> instancePatternInfos)
public ModifyScalingConfigurationRequest.Builder instanceTypeOverrides(List<ModifyScalingConfigurationRequest.InstanceTypeOverrides> instanceTypeOverrides)
public ModifyScalingConfigurationRequest.Builder instanceTypes(List<String> instanceTypes)
Auto Scaling creates instances based on the priorities of 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 ModifyScalingConfigurationRequest.Builder internetChargeType(String internetChargeType)
* PayByBandwidth: You are charged for the maximum available bandwidth that is specified by InternetMaxBandwidthOut. * PayByTraffic: You are charged for the actual data transfer. InternetMaxBandwidthOut specifies only the maximum available bandwidth.
public ModifyScalingConfigurationRequest.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
* If you set InternetChargeType to PayByBandwidth: 0 to 100. If you leave this parameter empty, this parameter is automatically set to 0. * If you set InternetChargeType to PayByTraffic: 0 to 100. If you leave this parameter empty, an error is returned.
public ModifyScalingConfigurationRequest.Builder ioOptimized(String ioOptimized)
* none: does not create an I/O optimized instance. * optimized: creates an I/O optimized instance.
public ModifyScalingConfigurationRequest.Builder ipv6AddressCount(Integer ipv6AddressCount)
public ModifyScalingConfigurationRequest.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 ModifyScalingConfigurationRequest.Builder loadBalancerWeight(Integer loadBalancerWeight)
public ModifyScalingConfigurationRequest.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 an instance type in the scaling configuration.
public ModifyScalingConfigurationRequest.Builder networkInterfaces(List<ModifyScalingConfigurationRequest.NetworkInterfaces> networkInterfaces)
public ModifyScalingConfigurationRequest.Builder override(Boolean override)
* true * false
public ModifyScalingConfigurationRequest.Builder ownerAccount(String ownerAccount)
public ModifyScalingConfigurationRequest.Builder ownerId(Long ownerId)
public ModifyScalingConfigurationRequest.Builder password(String password)
public ModifyScalingConfigurationRequest.Builder passwordInherit(Boolean passwordInherit)
public ModifyScalingConfigurationRequest.Builder ramRoleName(String ramRoleName)
public ModifyScalingConfigurationRequest.Builder resourceGroupId(String resourceGroupId)
public ModifyScalingConfigurationRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyScalingConfigurationRequest.Builder scalingConfigurationId(String scalingConfigurationId)
public ModifyScalingConfigurationRequest.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 ModifyScalingConfigurationRequest.Builder schedulerOptions(Map<String,?> schedulerOptions)
public ModifyScalingConfigurationRequest.Builder securityGroupId(String securityGroupId)
public ModifyScalingConfigurationRequest.Builder securityGroupIds(List<String> securityGroupIds)
public ModifyScalingConfigurationRequest.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 retention period is specified for the preemptible instance.
public ModifyScalingConfigurationRequest.Builder spotInterruptionBehavior(String spotInterruptionBehavior)
public ModifyScalingConfigurationRequest.Builder spotPriceLimits(List<ModifyScalingConfigurationRequest.SpotPriceLimits> spotPriceLimits)
public ModifyScalingConfigurationRequest.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 bidding price.
public ModifyScalingConfigurationRequest.Builder storageSetId(String storageSetId)
public ModifyScalingConfigurationRequest.Builder storageSetPartitionNumber(Integer storageSetPartitionNumber)
public ModifyScalingConfigurationRequest.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 ModifyScalingConfigurationRequest.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://`. The tag key cannot be an empty string. * 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://`. The tag value can be an empty string.
public ModifyScalingConfigurationRequest.Builder tenancy(String tenancy)
* default: does not create the ECS instance on a dedicated host. * host: creates the ECS instance on a dedicated host. If you do not specify DedicatedHostId, Alibaba Cloud selects a dedicated host for the ECS instance.
public ModifyScalingConfigurationRequest.Builder userData(String userData)
public ModifyScalingConfigurationRequest.Builder zoneId(String zoneId)
public ModifyScalingConfigurationRequest build()
Copyright © 2024. All rights reserved.