public class CreateLaunchConfigurationRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateLaunchConfigurationRequest() |
CreateLaunchConfigurationRequest(CreateLaunchConfigurationRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getCamRoleName()
Get CAM role name.
|
DataDisk[] |
getDataDisks()
Get Information of the instance's data disk configuration.
|
String |
getDedicatedClusterId()
Get Local exclusive cluster ID.
|
String[] |
getDisasterRecoverGroupIds()
Get Placement group ID.
|
String |
getDiskTypePolicy()
Get Cloud disk type selection policy, whose default value is ORIGINAL.
|
EnhancedService |
getEnhancedService()
Get Enhanced services.
|
HostNameSettings |
getHostNameSettings()
Get CVM hostname settings.
|
String |
getHpcClusterId()
Get High-Performance computing cluster ID.
|
String |
getImageFamily()
Get Image family name.
|
String |
getImageId()
Get [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
InstanceChargePrepaid |
getInstanceChargePrepaid()
Get Details of the monthly subscription, including the purchase period, auto-renewal.
|
String |
getInstanceChargeType()
Get Instance billing mode.
|
InstanceMarketOptionsRequest |
getInstanceMarketOptions()
Get Market options of the instance, such as parameters related to spot instances.
|
InstanceNameSettings |
getInstanceNameSettings()
Get Settings of CVM instance names
If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format.
|
InstanceTag[] |
getInstanceTags()
Get List of tags.
|
String |
getInstanceType()
Get Instance model.
|
String[] |
getInstanceTypes()
Get Instance model list.
|
String |
getInstanceTypesCheckPolicy()
Get Instance type validation policy.
|
InternetAccessible |
getInternetAccessible()
Get Configuration of public network bandwidth.
|
IPv6InternetAccessible |
getIPv6InternetAccessible()
Get IPv6 public network bandwidth configuration.
|
String |
getLaunchConfigurationName()
Get Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots.
|
LoginSettings |
getLoginSettings()
Get Login settings of the instance.
|
Metadata |
getMetadata()
Get Custom metadata.
|
Long |
getProjectId()
Get Project ID of the launch configuration.
|
String[] |
getSecurityGroupIds()
Get The security group to which the instance belongs.
|
SystemDisk |
getSystemDisk()
Get System disk configuration of the instance.
|
Tag[] |
getTags()
Get List of tags.
|
String |
getUserData()
Get Base64-encoded custom data of up to 16 KB.
|
void |
setCamRoleName(String CamRoleName)
Set CAM role name.
|
void |
setDataDisks(DataDisk[] DataDisks)
Set Information of the instance's data disk configuration.
|
void |
setDedicatedClusterId(String DedicatedClusterId)
Set Local exclusive cluster ID.
|
void |
setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
Set Placement group ID.
|
void |
setDiskTypePolicy(String DiskTypePolicy)
Set Cloud disk type selection policy, whose default value is ORIGINAL.
|
void |
setEnhancedService(EnhancedService EnhancedService)
Set Enhanced services.
|
void |
setHostNameSettings(HostNameSettings HostNameSettings)
Set CVM hostname settings.
|
void |
setHpcClusterId(String HpcClusterId)
Set High-Performance computing cluster ID.
|
void |
setImageFamily(String ImageFamily)
Set Image family name.
|
void |
setImageId(String ImageId)
Set [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
void |
setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
Set Details of the monthly subscription, including the purchase period, auto-renewal.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Instance billing mode.
|
void |
setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
Set Market options of the instance, such as parameters related to spot instances.
|
void |
setInstanceNameSettings(InstanceNameSettings InstanceNameSettings)
Set Settings of CVM instance names
If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format.
|
void |
setInstanceTags(InstanceTag[] InstanceTags)
Set List of tags.
|
void |
setInstanceType(String InstanceType)
Set Instance model.
|
void |
setInstanceTypes(String[] InstanceTypes)
Set Instance model list.
|
void |
setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy)
Set Instance type validation policy.
|
void |
setInternetAccessible(InternetAccessible InternetAccessible)
Set Configuration of public network bandwidth.
|
void |
setIPv6InternetAccessible(IPv6InternetAccessible IPv6InternetAccessible)
Set IPv6 public network bandwidth configuration.
|
void |
setLaunchConfigurationName(String LaunchConfigurationName)
Set Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots.
|
void |
setLoginSettings(LoginSettings LoginSettings)
Set Login settings of the instance.
|
void |
setMetadata(Metadata Metadata)
Set Custom metadata.
|
void |
setProjectId(Long ProjectId)
Set Project ID of the launch configuration.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set The security group to which the instance belongs.
|
void |
setSystemDisk(SystemDisk SystemDisk)
Set System disk configuration of the instance.
|
void |
setTags(Tag[] Tags)
Set List of tags.
|
void |
setUserData(String UserData)
Set Base64-encoded custom data of up to 16 KB.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateLaunchConfigurationRequest()
public CreateLaunchConfigurationRequest(CreateLaunchConfigurationRequest source)
public String getLaunchConfigurationName()
public void setLaunchConfigurationName(String LaunchConfigurationName)
LaunchConfigurationName
- Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed..public String getImageId()
public void setImageId(String ImageId)
ImageId
- [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID of the launch configuration. default value is 0, indicating usage of the default project. obtain this parameter by calling the projectId field in the return value of [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1).
Note: the instance's project ID within the scaling group takes the project ID of the scaling group, which is irrelevant here.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1).
`InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered.public SystemDisk getSystemDisk()
public void setSystemDisk(SystemDisk SystemDisk)
SystemDisk
- System disk configuration of the instance. If this parameter is not specified, the default value will be used.public DataDisk[] getDataDisks()
public void setDataDisks(DataDisk[] DataDisks)
DataDisks
- Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported.public InternetAccessible getInternetAccessible()
public void setInternetAccessible(InternetAccessible InternetAccessible)
InternetAccessible
- Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default.public LoginSettings getLoginSettings()
public void setLoginSettings(LoginSettings LoginSettings)
LoginSettings
- Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default.public EnhancedService getEnhancedService()
public void setEnhancedService(EnhancedService EnhancedService)
EnhancedService
- Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.public String getUserData()
public void setUserData(String UserData)
UserData
- Base64-encoded custom data of up to 16 KB.public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
public InstanceMarketOptionsRequest getInstanceMarketOptions()
public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
InstanceMarketOptions
- Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances.public String[] getInstanceTypes()
public void setInstanceTypes(String[] InstanceTypes)
InstanceTypes
- Instance model list. different instance models specify different resource specifications. supports up to 10 instance models.
The `InstanceType` and `InstanceTypes` parameters are mutually exclusive. one and only one must be filled in. specific values can be obtained by calling the api [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) to obtain the latest specification table or refer to [instance specifications](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1).public String getCamRoleName()
public void setCamRoleName(String CamRoleName)
CamRoleName
- CAM role name. you can obtain it from the roleName in the return value from the API [DescribeRoleList](https://intl.cloud.tencent.com/document/product/598/36223?from_cn_redirect=1).public String getInstanceTypesCheckPolicy()
public void setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy)
InstanceTypesCheckPolicy
- Instance type validation policy. valid values include ALL and ANY. default value: ANY. this parameter is valid only when the InstanceTypes parameter contains multiple instance types.
public InstanceTag[] getInstanceTags()
public void setInstanceTags(InstanceTag[] InstanceTags)
InstanceTags
- List of tags. This parameter is used to bind up to 10 tags to newly added instances.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags.public HostNameSettings getHostNameSettings()
public void setHostNameSettings(HostNameSettings HostNameSettings)
HostNameSettings
- CVM hostname settings.public InstanceNameSettings getInstanceNameSettings()
public void setInstanceNameSettings(InstanceNameSettings InstanceNameSettings)
InstanceNameSettings
- Settings of CVM instance names
If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format.public InstanceChargePrepaid getInstanceChargePrepaid()
public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
InstanceChargePrepaid
- Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.public String getDiskTypePolicy()
public void setDiskTypePolicy(String DiskTypePolicy)
DiskTypePolicy
- Cloud disk type selection policy, whose default value is ORIGINAL. Valid values:
public String getHpcClusterId()
public void setHpcClusterId(String HpcClusterId)
HpcClusterId
- High-Performance computing cluster ID. you can obtain this parameter by calling the [DescribeHpcClusters](https://intl.cloud.tencent.com/document/product/213/83220?from_cn_redirect=1) api.
Note: this field is empty by default.public IPv6InternetAccessible getIPv6InternetAccessible()
public void setIPv6InternetAccessible(IPv6InternetAccessible IPv6InternetAccessible)
IPv6InternetAccessible
- IPv6 public network bandwidth configuration. If the IPv6 address is available in the new instance, public network bandwidth can be allocated to the IPv6 address. This parameter is invalid if `Ipv6AddressCount` of the scaling group associated with the launch configuration is 0.public String[] getDisasterRecoverGroupIds()
public void setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
DisasterRecoverGroupIds
- Placement group ID. Only one is allowed.public String getImageFamily()
public void setImageFamily(String ImageFamily)
ImageFamily
- Image family name. one and only one must be filled in between image Id and image family name. this parameter can be obtained by calling the [DescribeImages](https://intl.cloud.tencent.com/document/product/213/15715?from_cn_redirect=1) api.public String getDedicatedClusterId()
public void setDedicatedClusterId(String DedicatedClusterId)
DedicatedClusterId
- Local exclusive cluster ID. this parameter can be obtained through the [DescribeDedicatedClusters](https://intl.cloud.tencent.com/document/product/1346/73758?from_cn_redirect=1) api.public Metadata getMetadata()
public void setMetadata(Metadata Metadata)
Metadata
- Custom metadata.Copyright © 2025. All rights reserved.