public class CreateLaunchTemplateVersionRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
autoReleaseTime
The automatic release time of the instance.
|
List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> |
dataDisk
The data disks.
|
String |
deploymentSetId
The ID of the deployment set.
|
String |
description
The instance description.
|
Boolean |
enableVmOsConfig
Specifies whether to enable the operating system configuration of the instance.
|
String |
hostName
The instance hostname.
|
String |
imageId
The ID of the image to use to create the instance.
|
String |
imageOwnerAlias
The source of the image.
|
String |
instanceChargeType
The billing method of the instance.
|
String |
instanceName
The name of the instance.
|
String |
instanceType
The instance type.
|
String |
internetChargeType
The billing method for network usage.
|
Integer |
internetMaxBandwidthIn
The maximum inbound public bandwidth.
|
Integer |
internetMaxBandwidthOut
The maximum outbound public bandwidth.
|
String |
ioOptimized
Specifies whether to create an I/O optimized instance.
|
Integer |
ipv6AddressCount
The number of IPv6 addresses to randomly generate for the primary elastic network interface (ENI).
|
String |
keyPairName
The name of the key pair.
|
String |
launchTemplateId
The ID of the launch template.
|
String |
launchTemplateName
The name of the launch template.
|
List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> |
networkInterface
The information of the ENI.
|
String |
networkType
The network type of the instance.
|
String |
ownerAccount |
Long |
ownerId |
Boolean |
passwordInherit
Specifies whether to use the preset password of the image.
|
Integer |
period
The subscription period of the instance.
|
String |
privateIpAddress
The private IP address to assign to the instance.
|
String |
ramRoleName
The name of the instance Resource Access Management (RAM) role.
|
String |
regionId
The region ID of the launch template.
|
String |
resourceGroupId
The ID of the resource group to which to assign the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityEnhancementStrategy
Specifies whether to enable security hardening for the operating system.
|
String |
securityGroupId
The ID of the security group to which to assign the instance.
|
List<String> |
securityGroupIds
The ID of security group N to which to assign the instance.
|
Integer |
spotDuration
The protection period of the preemptible instance.
|
Float |
spotPriceLimit
The maximum hourly price of the preemptible instance.
|
String |
spotStrategy
The bidding policy for the pay-as-you-go instance.
|
CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk |
systemDisk |
List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> |
tag
The tags to add to the image template.
|
String |
userData
The user data of the instance.
|
String |
versionDescription
The description of the launch template version.
|
String |
vpcId
The ID of the virtual private cloud (VPC).
|
String |
vSwitchId
The ID of the vSwitch to which to connect the instance.
|
String |
zoneId
The ID of the zone in which to create the instance.
|
构造器和说明 |
---|
CreateLaunchTemplateVersionRequest() |
@NameInMap(value="SystemDisk") public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk systemDisk
@NameInMap(value="AutoReleaseTime") public String autoReleaseTime
The automatic release time of the instance. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
* 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.
@NameInMap(value="DataDisk") public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> dataDisk
The data disks.
@NameInMap(value="DeploymentSetId") public String deploymentSetId
The ID of the deployment set.
@NameInMap(value="Description") public String description
The instance description. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="EnableVmOsConfig") public Boolean enableVmOsConfig
Specifies whether to enable the operating system configuration of the instance.
@NameInMap(value="HostName") public String hostName
The instance 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 (-).
@NameInMap(value="ImageId") public String imageId
The ID of the image to use to create the instance. You can call the [DescribeImages](~~25534~~) operation to query available images.
@NameInMap(value="ImageOwnerAlias") public String imageOwnerAlias
The source of the image.
> This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the instance. Valid values:
* 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.
@NameInMap(value="InstanceName") public String instanceName
The name of the instance. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="InstanceType") public String instanceType
The instance type. For more information, see [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list.
@NameInMap(value="InternetChargeType") public String internetChargeType
The billing method for network usage. Valid values:
* 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.
@NameInMap(value="InternetMaxBandwidthIn") public Integer internetMaxBandwidthIn
The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
* 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.
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.
@NameInMap(value="IoOptimized") public String ioOptimized
Specifies whether to create an I/O optimized instance. Valid values:
* none: creates a non-I/O optimized instance.
* optimized: creates an I/O optimized instance.
@NameInMap(value="Ipv6AddressCount") public Integer ipv6AddressCount
The number of IPv6 addresses to randomly generate for the primary elastic network interface (ENI). Valid values: 1 to 10.
@NameInMap(value="KeyPairName") public String keyPairName
The name of the key pair. This parameter is empty by default.
* 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.
@NameInMap(value="LaunchTemplateId") public String launchTemplateId
The ID of the launch template. For more information, see [DescribeLaunchTemplates](~~73759~~). You must specify `LaunchTemplateId` or `LaunchTemplateName` to specify a launch template.
@NameInMap(value="LaunchTemplateName") public String launchTemplateName
The name of the launch template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="NetworkInterface") public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> networkInterface
The information of the ENI.
@NameInMap(value="NetworkType") public String networkType
The network type of the instance. Valid values:
* classic: classic network
* vpc: VPC
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PasswordInherit") public Boolean passwordInherit
Specifies whether to use the preset password of the image. Valid values:
* 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.
@NameInMap(value="Period") public Integer period
The subscription period of the instance. Unit: months. This parameter is valid and required only when `InstanceChargeType` is set to `PrePaid`. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
@NameInMap(value="PrivateIpAddress") public String privateIpAddress
The private IP address to assign to the instance.
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.
@NameInMap(value="RamRoleName") public String ramRoleName
The name of the instance Resource Access Management (RAM) role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created.
@NameInMap(value="RegionId") public String regionId
The region ID of the launch template. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the instance.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityEnhancementStrategy") public String securityEnhancementStrategy
Specifies whether to enable security hardening for the operating system. Valid values:
* 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.
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group to which to assign the instance. Instances within the same security group can access each other.
> The `SecurityGroupId` parameter and the `SecurityGroupIds.N` parameter are mutually exclusive.
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The ID of security group N to which to assign the instance. The valid values of N depend on the maximum number of security groups to which an instance can belong. For more information, see [Limits](~~25412~~).
> The `SecurityGroupId` parameter and the `SecurityGroupIds.N` parameter are mutually exclusive.
@NameInMap(value="SpotDuration") public Integer spotDuration
The protection period of the preemptible instance. Unit: hours. Valid values: 0, 1, 2, 3, 4, 5, and 6.
* 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.
@NameInMap(value="SpotPriceLimit") public Float spotPriceLimit
The maximum hourly price of the preemptible instance. A maximum of three decimal places are allowed.
@NameInMap(value="SpotStrategy") public String spotStrategy
The bidding policy for the pay-as-you-go instance. This parameter is valid only when the `InstanceChargeType` parameter is set to `PostPaid`. Valid values:
* 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.
@NameInMap(value="Tag") public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> tag
The tags to add to the image template.
@NameInMap(value="UserData") public String userData
The user data of the instance. The user data must be encoded in Base64. The maximum size of raw data is 16 KB.
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch to which to connect the instance. This parameter is required if you specify the VpcId parameter.
@NameInMap(value="VersionDescription") public String versionDescription
The description of the launch template version. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="VpcId") public String vpcId
The ID of the virtual private cloud (VPC).
@NameInMap(value="ZoneId") public String zoneId
The ID of the zone in which to create the instance.
public static CreateLaunchTemplateVersionRequest build(Map<String,?> map) throws Exception
Exception
public CreateLaunchTemplateVersionRequest setSystemDisk(CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk systemDisk)
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk getSystemDisk()
public CreateLaunchTemplateVersionRequest setAutoReleaseTime(String autoReleaseTime)
public String getAutoReleaseTime()
public CreateLaunchTemplateVersionRequest setDataDisk(List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> dataDisk)
public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> getDataDisk()
public CreateLaunchTemplateVersionRequest setDeploymentSetId(String deploymentSetId)
public String getDeploymentSetId()
public CreateLaunchTemplateVersionRequest setDescription(String description)
public String getDescription()
public CreateLaunchTemplateVersionRequest setEnableVmOsConfig(Boolean enableVmOsConfig)
public Boolean getEnableVmOsConfig()
public CreateLaunchTemplateVersionRequest setHostName(String hostName)
public String getHostName()
public CreateLaunchTemplateVersionRequest setImageId(String imageId)
public String getImageId()
public CreateLaunchTemplateVersionRequest setImageOwnerAlias(String imageOwnerAlias)
public String getImageOwnerAlias()
public CreateLaunchTemplateVersionRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public CreateLaunchTemplateVersionRequest setInstanceName(String instanceName)
public String getInstanceName()
public CreateLaunchTemplateVersionRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateLaunchTemplateVersionRequest setInternetChargeType(String internetChargeType)
public String getInternetChargeType()
public CreateLaunchTemplateVersionRequest setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn)
public Integer getInternetMaxBandwidthIn()
public CreateLaunchTemplateVersionRequest setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public Integer getInternetMaxBandwidthOut()
public CreateLaunchTemplateVersionRequest setIoOptimized(String ioOptimized)
public String getIoOptimized()
public CreateLaunchTemplateVersionRequest setIpv6AddressCount(Integer ipv6AddressCount)
public Integer getIpv6AddressCount()
public CreateLaunchTemplateVersionRequest setKeyPairName(String keyPairName)
public String getKeyPairName()
public CreateLaunchTemplateVersionRequest setLaunchTemplateId(String launchTemplateId)
public String getLaunchTemplateId()
public CreateLaunchTemplateVersionRequest setLaunchTemplateName(String launchTemplateName)
public String getLaunchTemplateName()
public CreateLaunchTemplateVersionRequest setNetworkInterface(List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> networkInterface)
public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> getNetworkInterface()
public CreateLaunchTemplateVersionRequest setNetworkType(String networkType)
public String getNetworkType()
public CreateLaunchTemplateVersionRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateLaunchTemplateVersionRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateLaunchTemplateVersionRequest setPasswordInherit(Boolean passwordInherit)
public Boolean getPasswordInherit()
public CreateLaunchTemplateVersionRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateLaunchTemplateVersionRequest setPrivateIpAddress(String privateIpAddress)
public String getPrivateIpAddress()
public CreateLaunchTemplateVersionRequest setRamRoleName(String ramRoleName)
public String getRamRoleName()
public CreateLaunchTemplateVersionRequest setRegionId(String regionId)
public String getRegionId()
public CreateLaunchTemplateVersionRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateLaunchTemplateVersionRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateLaunchTemplateVersionRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateLaunchTemplateVersionRequest setSecurityEnhancementStrategy(String securityEnhancementStrategy)
public String getSecurityEnhancementStrategy()
public CreateLaunchTemplateVersionRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public CreateLaunchTemplateVersionRequest setSecurityGroupIds(List<String> securityGroupIds)
public CreateLaunchTemplateVersionRequest setSpotDuration(Integer spotDuration)
public Integer getSpotDuration()
public CreateLaunchTemplateVersionRequest setSpotPriceLimit(Float spotPriceLimit)
public Float getSpotPriceLimit()
public CreateLaunchTemplateVersionRequest setSpotStrategy(String spotStrategy)
public String getSpotStrategy()
public CreateLaunchTemplateVersionRequest setTag(List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> tag)
public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> getTag()
public CreateLaunchTemplateVersionRequest setUserData(String userData)
public String getUserData()
public CreateLaunchTemplateVersionRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateLaunchTemplateVersionRequest setVersionDescription(String versionDescription)
public String getVersionDescription()
public CreateLaunchTemplateVersionRequest setVpcId(String vpcId)
public String getVpcId()
public CreateLaunchTemplateVersionRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2023. All rights reserved.