public static final class DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder affinity(String affinity)
* default: The instance is not associated with the dedicated host. If you restart an instance that was stopped in Economical Mode and the original dedicated host of the instance has insufficient resources, the instance is automatically deployed to another dedicated host in the automatic deployment resource pool. * host: The instance is associated with the dedicated host. If you restart an instance that was stopped in Economical Mode, the instance remains on the original dedicated host. If the available resources of the original dedicated host are insufficient, the instance cannot be restarted.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder cpu(Integer cpu)
You can specify CPU and Memory to define the range of instance types. For example, if you set CPU to 2 and Memory to 16, the instance types that have 2 vCPUs and 16 GiB are returned. If you specify CPU and Memory, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones and preferentially creates instances by using the lowest-priced instance type. > You can specify CPU and Memory to define instance types only when you set Scaling Policy to Cost Optimization and no instance type is specified in the scaling configuration.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder creationTime(String creationTime)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder creditSpecification(String creditSpecification)
* Standard: the standard mode. For more information, see the "Standard mode" section in the [Overview of burstable instances](~~59977~~) topic. * Unlimited: the unlimited mode. For more information, see the "Unlimited mode" section in [Overview of burstable instances](~~59977~~).
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder customPriorities(List<DescribeScalingConfigurationsResponseBody.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 a portion of 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 DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder dataDisks(List<DescribeScalingConfigurationsResponseBody.DataDisks> dataDisks)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder dedicatedHostClusterId(String dedicatedHostClusterId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder dedicatedHostId(String dedicatedHostId)
You can call the DescribeDedicatedHosts operation to query the IDs of dedicated hosts.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder deletionProtection(Boolean deletionProtection)
* true: Release Protection is enabled for the ECS instances. You cannot delete the ECS instances by using the ECS console or calling the DeleteInstance operation. * false: Release Protection is disabled for the ECS instances. You can delete the ECS instances by using the ECS console or calling the DeleteInstance operation. > You can enable Release Protection for only pay-as-you-go instances to prevent unexpected instance deletion during scale-in events. The Release Protection feature does not affect normal scaling activities. In other words, an instance that meets the criteria of scale-in policies may be removed from a scaling group during a scale-in event even if you enabled Release Protection for the instance.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder deploymentSetId(String deploymentSetId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder hostName(String hostName)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder hpcClusterId(String hpcClusterId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder imageFamily(String imageFamily)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder imageId(String imageId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder imageName(String imageName)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder imageOptionsLoginAsNonRoot(Boolean imageOptionsLoginAsNonRoot)
* true * false
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder imageOwnerAlias(String imageOwnerAlias)
* system: a public image provided by Alibaba Cloud * self: a custom image that you created * others: a shared image from another Alibaba Cloud account or a community image published by another Alibaba Cloud account * marketplace: an Alibaba Cloud Marketplace image
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder instanceDescription(String instanceDescription)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder instanceGeneration(String instanceGeneration)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder instanceName(String instanceName)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder instancePatternInfos(List<DescribeScalingConfigurationsResponseBody.InstancePatternInfos> instancePatternInfos)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder instanceType(String instanceType)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder instanceTypes(List<String> instanceTypes)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder internetChargeType(String internetChargeType)
* PayByBandwidth: pay-by-bandwidth. You are charged for the bandwidth that you specified by using InternetMaxBandwidthOut. * PayByTraffic: pay-by-traffic. You are charged for the actual traffic that you used. InternetMaxBandwidthOut specifies only the maximum available bandwidth.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder internetMaxBandwidthIn(Integer internetMaxBandwidthIn)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
* 0 to 1024 if you set InternetChargeType to PayByBandwidth. If you leave this parameter empty, this parameter is automatically set to 0. * 0 to 1024 if you set InternetChargeType to PayByTraffic. If you leave this parameter empty, an error is returned.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder ioOptimized(String ioOptimized)
* none: The ECS instances are not I/O optimized. * optimized: The ECS instances are I/O optimized.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder ipv6AddressCount(Integer ipv6AddressCount)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder keyPairName(String keyPairName)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder lifecycleState(String lifecycleState)
* Active: The scaling configuration is active in the scaling group. Auto Scaling uses the scaling configuration that is in the Active state to create ECS instances during scale-out events. * Inactive: The scaling configuration is inactive in the scaling group. Scaling configurations that are in the Inactive state are still contained in the scaling group, but Auto Scaling does not use the inactive scaling configurations to create ECS instances during scale-out events.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder loadBalancerWeight(Integer loadBalancerWeight)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder memory(Integer memory)
You can specify CPU and Memory to define the range of instance types. For example, if you set CPU to 2 and Memory to 16, the instance types that have 2 vCPUs and 16 GiB are returned. If you specify CPU and Memory, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones and preferentially creates instances by using the lowest-priced instance type. > You can specify CPU and Memory to define instance types only when you set Scaling Policy to Cost Optimization and no instance type is specified in the scaling configuration.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder networkInterfaces(List<DescribeScalingConfigurationsResponseBody.NetworkInterfaces> networkInterfaces)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder passwordInherit(Boolean passwordInherit)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder passwordSetted(Boolean passwordSetted)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder privatePoolOptions_id(String privatePoolOptions_id)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder privatePoolOptions_matchCriteria(String privatePoolOptions_matchCriteria)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder ramRoleName(String ramRoleName)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder resourceGroupId(String resourceGroupId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder scalingConfigurationId(String scalingConfigurationId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder scalingConfigurationName(String scalingConfigurationName)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder scalingGroupId(String scalingGroupId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder schedulerOptions(DescribeScalingConfigurationsResponseBody.SchedulerOptions schedulerOptions)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder securityEnhancementStrategy(String securityEnhancementStrategy)
* Active: Security Hardening is enabled. This value is applicable to only public images. * Deactive: Security Hardening is disabled. This value is applicable to all images.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder securityGroupId(String securityGroupId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder securityGroupIds(List<String> securityGroupIds)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder spotDuration(Integer spotDuration)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder spotInterruptionBehavior(String spotInterruptionBehavior)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder spotPriceLimits(List<DescribeScalingConfigurationsResponseBody.SpotPriceLimits> spotPriceLimits)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder spotStrategy(String spotStrategy)
* NoSpot: The instances are created as regular pay-as-you-go instances. * SpotWithPriceLimit: The instances are created as preemptible instances that have a user-defined maximum hourly price. * SpotAsPriceGo: The instances are preemptible instances for which the market price at the time of purchase is automatically used as the bid price.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder storageSetId(String storageSetId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder storageSetPartitionNumber(Integer storageSetPartitionNumber)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolicyId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskBurstingEnabled(Boolean systemDiskBurstingEnabled)
* true * false > This parameter is available only when you set SystemDisk.Category to cloud_auto.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskCategories(List<String> systemDiskCategories)
* cloud: basic disk * cloud_efficiency: ultra disk * cloud_ssd: standard SSD * cloud_essd: ESSD
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskCategory(String systemDiskCategory)
* cloud: basic disk * cloud_efficiency: ultra disk * cloud_ssd: standard SSD * ephemeral_ssd: local SSD * cloud_essd: enterprise SSD (ESSD) * cloud_auto: ESSD AutoPL
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskDescription(String systemDiskDescription)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskEncryptAlgorithm(String systemDiskEncryptAlgorithm)
* AES-256 * SM4-128
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskEncrypted(Boolean systemDiskEncrypted)
* true * false
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskKMSKeyId(String systemDiskKMSKeyId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskName(String systemDiskName)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskPerformanceLevel(String systemDiskPerformanceLevel)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskProvisionedIops(Long systemDiskProvisionedIops)
> IOPS measures the number of read and write operations that an EBS device can process per second.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder systemDiskSize(Integer systemDiskSize)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder tags(List<DescribeScalingConfigurationsResponseBody.Tags> tags)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder tenancy(String tenancy)
* default: The ECS instance is created on a non-dedicated host. * host: The ECS instance is created on a dedicated host. If you do not specify DedicatedHostId, the system selects a dedicated host for the ECS instance. Default value: default.
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder userData(String userData)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder weightedCapacities(List<Integer> weightedCapacities)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations.Builder zoneId(String zoneId)
public DescribeScalingConfigurationsResponseBody.ScalingConfigurations build()
Copyright © 2024. All rights reserved.