public class CloneInstancesRequest extends AbstractModel
header, skipSign| Constructor and Description |
|---|
CloneInstancesRequest() |
CloneInstancesRequest(CloneInstancesRequest 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[] |
getAlarmPolicyList()
Get The alarm policy ID of the instance to be cloned.
|
Long |
getAutoRenew()
Get The auto-renewal flag.
|
String |
getBackupId()
Get Backup ID of the clone instance, which can be obtained through the [DescribeInstanceBackups](https://intl.cloud.tencent.com/document/product/239/20011?from_cn_redirect=1) API.
|
Long |
getBillingMode()
Get Billing mode.
|
String |
getCloneTime()
Get Time to restore data for cloning.
|
Long |
getGoodsNum()
Get The number of clone instances at a time
- The maximum number of monthly subscribed instances is 100 for each purchase.
|
String |
getInstanceId()
Get The ID of the source instance to be cloned, such as "crs-xjhsdj****".
|
String |
getInstanceName()
Get Name of the clone instance.
|
Boolean |
getNoAuth()
Get Whether the clone instance supports password-free access.
|
RedisNodeInfo[] |
getNodeSet()
Get Node information of an instance.
|
String |
getPassword()
Get The access password of the clone instance.
|
Long |
getPeriod()
Get Purchase duration of an instance.
|
Long |
getProjectId()
Get Project ID.
|
ResourceTag[] |
getResourceTags()
Get Tag to be bound for the clone instance
|
String[] |
getSecurityGroupIdList()
Get Security group ID, which can be obtained on the Security Group page in the console.
|
String |
getSubnetId()
Get The VPC subnet ID to which the clone instance belongs, which is not required for the classic network.
|
String |
getTemplateId()
Get The parameter template ID associated with the clone instance
- If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture.
|
String |
getVpcId()
Get The VPC ID of the clone instance.
|
Long |
getVPort()
Get Customized port.
|
Long |
getZoneId()
Get ID of the AZ where the clone instance resides.
|
void |
setAlarmPolicyList(String[] AlarmPolicyList)
Set The alarm policy ID of the instance to be cloned.
|
void |
setAutoRenew(Long AutoRenew)
Set The auto-renewal flag.
|
void |
setBackupId(String BackupId)
Set Backup ID of the clone instance, which can be obtained through the [DescribeInstanceBackups](https://intl.cloud.tencent.com/document/product/239/20011?from_cn_redirect=1) API.
|
void |
setBillingMode(Long BillingMode)
Set Billing mode.
|
void |
setCloneTime(String CloneTime)
Set Time to restore data for cloning.
|
void |
setGoodsNum(Long GoodsNum)
Set The number of clone instances at a time
- The maximum number of monthly subscribed instances is 100 for each purchase.
|
void |
setInstanceId(String InstanceId)
Set The ID of the source instance to be cloned, such as "crs-xjhsdj****".
|
void |
setInstanceName(String InstanceName)
Set Name of the clone instance.
|
void |
setNoAuth(Boolean NoAuth)
Set Whether the clone instance supports password-free access.
|
void |
setNodeSet(RedisNodeInfo[] NodeSet)
Set Node information of an instance.
|
void |
setPassword(String Password)
Set The access password of the clone instance.
|
void |
setPeriod(Long Period)
Set Purchase duration of an instance.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setResourceTags(ResourceTag[] ResourceTags)
Set Tag to be bound for the clone instance
|
void |
setSecurityGroupIdList(String[] SecurityGroupIdList)
Set Security group ID, which can be obtained on the Security Group page in the console.
|
void |
setSubnetId(String SubnetId)
Set The VPC subnet ID to which the clone instance belongs, which is not required for the classic network.
|
void |
setTemplateId(String TemplateId)
Set The parameter template ID associated with the clone instance
- If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture.
|
void |
setVpcId(String VpcId)
Set The VPC ID of the clone instance.
|
void |
setVPort(Long VPort)
Set Customized port.
|
void |
setZoneId(Long ZoneId)
Set ID of the AZ where the clone instance resides.
|
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, toJsonStringpublic CloneInstancesRequest()
public CloneInstancesRequest(CloneInstancesRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - The ID of the source instance to be cloned, such as "crs-xjhsdj****". Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum - The number of clone instances at a time
- The maximum number of monthly subscribed instances is 100 for each purchase.
- The maximum number of pay-as-you-go instances is 30 for each purchase.public Long getZoneId()
public void setZoneId(Long ZoneId)
ZoneId - ID of the AZ where the clone instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1).public Long getBillingMode()
public void setBillingMode(Long BillingMode)
BillingMode - Billing mode. Valid values: public Long getPeriod()
public void setPeriod(Long Period)
Period - Purchase duration of an instance. public String[] getSecurityGroupIdList()
public void setSecurityGroupIdList(String[] SecurityGroupIdList)
SecurityGroupIdList - Security group ID, which can be obtained on the Security Group page in the console.public String getBackupId()
public void setBackupId(String BackupId)
BackupId - Backup ID of the clone instance, which can be obtained through the [DescribeInstanceBackups](https://intl.cloud.tencent.com/document/product/239/20011?from_cn_redirect=1) API.public Boolean getNoAuth()
public void setNoAuth(Boolean NoAuth)
NoAuth - Whether the clone instance supports password-free access. Valid values: public String getVpcId()
public void setVpcId(String VpcId)
VpcId - The VPC ID of the clone instance. If this parameter is not passed in, the classic network will be selected by default.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId - The VPC subnet ID to which the clone instance belongs, which is not required for the classic network.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName - Name of the clone instance. public String getPassword()
public void setPassword(String Password)
Password - The access password of the clone instance. public Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew - The auto-renewal flag. Valid values public Long getVPort()
public void setVPort(Long VPort)
VPort - Customized port. Valid range: 1024-65535. Default value: `6379`.public RedisNodeInfo[] getNodeSet()
public void setNodeSet(RedisNodeInfo[] NodeSet)
NodeSet - Node information of an instance. public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), and find the project ID in Account Center > Project Management in the top-right corner.public ResourceTag[] getResourceTags()
public void setResourceTags(ResourceTag[] ResourceTags)
ResourceTags - Tag to be bound for the clone instancepublic String getTemplateId()
public void setTemplateId(String TemplateId)
TemplateId - The parameter template ID associated with the clone instance
- If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture.
- You can query the parameter template list of the instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API.public String[] getAlarmPolicyList()
public void setAlarmPolicyList(String[] AlarmPolicyList)
AlarmPolicyList - The alarm policy ID of the instance to be cloned. Log in to the [Tencent Cloud Observable Platform console](https://console.cloud.tencent.com/monitor/alarm2/policy), and get the policy ID in Alarm Management > Policy Management.public String getCloneTime()
public void setCloneTime(String CloneTime)
CloneTime - Time to restore data for cloning.
Only instances with second-level backup enabled are supported.Copyright © 2025. All rights reserved.