public class CreateInstancesRequest extends AbstractModel
Constructor and Description |
---|
CreateInstancesRequest() |
CreateInstancesRequest(CreateInstancesRequest 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 Campaign ID
|
String |
getAdminName()
Get Instance root account name
|
String |
getAdminPassword()
Get Instance root account password
|
Long |
getAutoRenewFlag()
Get Renewal flag.
|
Long |
getAutoVoucher()
Get Whether to automatically use vouchers.
|
String |
getCharset()
Get Instance character set.
|
String |
getDBEngine()
Get Database engine.
|
String |
getDBEngineConfig()
Get Configuration information of database engine in the following format:
{"$key1":"$value1", "$key2":"$value2"}
Valid values:
1.
|
String |
getDBKernelVersion()
Get PostgreSQL kernel version.
|
String |
getDBMajorVersion()
Get PostgreSQL major version.
|
DBNode[] |
getDBNodeSet()
Get Instance node information, which is required if you purchase a multi-AZ deployed instance.
|
String |
getDBVersion()
Get PostgreSQL version.
|
String |
getInstanceChargeType()
Get Instance billing mode.
|
Long |
getInstanceCount()
Get The number of instances purchased at a time.
|
String |
getKMSKeyId()
Get KeyId of custom key, which is required if you select custom key encryption.
|
String |
getKMSRegion()
Get The region where the KMS service is enabled.
|
String |
getName()
Get Instance name
|
Long |
getNeedSupportIpv6()
Get Whether to support IPv6 address access.
|
Long |
getNeedSupportTDE()
Get Whether to support transparent data encryption.
|
Long |
getPeriod()
Get Valid period in months of purchased instances.
|
Long |
getProjectId()
Get Project ID
|
String[] |
getSecurityGroupIds()
Get Security group IDs
|
String |
getSpecCode()
Get Purchasable specification ID, which can be obtained through the `SpecCode` field in the returned value of the `DescribeProductConfig` API.
|
Long |
getStorage()
Get Instance storage capacity in GB
|
String |
getSubnetId()
Get ID of a subnet in the VPC specified by `VpcId`
|
Tag[] |
getTagList()
Get The information of tags to be associated with instances.
|
String[] |
getVoucherIds()
Get Voucher ID list.
|
String |
getVpcId()
Get VPC ID
|
String |
getZone()
Get Availability zone ID, which can be obtained through the `Zone` field in the returned value of the `DescribeZones` API.
|
void |
setActivityId(Long ActivityId)
Set Campaign ID
|
void |
setAdminName(String AdminName)
Set Instance root account name
|
void |
setAdminPassword(String AdminPassword)
Set Instance root account password
|
void |
setAutoRenewFlag(Long AutoRenewFlag)
Set Renewal flag.
|
void |
setAutoVoucher(Long AutoVoucher)
Set Whether to automatically use vouchers.
|
void |
setCharset(String Charset)
Set Instance character set.
|
void |
setDBEngine(String DBEngine)
Set Database engine.
|
void |
setDBEngineConfig(String DBEngineConfig)
Set Configuration information of database engine in the following format:
{"$key1":"$value1", "$key2":"$value2"}
Valid values:
1.
|
void |
setDBKernelVersion(String DBKernelVersion)
Set PostgreSQL kernel version.
|
void |
setDBMajorVersion(String DBMajorVersion)
Set PostgreSQL major version.
|
void |
setDBNodeSet(DBNode[] DBNodeSet)
Set Instance node information, which is required if you purchase a multi-AZ deployed instance.
|
void |
setDBVersion(String DBVersion)
Set PostgreSQL version.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Instance billing mode.
|
void |
setInstanceCount(Long InstanceCount)
Set The number of instances purchased at a time.
|
void |
setKMSKeyId(String KMSKeyId)
Set KeyId of custom key, which is required if you select custom key encryption.
|
void |
setKMSRegion(String KMSRegion)
Set The region where the KMS service is enabled.
|
void |
setName(String Name)
Set Instance name
|
void |
setNeedSupportIpv6(Long NeedSupportIpv6)
Set Whether to support IPv6 address access.
|
void |
setNeedSupportTDE(Long NeedSupportTDE)
Set Whether to support transparent data encryption.
|
void |
setPeriod(Long Period)
Set Valid period in months of purchased instances.
|
void |
setProjectId(Long ProjectId)
Set Project ID
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security group IDs
|
void |
setSpecCode(String SpecCode)
Set Purchasable specification ID, which can be obtained through the `SpecCode` field in the returned value of the `DescribeProductConfig` API.
|
void |
setStorage(Long Storage)
Set Instance storage capacity in GB
|
void |
setSubnetId(String SubnetId)
Set ID of a subnet in the VPC specified by `VpcId`
|
void |
setTagList(Tag[] TagList)
Set The information of tags to be associated with instances.
|
void |
setVoucherIds(String[] VoucherIds)
Set Voucher ID list.
|
void |
setVpcId(String VpcId)
Set VPC ID
|
void |
setZone(String Zone)
Set Availability zone ID, which can be obtained through the `Zone` field in the returned value of the `DescribeZones` API.
|
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 CreateInstancesRequest()
public CreateInstancesRequest(CreateInstancesRequest source)
public String getSpecCode()
public void setSpecCode(String SpecCode)
SpecCode
- Purchasable specification ID, which can be obtained through the `SpecCode` field in the returned value of the `DescribeProductConfig` 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 purchased at a time. Value range: 1-10.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Valid period in months of purchased instances. Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. This parameter is set to `1` when the pay-as-you-go billing mode is used.public String getZone()
public void setZone(String Zone)
Zone
- Availability zone ID, which can be obtained through the `Zone` field in the returned value of the `DescribeZones` API.public String getCharset()
public void setCharset(String Charset)
Charset
- Instance character set. Valid values: `UTF8`, `LATIN1`.public String getAdminName()
public void setAdminName(String AdminName)
AdminName
- Instance root account namepublic String getAdminPassword()
public void setAdminPassword(String AdminPassword)
AdminPassword
- Instance root account passwordpublic Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project IDpublic String getDBVersion()
public void setDBVersion(String DBVersion)
DBVersion
- PostgreSQL version. If it is specified, an instance running the latest kernel of PostgreSQL `DBVersion` will be created. You must pass in at least one of the following parameters: DBVersion, DBMajorVersion, DBKernelVersion.public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- Instance billing mode. Valid values: `PREPAID` (monthly subscription), `POSTPAID_BY_HOUR` (pay-as-you-go).public Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher
- Whether to automatically use vouchers. Valid values: `1` (yes), `0` (no). Default value: `0`.public String[] getVoucherIds()
public void setVoucherIds(String[] VoucherIds)
VoucherIds
- Voucher ID list. Currently, you can specify only one voucher.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC IDpublic String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- ID of a subnet in the VPC specified by `VpcId`public Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag
- Renewal flag. Valid values: `0` (manual renewal), `1` (auto-renewal). Default value: `0`.public Long getActivityId()
public void setActivityId(Long ActivityId)
ActivityId
- Campaign IDpublic String getName()
public void setName(String Name)
Name
- Instance namepublic Long getNeedSupportIpv6()
public void setNeedSupportIpv6(Long NeedSupportIpv6)
NeedSupportIpv6
- Whether to support IPv6 address access. Valid values: `1` (yes), `0` (no). Default value: `0`public Tag[] getTagList()
public void setTagList(Tag[] TagList)
TagList
- The information of tags to be associated with instances. This parameter is left empty by default.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security group IDspublic String getDBMajorVersion()
public void setDBMajorVersion(String DBMajorVersion)
DBMajorVersion
- PostgreSQL major version. Valid values: `10`, `11`, `12`, `13`. If it is specified, an instance running the latest kernel of PostgreSQL `DBMajorVersion` will be created. You must pass in at least one of the following parameters: DBMajorVersion, DBVersion, DBKernelVersion.public String getDBKernelVersion()
public void setDBKernelVersion(String DBKernelVersion)
DBKernelVersion
- PostgreSQL kernel version. If it is specified, an instance running the latest kernel of PostgreSQL `DBKernelVersion` will be created. You must pass in one of the following parameters: DBKernelVersion, DBVersion, DBMajorVersion.public DBNode[] getDBNodeSet()
public void setDBNodeSet(DBNode[] DBNodeSet)
DBNodeSet
- Instance node information, which is required if you purchase a multi-AZ deployed instance.public Long getNeedSupportTDE()
public void setNeedSupportTDE(Long NeedSupportTDE)
NeedSupportTDE
- Whether to support transparent data encryption. Valid values: 1 (yes), 0 (no). Default value: 0.public String getKMSKeyId()
public void setKMSKeyId(String KMSKeyId)
KMSKeyId
- KeyId of custom key, which is required if you select custom key encryption. It is also the unique CMK identifier.public String getKMSRegion()
public void setKMSRegion(String KMSRegion)
KMSRegion
- The region where the KMS service is enabled. When `KMSRegion` is left empty, the KMS of the current region will be enabled by default. If the current region is not supported, you need to select another region supported by KMS.public String getDBEngine()
public void setDBEngine(String DBEngine)
DBEngine
- Database engine. Valid values:
1. `postgresql` (TencentDB for PostgreSQL)
2. `mssql_compatible`(MSSQL compatible-TencentDB for PostgreSQL)
Default value: `postgresql`public String getDBEngineConfig()
public void setDBEngineConfig(String DBEngineConfig)
DBEngineConfig
- Configuration information of database engine in the following format:
{"$key1":"$value1", "$key2":"$value2"}
Valid values:
1. mssql_compatible engine:
`migrationMode`: Database mode. Valid values: `single-db` (single-database mode), `multi-db` (multi-database mode). Default value: `single-db`.
`defaultLocale`: Default locale, which can’t be modified after the initialization. Default value: `en_US`. Valid values:
"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN".
`serverCollationName`: Name of collation rule, which can’t be modified after the initialization. Default value: `sql_latin1_general_cp1_ci_as`. Valid values:
"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as".Copyright © 2023. All rights reserved.