public class CreateLaunchConfigurationRequest extends AbstractModel
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[] |
getDisasterRecoverGroupIds()
Get Placement group ID.
|
String |
getDiskTypePolicy()
Get Selection policy of cloud disks.
|
EnhancedService |
getEnhancedService()
Get Enhanced services.
|
HostNameSettings |
getHostNameSettings()
Get CVM hostname settings.
|
String |
getHpcClusterId()
Get HPC ID
Note: This field is default to empty |
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 List of instance models.
|
String |
getInstanceTypesCheckPolicy()
Get Instance type verification 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.
|
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 |
setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
Set Placement group ID.
|
void |
setDiskTypePolicy(String DiskTypePolicy)
Set Selection policy of cloud disks.
|
void |
setEnhancedService(EnhancedService EnhancedService)
Set Enhanced services.
|
void |
setHostNameSettings(HostNameSettings HostNameSettings)
Set CVM hostname settings.
|
void |
setHpcClusterId(String HpcClusterId)
Set HPC ID
Note: This field is default to empty |
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 List of instance models.
|
void |
setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy)
Set Instance type verification 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 |
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, 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. The default project is used if it’s left blank.
Note that this project ID is not the same as the project ID of the scaling group.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
- List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported.
`InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered.public String getCamRoleName()
public void setCamRoleName(String CamRoleName)
CamRoleName
- CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API.public String getInstanceTypesCheckPolicy()
public void setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy)
InstanceTypesCheckPolicy
- Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
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
- Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
public String getHpcClusterId()
public void setHpcClusterId(String HpcClusterId)
HpcClusterId
- HPC IDpublic 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.Copyright © 2023. All rights reserved.