public class ResetInstanceRequest extends AbstractModel
Constructor and Description |
---|
ResetInstanceRequest() |
ResetInstanceRequest(ResetInstanceRequest 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 |
---|---|
EnhancedService |
getEnhancedService()
Get Enhanced services.
|
String |
getHostName()
Get Host name of the CVM, editable during the system reinstallation.
|
String |
getImageId()
Get Specified effective [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
String |
getInstanceId()
Get Instance ID.
|
LoginSettings |
getLoginSettings()
Get Login settings of the instance.
|
SystemDisk |
getSystemDisk()
Get Configurations of the system disk.
|
String |
getUserData()
Get User data provided to the instance.
|
void |
setEnhancedService(EnhancedService EnhancedService)
Set Enhanced services.
|
void |
setHostName(String HostName)
Set Host name of the CVM, editable during the system reinstallation.
|
void |
setImageId(String ImageId)
Set Specified effective [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setLoginSettings(LoginSettings LoginSettings)
Set Login settings of the instance.
|
void |
setSystemDisk(SystemDisk SystemDisk)
Set Configurations of the system disk.
|
void |
setUserData(String UserData)
Set User data provided to the instance.
|
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 ResetInstanceRequest()
public ResetInstanceRequest(ResetInstanceRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.public String getImageId()
public void setImageId(String ImageId)
ImageId
- Specified effective [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are four types of images:public SystemDisk getSystemDisk()
public void setSystemDisk(SystemDisk SystemDisk)
SystemDisk
- Configurations of the system disk. For an instance whose system disk is a cloud disk, this parameter can be used to expand the system disk by specifying a new capacity after reinstallation. The system disk capacity can only be expanded but not shrunk. Reinstalling the system can only resize rather than changing the type of the system disk.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 EnhancedService getEnhancedService()
public void setEnhancedService(EnhancedService EnhancedService)
EnhancedService
- Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Monitor and Cloud Security. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.public String getHostName()
public void setHostName(String HostName)
HostName
- Host name of the CVM, editable during the system reinstallation. public String getUserData()
public void setUserData(String UserData)
UserData
- User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB. For more information on how to get the value of this parameter, see the commands you need to execute on startup for [Windows](https://intl.cloud.tencent.com/document/product/213/17526) or [Linux](https://intl.cloud.tencent.com/document/product/213/17525).Copyright © 2023. All rights reserved.