public class CreateLaunchTemplateRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk |
static class |
CreateLaunchTemplateRequest.CreateLaunchTemplateRequestNetworkInterface |
static class |
CreateLaunchTemplateRequest.CreateLaunchTemplateRequestSystemDisk |
static class |
CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTag |
static class |
CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTemplateTag |
限定符和类型 | 字段和说明 |
---|---|
String |
autoReleaseTime
The automatic release time of the instance.
|
List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk> |
dataDisk
The data disks.
|
String |
deploymentSetId
The ID of the deployment set to which to deploy the instance.
|
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 of the instance.
|
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 |
launchTemplateName
The name of the launch template.
|
List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestNetworkInterface> |
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 duration 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 ID of the region in which to create the launch template.
|
String |
resourceGroupId
The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and elastic network interface (ENI).
|
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 IDs of the security groups to which to assign the instance.
|
Integer |
spotDuration
The protection period of the preemptible instance.
|
Float |
spotPriceLimit
The maximum hourly price of the instance.
|
String |
spotStrategy
The bidding policy for the pay-as-you-go instance.
|
CreateLaunchTemplateRequest.CreateLaunchTemplateRequestSystemDisk |
systemDisk |
List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTag> |
tag
The tags of the launch template.
|
String |
templateResourceGroupId
The ID of the resource group to which the launch template belongs.
|
List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTemplateTag> |
templateTag
The tags to add to the launch 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.
|
构造器和说明 |
---|
CreateLaunchTemplateRequest() |
@NameInMap(value="SystemDisk") public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestSystemDisk 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 release time must be at most three years from the current time.
@NameInMap(value="DataDisk") public List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk> dataDisk
The data disks.
@NameInMap(value="DeploymentSetId") public String deploymentSetId
The ID of the deployment set to which to deploy the instance.
@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.
> This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters.
@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. Valid values:
* system: public images provided by Alibaba Cloud
* self: custom images that you create.
* others: shared images from other Alibaba Cloud accounts.
* marketplace: [Alibaba Cloud Marketplace](https://market.aliyun.com/) images. If Alibaba Cloud Marketplace images are found, you can use these images without prior subscription. You must pay attention to the billing details of Alibaba Cloud Marketplace images.
@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 and 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 of the instance. For more information, see [Instance families](~~25378~~). Alternatively, you can 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="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<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestNetworkInterface> 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.
> If you set the PasswordInherit parameter to true, make sure that you leave the Password parameter empty and the selected image has a preset password.
@NameInMap(value="Period") public Integer period
The subscription duration 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 ID of the region in which to create 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, Elastic Block Storage (EBS) device, and elastic network interface (ENI).
@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 in the same security group can communicate with each other. A security group can contain up to 1,000 instances.
> You cannot specify both the `SecurityGroupId` and `SecurityGroupIds.N` parameters.
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The IDs of the security groups to which to assign the instance. The valid values of N are based on the maximum number of security groups to which the instance can belong. For more information, see the "Security group limits" section in [Limits](~~25412~~).
> You cannot specify both the `SecurityGroupId` and `SecurityGroupIds.N` parameters.
@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 instance. The value is accurate to three decimal places. This parameter is valid only when the `SpotStrategy` parameter is set to `SpotWithPriceLimit`.
@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<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTag> tag
The tags of the launch template.
@NameInMap(value="TemplateResourceGroupId") public String templateResourceGroupId
The ID of the resource group to which the launch template belongs.
@NameInMap(value="TemplateTag") public List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTemplateTag> templateTag
The tags to add to the launch 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 CreateLaunchTemplateRequest build(Map<String,?> map) throws Exception
Exception
public CreateLaunchTemplateRequest setSystemDisk(CreateLaunchTemplateRequest.CreateLaunchTemplateRequestSystemDisk systemDisk)
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestSystemDisk getSystemDisk()
public CreateLaunchTemplateRequest setAutoReleaseTime(String autoReleaseTime)
public String getAutoReleaseTime()
public CreateLaunchTemplateRequest setDataDisk(List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk> dataDisk)
public List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk> getDataDisk()
public CreateLaunchTemplateRequest setDeploymentSetId(String deploymentSetId)
public String getDeploymentSetId()
public CreateLaunchTemplateRequest setDescription(String description)
public String getDescription()
public CreateLaunchTemplateRequest setEnableVmOsConfig(Boolean enableVmOsConfig)
public Boolean getEnableVmOsConfig()
public CreateLaunchTemplateRequest setHostName(String hostName)
public String getHostName()
public CreateLaunchTemplateRequest setImageId(String imageId)
public String getImageId()
public CreateLaunchTemplateRequest setImageOwnerAlias(String imageOwnerAlias)
public String getImageOwnerAlias()
public CreateLaunchTemplateRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public CreateLaunchTemplateRequest setInstanceName(String instanceName)
public String getInstanceName()
public CreateLaunchTemplateRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateLaunchTemplateRequest setInternetChargeType(String internetChargeType)
public String getInternetChargeType()
public CreateLaunchTemplateRequest setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn)
public Integer getInternetMaxBandwidthIn()
public CreateLaunchTemplateRequest setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public Integer getInternetMaxBandwidthOut()
public CreateLaunchTemplateRequest setIoOptimized(String ioOptimized)
public String getIoOptimized()
public CreateLaunchTemplateRequest setIpv6AddressCount(Integer ipv6AddressCount)
public Integer getIpv6AddressCount()
public CreateLaunchTemplateRequest setKeyPairName(String keyPairName)
public String getKeyPairName()
public CreateLaunchTemplateRequest setLaunchTemplateName(String launchTemplateName)
public String getLaunchTemplateName()
public CreateLaunchTemplateRequest setNetworkInterface(List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestNetworkInterface> networkInterface)
public List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestNetworkInterface> getNetworkInterface()
public CreateLaunchTemplateRequest setNetworkType(String networkType)
public String getNetworkType()
public CreateLaunchTemplateRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateLaunchTemplateRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateLaunchTemplateRequest setPasswordInherit(Boolean passwordInherit)
public Boolean getPasswordInherit()
public CreateLaunchTemplateRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateLaunchTemplateRequest setPrivateIpAddress(String privateIpAddress)
public String getPrivateIpAddress()
public CreateLaunchTemplateRequest setRamRoleName(String ramRoleName)
public String getRamRoleName()
public CreateLaunchTemplateRequest setRegionId(String regionId)
public String getRegionId()
public CreateLaunchTemplateRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateLaunchTemplateRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateLaunchTemplateRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateLaunchTemplateRequest setSecurityEnhancementStrategy(String securityEnhancementStrategy)
public String getSecurityEnhancementStrategy()
public CreateLaunchTemplateRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public CreateLaunchTemplateRequest setSecurityGroupIds(List<String> securityGroupIds)
public CreateLaunchTemplateRequest setSpotDuration(Integer spotDuration)
public Integer getSpotDuration()
public CreateLaunchTemplateRequest setSpotPriceLimit(Float spotPriceLimit)
public Float getSpotPriceLimit()
public CreateLaunchTemplateRequest setSpotStrategy(String spotStrategy)
public String getSpotStrategy()
public CreateLaunchTemplateRequest setTag(List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTag> tag)
public List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTag> getTag()
public CreateLaunchTemplateRequest setTemplateResourceGroupId(String templateResourceGroupId)
public String getTemplateResourceGroupId()
public CreateLaunchTemplateRequest setTemplateTag(List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTemplateTag> templateTag)
public List<CreateLaunchTemplateRequest.CreateLaunchTemplateRequestTemplateTag> getTemplateTag()
public CreateLaunchTemplateRequest setUserData(String userData)
public String getUserData()
public CreateLaunchTemplateRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateLaunchTemplateRequest setVersionDescription(String versionDescription)
public String getVersionDescription()
public CreateLaunchTemplateRequest setVpcId(String vpcId)
public String getVpcId()
public CreateLaunchTemplateRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2023. All rights reserved.