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 seconds (`ss`) is not `00`, the time is automatically rounded to the nearest minute based on the value of minutes (`mm`). * The release time must be at least 30 minutes later than the current time. * The specified time must be at most three years from the current time.
public CreateLaunchTemplateVersionRequest.Builder dataDisk(List<CreateLaunchTemplateVersionRequest.DataDisk> dataDisk)
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 you have sufficient balance or credit in your account. Otherwise, an `InvalidPayMethod` error is returned. * PostPaid: pay-as-you-go.
public CreateLaunchTemplateVersionRequest.Builder instanceName(String instanceName)
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 bandwidths may be limited. 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. * When the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter are 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: creates a non-I/O optimized instance. * 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 takes effect 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: uses the preset password of the image. * false: does not use the preset password of the image. Default value: false. > If the PasswordInherit parameter is specified, you must leave the Password parameter empty and make sure that the selected image has a password preset.
public CreateLaunchTemplateVersionRequest.Builder period(Integer period)
public CreateLaunchTemplateVersionRequest.Builder privateIpAddress(String privateIpAddress)
To assign a private IP address to an instance that resides in a VPC, 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: enables security hardening. This value is applicable only to public images. * Deactive: does not enable security hardening. This value is applicable to all 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)
* The following protection 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. * A value of 0 indicates that no protection period is configured for the preemptible instance. Default value: 1.
public CreateLaunchTemplateVersionRequest.Builder spotPriceLimit(Float spotPriceLimit)
public CreateLaunchTemplateVersionRequest.Builder spotStrategy(String spotStrategy)
* NoSpot: The instance is a regular pay-as-you-go instance. * SpotWithPriceLimit: The instance is created as a preemptible instance with 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 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 © 2023. All rights reserved.