public static final class CreateLaunchTemplateVersionRequest.Builder extends Object
public CreateLaunchTemplateVersionRequest.Builder systemDisk(CreateLaunchTemplateVersionRequest.SystemDisk systemDisk)
public CreateLaunchTemplateVersionRequest.Builder sourceRegionId(String sourceRegionId)
public CreateLaunchTemplateVersionRequest.Builder autoReleaseTime(String autoReleaseTime)
* If the value of `ss` is not `00`, the time is automatically rounded down to the nearest minute based on the value of `mm`. * The specified time must be at least 30 minutes later than the current time. * The specified time can be at most three years later than the current time.
public CreateLaunchTemplateVersionRequest.Builder autoRenew(Boolean autoRenew)
* true * false Default value: false.
public CreateLaunchTemplateVersionRequest.Builder autoRenewPeriod(Integer autoRenewPeriod)
Valid values when PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60. Default value: 1.
public CreateLaunchTemplateVersionRequest.Builder creditSpecification(String creditSpecification)
* Standard: the standard mode. For more information, see the "Standard mode" section in [Overview of burstable instances](~~59977~~). * Unlimited: the unlimited mode. For more information, see the "Unlimited mode" section in [Overview of burstable instances](~~59977~~).
public CreateLaunchTemplateVersionRequest.Builder dataDisk(List<CreateLaunchTemplateVersionRequest.DataDisk> dataDisk)
public CreateLaunchTemplateVersionRequest.Builder deletionProtection(Boolean deletionProtection)
* true * false Default value: false. > This parameter is applicable only to pay-as-you-go instances. The release protection feature can protect instances against manual releases, but not against automatic releases.
public CreateLaunchTemplateVersionRequest.Builder deploymentSetId(String deploymentSetId)
public CreateLaunchTemplateVersionRequest.Builder description(String description)
public CreateLaunchTemplateVersionRequest.Builder enableVmOsConfig(Boolean enableVmOsConfig)
public CreateLaunchTemplateVersionRequest.Builder hostName(String hostName)
* The hostname cannot start or end with a period (.) or hyphen (-). It cannot contain consecutive periods (.) or hyphens (-). * For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. It can contain letters, digits, and hyphens (-). * For instances that run other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate the hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-).
public CreateLaunchTemplateVersionRequest.Builder imageId(String imageId)
public CreateLaunchTemplateVersionRequest.Builder imageOwnerAlias(String imageOwnerAlias)
> This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
public CreateLaunchTemplateVersionRequest.Builder instanceChargeType(String instanceChargeType)
* PrePaid: subscription. If you set this parameter to PrePaid, make sure that your account has sufficient credits. Otherwise, an `InvalidPayMethod` error is returned. * PostPaid: pay-as-you-go
public CreateLaunchTemplateVersionRequest.Builder instanceName(String instanceName)
When you create multiple ECS instances at a time, you can batch configure sequential names for the instances. The instance names can contain square brackets (\[]) and commas (,). For more information, see [Batch configure sequential names or hostnames for multiple instances](~~196048~~).
public CreateLaunchTemplateVersionRequest.Builder instanceType(String instanceType)
public CreateLaunchTemplateVersionRequest.Builder internetChargeType(String internetChargeType)
* PayByBandwidth: pay-by-bandwidth * PayByTraffic: pay-by-traffic > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage.
public CreateLaunchTemplateVersionRequest.Builder internetMaxBandwidthIn(Integer internetMaxBandwidthIn)
* When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 1 to 10 and the default value is 10. * If the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter range from 1 to the `InternetMaxBandwidthOut` value and the default value is the `InternetMaxBandwidthOut` value.
public CreateLaunchTemplateVersionRequest.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public CreateLaunchTemplateVersionRequest.Builder ioOptimized(String ioOptimized)
* none: The instance is not I/O optimized. * optimized: creates an I/O optimized instance.
public CreateLaunchTemplateVersionRequest.Builder ipv6AddressCount(Integer ipv6AddressCount)
public CreateLaunchTemplateVersionRequest.Builder keyPairName(String keyPairName)
* For Windows instances, this parameter is ignored The `Password` parameter is valid even if the KeyPairName parameter is specified. * For Linux instances, the password-based logon method is disabled by default.
public CreateLaunchTemplateVersionRequest.Builder launchTemplateId(String launchTemplateId)
public CreateLaunchTemplateVersionRequest.Builder launchTemplateName(String launchTemplateName)
public CreateLaunchTemplateVersionRequest.Builder networkInterface(List<CreateLaunchTemplateVersionRequest.NetworkInterface> networkInterface)
public CreateLaunchTemplateVersionRequest.Builder networkType(String networkType)
* classic: classic network * vpc: VPC
public CreateLaunchTemplateVersionRequest.Builder ownerAccount(String ownerAccount)
public CreateLaunchTemplateVersionRequest.Builder ownerId(Long ownerId)
public CreateLaunchTemplateVersionRequest.Builder passwordInherit(Boolean passwordInherit)
* true * false Default value: false. > If you specify PasswordInherit, you must leave Password empty and make sure that a password is preconfigured for the image.
public CreateLaunchTemplateVersionRequest.Builder period(Integer period)
public CreateLaunchTemplateVersionRequest.Builder periodUnit(String periodUnit)
Month (default)
public CreateLaunchTemplateVersionRequest.Builder privateIpAddress(String privateIpAddress)
To assign a private IP address to an instance of the VPC type, make sure that the IP address is an idle IP address within the CIDR block of the vSwitch specified by the `VSwitchId` parameter.
public CreateLaunchTemplateVersionRequest.Builder ramRoleName(String ramRoleName)
public CreateLaunchTemplateVersionRequest.Builder regionId(String regionId)
public CreateLaunchTemplateVersionRequest.Builder resourceGroupId(String resourceGroupId)
public CreateLaunchTemplateVersionRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateLaunchTemplateVersionRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateLaunchTemplateVersionRequest.Builder securityEnhancementStrategy(String securityEnhancementStrategy)
* Active: Security hardening is enabled. This value is applicable only to public images. * Deactive: Security hardening is disabled. This value is available to all types of images.
public CreateLaunchTemplateVersionRequest.Builder securityGroupId(String securityGroupId)
> The `SecurityGroupId` parameter and the `SecurityGroupIds.N` parameter are mutually exclusive.
public CreateLaunchTemplateVersionRequest.Builder securityGroupIds(List<String> securityGroupIds)
> The `SecurityGroupId` parameter and the `SecurityGroupIds.N` parameter are mutually exclusive.
public CreateLaunchTemplateVersionRequest.Builder spotDuration(Integer spotDuration)
* 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance. * 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance. Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released. Preemptible instances are billed by second. We recommend that you specify a protection period based on your business requirements. > This parameter takes effect only if SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
public CreateLaunchTemplateVersionRequest.Builder spotPriceLimit(Float spotPriceLimit)
public CreateLaunchTemplateVersionRequest.Builder spotStrategy(String spotStrategy)
* NoSpot: The instance is created as a pay-as-you-go instance. * SpotWithPriceLimit: The instances of the compute node are preemptible instances. These types of instances have a specified 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.
public CreateLaunchTemplateVersionRequest.Builder tag(List<CreateLaunchTemplateVersionRequest.Tag> tag)
public CreateLaunchTemplateVersionRequest.Builder userData(String userData)
public CreateLaunchTemplateVersionRequest.Builder vSwitchId(String vSwitchId)
public CreateLaunchTemplateVersionRequest.Builder versionDescription(String versionDescription)
public CreateLaunchTemplateVersionRequest.Builder vpcId(String vpcId)
public CreateLaunchTemplateVersionRequest.Builder zoneId(String zoneId)
public CreateLaunchTemplateVersionRequest build()
Copyright © 2024. All rights reserved.