public class CreateSubscribeRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateSubscribeRequest() |
CreateSubscribeRequest(CreateSubscribeRequest 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 |
getAutoRenew()
Get Whether to renew automatically.
|
Long |
getCount()
Get Quantity.
|
Long |
getDuration()
Get Purchase duration.
|
String |
getName()
Get Custom task name
|
Long |
getPayType()
Get Payment method.
|
String |
getProduct()
Get Subscription database type.
|
TagItem[] |
getTags()
Get Instance resource tags
|
void |
setAutoRenew(Long AutoRenew)
Set Whether to renew automatically.
|
void |
setCount(Long Count)
Set Quantity.
|
void |
setDuration(Long Duration)
Set Purchase duration.
|
void |
setName(String Name)
Set Custom task name
|
void |
setPayType(Long PayType)
Set Payment method.
|
void |
setProduct(String Product)
Set Subscription database type.
|
void |
setTags(TagItem[] Tags)
Set Instance resource tags
|
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 CreateSubscribeRequest()
public CreateSubscribeRequest(CreateSubscribeRequest source)
public String getProduct()
public void setProduct(String Product)
Product
- Subscription database type. Currently, cynosdbmysql, mariadb, mongodb, mysql, percona, tdpg, and tdsqlpercona are supported.public Long getPayType()
public void setPayType(Long PayType)
PayType
- Payment method. Valid values: 0 (monthly subscription); 1 (pay-as-you-go).public Long getDuration()
public void setDuration(Long Duration)
Duration
- Purchase duration. This field needs to be filled in when the payType is monthly subscription. The unit is month. Value range: 1-120. Default value: 1.public Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew
- Whether to renew automatically. This field needs to be filled in when the payType is monthly subscription. Valid values: 0 (auto-renewal disabled); 1 (auto-renewal enabled). Automatic renewal is not performed by default. This flag is invalid for pay-as-you-go.public Long getCount()
public void setCount(Long Count)
Count
- Quantity. Default value: 1. Maximum value: 10.public TagItem[] getTags()
public void setTags(TagItem[] Tags)
Tags
- Instance resource tagspublic String getName()
public void setName(String Name)
Name
- Custom task nameCopyright © 2024. All rights reserved.