public class RenewDBInstanceRequest extends AbstractModel
Constructor and Description |
---|
RenewDBInstanceRequest() |
RenewDBInstanceRequest(RenewDBInstanceRequest 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 |
getInstanceId()
Get ID of the instance to be renewed in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed in the TencentDB console.
|
String |
getModifyPayType()
Get To renew a pay-as-you-go instance to a monthly subscribed one, you need to set this parameter to `PREPAID`.
|
Long |
getTimeSpan()
Get Renewal period in months.
|
void |
setInstanceId(String InstanceId)
Set ID of the instance to be renewed in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed in the TencentDB console.
|
void |
setModifyPayType(String ModifyPayType)
Set To renew a pay-as-you-go instance to a monthly subscribed one, you need to set this parameter to `PREPAID`.
|
void |
setTimeSpan(Long TimeSpan)
Set Renewal period in months.
|
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 RenewDBInstanceRequest()
public RenewDBInstanceRequest(RenewDBInstanceRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the instance to be renewed in the format of cdb-c1nl9rpv, which is the same as the instance ID displayed in the TencentDB console. You can use the [DescribeDBInstances](https://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) API to query the ID.public Long getTimeSpan()
public void setTimeSpan(Long TimeSpan)
TimeSpan
- Renewal period in months. Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.public String getModifyPayType()
public void setModifyPayType(String ModifyPayType)
ModifyPayType
- To renew a pay-as-you-go instance to a monthly subscribed one, you need to set this parameter to `PREPAID`.Copyright © 2023. All rights reserved.