public class CreateCloneInstanceRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateCloneInstanceRequest() |
CreateCloneInstanceRequest(CreateCloneInstanceRequest 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 |
getBackupZone()
Get Availability zone information of replica 2 of the cloned instance,
which is left empty by default.
|
String |
getCageId()
Get Financial cage ID.
|
Long |
getCpu()
Get The number of CPU cores of the cloned instance.
|
String |
getDeployGroupId()
Get Placement group ID.
|
Long |
getDeployMode()
Get Multi-AZ or single-AZ.
|
String |
getDeviceType()
Get Resource isolation type of the clone.
|
Boolean |
getDryRun()
Get Whether to check the request without creating any instance.
|
String |
getInstanceId()
Get ID of the instance to be cloned from
|
String |
getInstanceName()
Get Name of the cloned instance
|
Long |
getInstanceNodes()
Get The number of nodes of the clone.
|
Long |
getMemory()
Get Memory of the cloned instance in MB, which should be equal to (by default) or larger than that of the original instance
|
Long |
getProjectId()
Get Project ID.
|
Long |
getProtectMode()
Get Data replication mode.
|
TagInfo[] |
getResourceTags()
Get Information of the cloned instance tag
|
String[] |
getSecurityGroup()
Get Security group parameter, which can be obtained by the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API
|
String |
getSlaveZone()
Get Availability zone information of replica 1 of the cloned instance, which is the same as the value of `Zone` of the original instance by default
|
Long |
getSpecifiedBackupId()
Get To roll back the cloned instance to a specific physical backup file, set this parameter to the ID of the physical backup file.
|
String |
getSpecifiedRollbackTime()
Get To roll back the cloned instance to a specific point in time, set this parameter to a value in the format of "yyyy-mm-dd hh:mm:ss".
|
String |
getUniqSubnetId()
Get VPC subnet ID, which can be obtained by the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.
|
String |
getUniqVpcId()
Get VPC ID, which can be obtained by the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API.
|
Long |
getVolume()
Get Disk capacity of the cloned instance in GB, which should be equal to (by default) or larger than that of the original instance
|
void |
setBackupZone(String BackupZone)
Set Availability zone information of replica 2 of the cloned instance,
which is left empty by default.
|
void |
setCageId(String CageId)
Set Financial cage ID.
|
void |
setCpu(Long Cpu)
Set The number of CPU cores of the cloned instance.
|
void |
setDeployGroupId(String DeployGroupId)
Set Placement group ID.
|
void |
setDeployMode(Long DeployMode)
Set Multi-AZ or single-AZ.
|
void |
setDeviceType(String DeviceType)
Set Resource isolation type of the clone.
|
void |
setDryRun(Boolean DryRun)
Set Whether to check the request without creating any instance.
|
void |
setInstanceId(String InstanceId)
Set ID of the instance to be cloned from
|
void |
setInstanceName(String InstanceName)
Set Name of the cloned instance
|
void |
setInstanceNodes(Long InstanceNodes)
Set The number of nodes of the clone.
|
void |
setMemory(Long Memory)
Set Memory of the cloned instance in MB, which should be equal to (by default) or larger than that of the original instance
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setProtectMode(Long ProtectMode)
Set Data replication mode.
|
void |
setResourceTags(TagInfo[] ResourceTags)
Set Information of the cloned instance tag
|
void |
setSecurityGroup(String[] SecurityGroup)
Set Security group parameter, which can be obtained by the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) API
|
void |
setSlaveZone(String SlaveZone)
Set Availability zone information of replica 1 of the cloned instance, which is the same as the value of `Zone` of the original instance by default
|
void |
setSpecifiedBackupId(Long SpecifiedBackupId)
Set To roll back the cloned instance to a specific physical backup file, set this parameter to the ID of the physical backup file.
|
void |
setSpecifiedRollbackTime(String SpecifiedRollbackTime)
Set To roll back the cloned instance to a specific point in time, set this parameter to a value in the format of "yyyy-mm-dd hh:mm:ss".
|
void |
setUniqSubnetId(String UniqSubnetId)
Set VPC subnet ID, which can be obtained by the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.
|
void |
setUniqVpcId(String UniqVpcId)
Set VPC ID, which can be obtained by the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API.
|
void |
setVolume(Long Volume)
Set Disk capacity of the cloned instance in GB, which should be equal to (by default) or larger than that of the original instance
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateCloneInstanceRequest()
public CreateCloneInstanceRequest(CreateCloneInstanceRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the instance to be cloned frompublic String getSpecifiedRollbackTime()
public void setSpecifiedRollbackTime(String SpecifiedRollbackTime)
SpecifiedRollbackTime
- To roll back the cloned instance to a specific point in time, set this parameter to a value in the format of "yyyy-mm-dd hh:mm:ss".public Long getSpecifiedBackupId()
public void setSpecifiedBackupId(Long SpecifiedBackupId)
SpecifiedBackupId
- To roll back the cloned instance to a specific physical backup file, set this parameter to the ID of the physical backup file. The ID can be obtained by the [DescribeBackups](https://intl.cloud.tencent.com/document/api/236/15842?from_cn_redirect=1) API.public String getUniqVpcId()
public void setUniqVpcId(String UniqVpcId)
UniqVpcId
- VPC ID, which can be obtained by the [DescribeVpcs](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) API. If this parameter is left empty, the classic network will be used by default.public String getUniqSubnetId()
public void setUniqSubnetId(String UniqSubnetId)
UniqSubnetId
- VPC subnet ID, which can be obtained by the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API. If `UniqVpcId` is set, `UniqSubnetId` will be required.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory of the cloned instance in MB, which should be equal to (by default) or larger than that of the original instancepublic Long getVolume()
public void setVolume(Long Volume)
Volume
- Disk capacity of the cloned instance in GB, which should be equal to (by default) or larger than that of the original instancepublic String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Name of the cloned instancepublic String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- Security group parameter, which can be obtained by the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) APIpublic TagInfo[] getResourceTags()
public void setResourceTags(TagInfo[] ResourceTags)
ResourceTags
- Information of the cloned instance tagpublic Long getCpu()
public void setCpu(Long Cpu)
Cpu
- The number of CPU cores of the cloned instance. It should be equal to (by default) or larger than that of the original instance.public Long getProtectMode()
public void setProtectMode(Long ProtectMode)
ProtectMode
- Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0.public Long getDeployMode()
public void setDeployMode(Long DeployMode)
DeployMode
- Multi-AZ or single-AZ. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0.public String getSlaveZone()
public void setSlaveZone(String SlaveZone)
SlaveZone
- Availability zone information of replica 1 of the cloned instance, which is the same as the value of `Zone` of the original instance by defaultpublic String getBackupZone()
public void setBackupZone(String BackupZone)
BackupZone
- Availability zone information of replica 2 of the cloned instance,
which is left empty by default. Specify this parameter when cloning a strong sync source instance.public String getDeviceType()
public void setDeviceType(String DeviceType)
DeviceType
- Resource isolation type of the clone. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance). Default value: `UNIVERSAL`.public Long getInstanceNodes()
public void setInstanceNodes(Long InstanceNodes)
InstanceNodes
- The number of nodes of the clone. If this parameter is set to `3` or the `BackupZone` parameter is specified, the clone will have three nodes. If this parameter is set to `2` or left empty, the clone will have two nodes.public String getDeployGroupId()
public void setDeployGroupId(String DeployGroupId)
DeployGroupId
- Placement group ID.public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- Whether to check the request without creating any instance. Valid values: `true`, `false` (default). After being submitted, the request will be checked to see if it is in correct format and has all required parameters with valid values. An error code is returned if the check failed, and `RequestId` is returned if the check succeeded. After a successful check, no instance will be created if this parameter is set to `true`, whereas an instance will be created and if it is set to `false`.public String getCageId()
public void setCageId(String CageId)
CageId
- Financial cage ID.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. Default value: 0.Copyright © 2024. All rights reserved.