public class CreateCloudReadOnlyDBInstancesRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateCloudReadOnlyDBInstancesRequest() |
CreateCloudReadOnlyDBInstancesRequest(CreateCloudReadOnlyDBInstancesRequest 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 |
getAutoVoucher()
Get Whether to automatically use voucher.
|
String |
getCollation()
Get Collation of system character sets.
|
Long |
getCpu()
Get Number of instance cores
|
Long |
getGoodsNum()
Get Number of read-only instances to be purchased this time.
|
String |
getInstanceChargeType()
Get Billing mode.
|
String |
getInstanceId()
Get Instance ID in the format of `mssql-3l3fgqn7`.
|
String |
getMachineType()
Get The host type of purchased instance.
|
Long |
getMemory()
Get Instance memory size in GB
|
Long |
getPeriod()
Get The purchase period of an instance.
|
Long |
getReadOnlyGroupForcedUpgrade()
Get Valid values: `0` (not upgrade the primary instance by default), `1` (upgrade the primary instance to complete the RO deployment).
|
String |
getReadOnlyGroupId()
Get Existing read-only group ID, which is required when `ReadOnlyGroupType` is `3`.
|
Long |
getReadOnlyGroupIsOfflineDelay()
Get Whether delayed read-only instance removal is enabled in a new read-only group, which is required when `ReadOnlyGroupType` is `2`.
|
Long |
getReadOnlyGroupMaxDelayTime()
Get The delay threshold for a new read-only group, which is required when `ReadOnlyGroupType` is `2` and `ReadOnlyGroupIsOfflineDelay` is `1`.
|
Long |
getReadOnlyGroupMinInGroup()
Get Minimum number of reserved read-only replicas when the delayed removal is enabled for the new read-only group, which is required when `ReadOnlyGroupType` is `2` and `ReadOnlyGroupIsOfflineDelay` is `1`.
|
String |
getReadOnlyGroupName()
Get New read-only group ID, which is required when `ReadOnlyGroupType` is `2`.
|
Long |
getReadOnlyGroupType()
Get Read-only group types.
|
ResourceTag[] |
getResourceTags()
Get Tags associated with the instances to be created
|
String[] |
getSecurityGroupList()
Get Security group list, which contains security group IDs in the format of `sg-xxx`.
|
Long |
getStorage()
Get Instance disk size in GB
|
String |
getSubnetId()
Get VPC subnet ID in the format of `subnet-bdoe83fa`.
|
String |
getTimeZone()
Get System time zone.
|
String[] |
getVoucherIds()
Get Array of voucher IDs (currently, only one voucher can be used per order)
|
String |
getVpcId()
Get VPC ID in the format of `vpc-dsp338hz`.
|
String |
getZone()
Get Instance AZ, such as `ap-guangzhou-1` (Guangzhou Zone 1).
|
void |
setAutoVoucher(Long AutoVoucher)
Set Whether to automatically use voucher.
|
void |
setCollation(String Collation)
Set Collation of system character sets.
|
void |
setCpu(Long Cpu)
Set Number of instance cores
|
void |
setGoodsNum(Long GoodsNum)
Set Number of read-only instances to be purchased this time.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Billing mode.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of `mssql-3l3fgqn7`.
|
void |
setMachineType(String MachineType)
Set The host type of purchased instance.
|
void |
setMemory(Long Memory)
Set Instance memory size in GB
|
void |
setPeriod(Long Period)
Set The purchase period of an instance.
|
void |
setReadOnlyGroupForcedUpgrade(Long ReadOnlyGroupForcedUpgrade)
Set Valid values: `0` (not upgrade the primary instance by default), `1` (upgrade the primary instance to complete the RO deployment).
|
void |
setReadOnlyGroupId(String ReadOnlyGroupId)
Set Existing read-only group ID, which is required when `ReadOnlyGroupType` is `3`.
|
void |
setReadOnlyGroupIsOfflineDelay(Long ReadOnlyGroupIsOfflineDelay)
Set Whether delayed read-only instance removal is enabled in a new read-only group, which is required when `ReadOnlyGroupType` is `2`.
|
void |
setReadOnlyGroupMaxDelayTime(Long ReadOnlyGroupMaxDelayTime)
Set The delay threshold for a new read-only group, which is required when `ReadOnlyGroupType` is `2` and `ReadOnlyGroupIsOfflineDelay` is `1`.
|
void |
setReadOnlyGroupMinInGroup(Long ReadOnlyGroupMinInGroup)
Set Minimum number of reserved read-only replicas when the delayed removal is enabled for the new read-only group, which is required when `ReadOnlyGroupType` is `2` and `ReadOnlyGroupIsOfflineDelay` is `1`.
|
void |
setReadOnlyGroupName(String ReadOnlyGroupName)
Set New read-only group ID, which is required when `ReadOnlyGroupType` is `2`.
|
void |
setReadOnlyGroupType(Long ReadOnlyGroupType)
Set Read-only group types.
|
void |
setResourceTags(ResourceTag[] ResourceTags)
Set Tags associated with the instances to be created
|
void |
setSecurityGroupList(String[] SecurityGroupList)
Set Security group list, which contains security group IDs in the format of `sg-xxx`.
|
void |
setStorage(Long Storage)
Set Instance disk size in GB
|
void |
setSubnetId(String SubnetId)
Set VPC subnet ID in the format of `subnet-bdoe83fa`.
|
void |
setTimeZone(String TimeZone)
Set System time zone.
|
void |
setVoucherIds(String[] VoucherIds)
Set Array of voucher IDs (currently, only one voucher can be used per order)
|
void |
setVpcId(String VpcId)
Set VPC ID in the format of `vpc-dsp338hz`.
|
void |
setZone(String Zone)
Set Instance AZ, such as `ap-guangzhou-1` (Guangzhou Zone 1).
|
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 CreateCloudReadOnlyDBInstancesRequest()
public CreateCloudReadOnlyDBInstancesRequest(CreateCloudReadOnlyDBInstancesRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of `mssql-3l3fgqn7`.public String getZone()
public void setZone(String Zone)
Zone
- Instance AZ, such as `ap-guangzhou-1` (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the`DescribeZones` API.public Long getReadOnlyGroupType()
public void setReadOnlyGroupType(Long ReadOnlyGroupType)
ReadOnlyGroupType
- Read-only group types. Valid values: `1` (each read-only replica is placed in one auto-created read-only group), `2` (all read-only replicas are placed in one auto-created read-only group), `3` (all read-only replicas are placed in one existing read-only group).public Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size in GBpublic Long getStorage()
public void setStorage(Long Storage)
Storage
- Instance disk size in GBpublic Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Number of instance corespublic String getMachineType()
public void setMachineType(String MachineType)
MachineType
- The host type of purchased instance. Valid values: `CLOUD_HSSD` (virtual machine with enhanced SSD), `CLOUD_TSSD` (virtual machine with ulTra SSD), `CLOUD_BSSD` (virtual machine with balanced SSD).public Long getReadOnlyGroupForcedUpgrade()
public void setReadOnlyGroupForcedUpgrade(Long ReadOnlyGroupForcedUpgrade)
ReadOnlyGroupForcedUpgrade
- Valid values: `0` (not upgrade the primary instance by default), `1` (upgrade the primary instance to complete the RO deployment). You need to pass in `1` for this parameter and upgrade the primary instance to cluster edition.public String getReadOnlyGroupId()
public void setReadOnlyGroupId(String ReadOnlyGroupId)
ReadOnlyGroupId
- Existing read-only group ID, which is required when `ReadOnlyGroupType` is `3`.public String getReadOnlyGroupName()
public void setReadOnlyGroupName(String ReadOnlyGroupName)
ReadOnlyGroupName
- New read-only group ID, which is required when `ReadOnlyGroupType` is `2`.public Long getReadOnlyGroupIsOfflineDelay()
public void setReadOnlyGroupIsOfflineDelay(Long ReadOnlyGroupIsOfflineDelay)
ReadOnlyGroupIsOfflineDelay
- Whether delayed read-only instance removal is enabled in a new read-only group, which is required when `ReadOnlyGroupType` is `2`. Valid values: `1` (enabled), `0` (disabled). The read-only replica will be automatically removed when the delay between it and the primary instance exceeds the threshold.public Long getReadOnlyGroupMaxDelayTime()
public void setReadOnlyGroupMaxDelayTime(Long ReadOnlyGroupMaxDelayTime)
ReadOnlyGroupMaxDelayTime
- The delay threshold for a new read-only group, which is required when `ReadOnlyGroupType` is `2` and `ReadOnlyGroupIsOfflineDelay` is `1`.public Long getReadOnlyGroupMinInGroup()
public void setReadOnlyGroupMinInGroup(Long ReadOnlyGroupMinInGroup)
ReadOnlyGroupMinInGroup
- Minimum number of reserved read-only replicas when the delayed removal is enabled for the new read-only group, which is required when `ReadOnlyGroupType` is `2` and `ReadOnlyGroupIsOfflineDelay` is `1`.public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- Billing mode. Valid values: `PREPAID` (monthly subscription), `POSTPAID` (pay-as-you-go).public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of read-only instances to be purchased this time. Default value: `2`.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID in the format of `subnet-bdoe83fa`. Both `SubnetId` and `VpcId` need to be set or unset at the same time.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID in the format of `vpc-dsp338hz`. Both `SubnetId` and `VpcId` need to be set or unset at the same time.public Long getPeriod()
public void setPeriod(Long Period)
Period
- The purchase period of an instance. Default value: `1` (one month). Maximum value: `48`.public String[] getSecurityGroupList()
public void setSecurityGroupList(String[] SecurityGroupList)
SecurityGroupList
- Security group list, which contains security group IDs in the format of `sg-xxx`.public Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher
- Whether to automatically use voucher. Valid values: `0` (no, default), `1` (yes).public String[] getVoucherIds()
public void setVoucherIds(String[] VoucherIds)
VoucherIds
- Array of voucher IDs (currently, only one voucher can be used per order)public ResourceTag[] getResourceTags()
public void setResourceTags(ResourceTag[] ResourceTags)
ResourceTags
- Tags associated with the instances to be createdpublic String getCollation()
public void setCollation(String Collation)
Collation
- Collation of system character sets. Default value: Chinese_PRC_CI_ASpublic String getTimeZone()
public void setTimeZone(String TimeZone)
TimeZone
- System time zone. Default value: `China Standard Time`Copyright © 2024. All rights reserved.