public class CreateReadOnlyDBInstanceRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateReadOnlyDBInstanceRequest() |
CreateReadOnlyDBInstanceRequest(CreateReadOnlyDBInstanceRequest 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 |
---|---|
Long |
getActivityId()
Get Special offer ID
|
Long |
getAutoRenewFlag()
Get Auto-renewal flag.
|
Long |
getAutoVoucher()
Get Whether to use vouchers automatically.
|
String |
getDBVersion()
Get (Disused) You don’t need to specify a version, as the kernel version is as the same as that of the instance.
|
String |
getInstanceChargeType()
Get Instance billing mode.
|
Long |
getInstanceCount()
Get The number of instances to be purchased at a time.
|
String |
getMasterDBInstanceId()
Get ID of the primary instance to which the read-only instance belongs
|
String |
getName()
Get Instance name (which will be supported in the future)
|
Long |
getNeedSupportIpv6()
Get Whether IPv6 is supported.
|
Long |
getPeriod()
Get Validity period in months, valid values:
Monthly subscription: `1`, `2`, `3`, 4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
|
Long |
getProjectId()
Get Project ID
|
String |
getReadOnlyGroupId()
Get RO group ID
|
String[] |
getSecurityGroupIds()
Get Security group of the instance, which can be obtained from the `sgld` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API.
|
String |
getSpecCode()
Get Purchasable code, which can be obtained from the `SpecCode` field in the return value of the [DescribeClasses](https://intl.cloud.tencent.com/document/api/409/89019?from_cn_redirect=1) API.
|
Long |
getStorage()
Get Instance storage capacity in GB
|
String |
getSubnetId()
Get VPC subnet ID in the format of `subnet-xxxxxxxx` which can be obtained in the console or from the `unSubnetId` field in the return value of the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.
|
Tag |
getTagList()
Get The information of tags to be bound with the instance, which is left empty by default.
|
String[] |
getVoucherIds()
Get Voucher ID list.
|
String |
getVpcId()
Get VPC ID in the format of `vpc-xxxxxxx`, which can be obtained in the console or from the `unVpcId` field in the return value of the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API.
|
String |
getZone()
Get Primary AZ of an instance, such as "ap-guangzhou-3".
|
void |
setActivityId(Long ActivityId)
Set Special offer ID
|
void |
setAutoRenewFlag(Long AutoRenewFlag)
Set Auto-renewal flag.
|
void |
setAutoVoucher(Long AutoVoucher)
Set Whether to use vouchers automatically.
|
void |
setDBVersion(String DBVersion)
Set (Disused) You don’t need to specify a version, as the kernel version is as the same as that of the instance.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Instance billing mode.
|
void |
setInstanceCount(Long InstanceCount)
Set The number of instances to be purchased at a time.
|
void |
setMasterDBInstanceId(String MasterDBInstanceId)
Set ID of the primary instance to which the read-only instance belongs
|
void |
setName(String Name)
Set Instance name (which will be supported in the future)
|
void |
setNeedSupportIpv6(Long NeedSupportIpv6)
Set Whether IPv6 is supported.
|
void |
setPeriod(Long Period)
Set Validity period in months, valid values:
Monthly subscription: `1`, `2`, `3`, 4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
|
void |
setProjectId(Long ProjectId)
Set Project ID
|
void |
setReadOnlyGroupId(String ReadOnlyGroupId)
Set RO group ID
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security group of the instance, which can be obtained from the `sgld` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API.
|
void |
setSpecCode(String SpecCode)
Set Purchasable code, which can be obtained from the `SpecCode` field in the return value of the [DescribeClasses](https://intl.cloud.tencent.com/document/api/409/89019?from_cn_redirect=1) API.
|
void |
setStorage(Long Storage)
Set Instance storage capacity in GB
|
void |
setSubnetId(String SubnetId)
Set VPC subnet ID in the format of `subnet-xxxxxxxx` which can be obtained in the console or from the `unSubnetId` field in the return value of the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.
|
void |
setTagList(Tag TagList)
Set The information of tags to be bound with the instance, which is left empty by default.
|
void |
setVoucherIds(String[] VoucherIds)
Set Voucher ID list.
|
void |
setVpcId(String VpcId)
Set VPC ID in the format of `vpc-xxxxxxx`, which can be obtained in the console or from the `unVpcId` field in the return value of the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API.
|
void |
setZone(String Zone)
Set Primary AZ of an instance, such as "ap-guangzhou-3".
|
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 CreateReadOnlyDBInstanceRequest()
public CreateReadOnlyDBInstanceRequest(CreateReadOnlyDBInstanceRequest source)
public String getZone()
public void setZone(String Zone)
Zone
- Primary AZ of an instance, such as "ap-guangzhou-3".
The information of AZ can be obtained from the `Zone` field in the return value of the [DescribeZones](https://intl.cloud.tencent.com/document/api/409/16769?from_cn_redirect=1) API.public String getMasterDBInstanceId()
public void setMasterDBInstanceId(String MasterDBInstanceId)
MasterDBInstanceId
- ID of the primary instance to which the read-only instance belongspublic String getSpecCode()
public void setSpecCode(String SpecCode)
SpecCode
- Purchasable code, which can be obtained from the `SpecCode` field in the return value of the [DescribeClasses](https://intl.cloud.tencent.com/document/api/409/89019?from_cn_redirect=1) API.public Long getStorage()
public void setStorage(Long Storage)
Storage
- Instance storage capacity in GBpublic Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount
- The number of instances to be purchased at a time. Value range: 1-10. To purchase more than 10 instances each time, you can make multiple calls.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Validity period in months, valid values:
public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID in the format of `vpc-xxxxxxx`, which can be obtained in the console or from the `unVpcId` field in the return value of the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID in the format of `subnet-xxxxxxxx` which can be obtained in the console or from the `unSubnetId` field in the return value of the [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- Instance billing mode. Valid values:
public Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher
- Whether to use vouchers automatically. Valid values:
public String[] getVoucherIds()
public void setVoucherIds(String[] VoucherIds)
VoucherIds
- Voucher ID list. Currently, you can specify only one voucher.public Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag
- Auto-renewal flag. Valid values:
public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project IDpublic Long getActivityId()
public void setActivityId(Long ActivityId)
ActivityId
- Special offer IDpublic String getReadOnlyGroupId()
public void setReadOnlyGroupId(String ReadOnlyGroupId)
ReadOnlyGroupId
- RO group IDpublic Tag getTagList()
public void setTagList(Tag TagList)
TagList
- The information of tags to be bound with the instance, which is left empty by default. This parameter can be obtained from the `Tags` field in the return value of the [DescribeTags](https://intl.cloud.tencent.com/document/api/651/35316?from_cn_redirect=1) API.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security group of the instance, which can be obtained from the `sgld` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. If this parameter is not specified, the default security group will be bound.public Long getNeedSupportIpv6()
public void setNeedSupportIpv6(Long NeedSupportIpv6)
NeedSupportIpv6
- Whether IPv6 is supported.
public String getName()
public void setName(String Name)
Name
- Instance name (which will be supported in the future)public String getDBVersion()
public void setDBVersion(String DBVersion)
DBVersion
- (Disused) You don’t need to specify a version, as the kernel version is as the same as that of the instance.Copyright © 2024. All rights reserved.