public class ModifyLaunchConfigurationAttributesRequest extends AbstractModel
Constructor and Description |
---|
ModifyLaunchConfigurationAttributesRequest() |
ModifyLaunchConfigurationAttributesRequest(ModifyLaunchConfigurationAttributesRequest 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 Configuration information of instance data disks.
|
String[] |
getDisasterRecoverGroupIds()
Get Placement group ID.
|
String |
getDiskTypePolicy()
Get Selection policy of cloud disks.
|
EnhancedService |
getEnhancedService()
Get Specifies whether to enable additional services, such as security services and monitoring service.
|
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 Parameter setting for the prepaid mode (monthly subscription mode).
|
String |
getInstanceChargeType()
Get Instance billing mode.
|
InstanceMarketOptionsRequest |
getInstanceMarketOptions()
Get Market-related options for instances, such as parameters related to spot instances.
|
InstanceNameSettings |
getInstanceNameSettings()
Get Settings of CVM instance names.
|
String[] |
getInstanceTypes()
Get List of instance types.
|
String |
getInstanceTypesCheckPolicy()
Get Instance type verification policy which works when InstanceTypes is actually modified.
|
InternetAccessible |
getInternetAccessible()
Get Information of the public network bandwidth configuration.
|
IPv6InternetAccessible |
getIPv6InternetAccessible()
Get IPv6 public network bandwidth configuration.
|
String |
getLaunchConfigurationId()
Get Launch configuration ID
|
String |
getLaunchConfigurationName()
Get Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes.
|
String[] |
getSecurityGroupIds()
Get Security group to which the instance belongs.
|
SystemDisk |
getSystemDisk()
Get Instance system disk configurations
|
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 Configuration information of instance data disks.
|
void |
setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
Set Placement group ID.
|
void |
setDiskTypePolicy(String DiskTypePolicy)
Set Selection policy of cloud disks.
|
void |
setEnhancedService(EnhancedService EnhancedService)
Set Specifies whether to enable additional services, such as security services and monitoring service.
|
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 Parameter setting for the prepaid mode (monthly subscription mode).
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Instance billing mode.
|
void |
setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
Set Market-related options for instances, such as parameters related to spot instances.
|
void |
setInstanceNameSettings(InstanceNameSettings InstanceNameSettings)
Set Settings of CVM instance names.
|
void |
setInstanceTypes(String[] InstanceTypes)
Set List of instance types.
|
void |
setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy)
Set Instance type verification policy which works when InstanceTypes is actually modified.
|
void |
setInternetAccessible(InternetAccessible InternetAccessible)
Set Information of the public network bandwidth configuration.
|
void |
setIPv6InternetAccessible(IPv6InternetAccessible IPv6InternetAccessible)
Set IPv6 public network bandwidth configuration.
|
void |
setLaunchConfigurationId(String LaunchConfigurationId)
Set Launch configuration ID
|
void |
setLaunchConfigurationName(String LaunchConfigurationName)
Set Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security group to which the instance belongs.
|
void |
setSystemDisk(SystemDisk SystemDisk)
Set Instance system disk configurations
|
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 ModifyLaunchConfigurationAttributesRequest()
public ModifyLaunchConfigurationAttributesRequest(ModifyLaunchConfigurationAttributesRequest source)
public String getLaunchConfigurationId()
public void setLaunchConfigurationId(String LaunchConfigurationId)
LaunchConfigurationId
- Launch configuration IDpublic 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 String[] getInstanceTypes()
public void setInstanceTypes(String[] InstanceTypes)
InstanceTypes
- List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types.
The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. Specifying the `InstanceTypes` field will invalidate the original `InstanceType`.public String getInstanceTypesCheckPolicy()
public void setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy)
InstanceTypesCheckPolicy
- Instance type verification policy which works when InstanceTypes is actually modified. Value range: ALL, ANY. Default value: ANY.
public String getLaunchConfigurationName()
public void setLaunchConfigurationName(String LaunchConfigurationName)
LaunchConfigurationName
- Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes.public String getUserData()
public void setUserData(String UserData)
UserData
- Base64-encoded custom data of up to 16 KB. If you want to clear `UserData`, set it to an empty string.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API.
At least one security group is required for this parameter. The security group specified is sequential.public InternetAccessible getInternetAccessible()
public void setInternetAccessible(InternetAccessible InternetAccessible)
InternetAccessible
- Information of the public network bandwidth configuration.
When the public outbound network bandwidth is 0 Mbps, assigning a public IP is not allowed. Accordingly, if a public IP is assigned, the new public network outbound bandwidth must be greater than 0 Mbps.public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- Instance billing mode. Valid values:
public InstanceChargePrepaid getInstanceChargePrepaid()
public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
InstanceChargePrepaid
- Parameter setting for the prepaid mode (monthly subscription mode). This parameter can specify the renewal period, whether to set the auto-renewal, and other attributes of the monthly-subscribed instances.
This parameter is required when changing the instance billing mode to monthly subscription. It will be automatically discarded after you choose another billing mode.
This field requires passing in the `Period` field. Other fields that are not passed in will use their default values.
This field can be modified only when the current billing mode is monthly subscription.public InstanceMarketOptionsRequest getInstanceMarketOptions()
public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
InstanceMarketOptions
- Market-related options for instances, such as parameters related to spot instances.
This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after you choose another instance billing mode.
This field requires passing in the `MaxPrice` field under the `SpotOptions`. Other fields that are not passed in will use their default values.
This field can be modified only when the current billing mode is spot instance.public String getDiskTypePolicy()
public void setDiskTypePolicy(String DiskTypePolicy)
DiskTypePolicy
- Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
public SystemDisk getSystemDisk()
public void setSystemDisk(SystemDisk SystemDisk)
SystemDisk
- Instance system disk configurationspublic DataDisk[] getDataDisks()
public void setDataDisks(DataDisk[] DataDisks)
DataDisks
- Configuration information of instance data disks.
Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification.
The default data disk should be the same as the system disk.public HostNameSettings getHostNameSettings()
public void setHostNameSettings(HostNameSettings HostNameSettings)
HostNameSettings
- CVM hostname settings.
This field is not supported for Windows instances.
This field requires passing the `HostName` field. Other fields that are not passed in will use their default values.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.
This field requires passing in the `InstanceName` field. Other fields that are not passed in will use their default values.public EnhancedService getEnhancedService()
public void setEnhancedService(EnhancedService EnhancedService)
EnhancedService
- Specifies whether to enable additional services, such as security services and monitoring service.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 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.