public class CreateSubscribeRequest extends AbstractModel
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 auto-renew.
|
Long |
getCount()
Get Quantity.
|
Long |
getDuration()
Get Purchase duration in months, which is required if `PayType` is 0.
|
String |
getName()
Get A custom instance name.
|
Long |
getPayType()
Get Instance billing mode, which is always 1 (hourly billing),
|
String |
getProduct()
Get Subscribed database type.
|
TagItem[] |
getTags()
Get Instance resource tags
|
void |
setAutoRenew(Long AutoRenew)
Set Whether to auto-renew.
|
void |
setCount(Long Count)
Set Quantity.
|
void |
setDuration(Long Duration)
Set Purchase duration in months, which is required if `PayType` is 0.
|
void |
setName(String Name)
Set A custom instance name.
|
void |
setPayType(Long PayType)
Set Instance billing mode, which is always 1 (hourly billing),
|
void |
setProduct(String Product)
Set Subscribed 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateSubscribeRequest()
public CreateSubscribeRequest(CreateSubscribeRequest source)
public String getProduct()
public void setProduct(String Product)
Product
- Subscribed database type. Currently, MySQL is supportedpublic Long getPayType()
public void setPayType(Long PayType)
PayType
- Instance billing mode, which is always 1 (hourly billing),public Long getDuration()
public void setDuration(Long Duration)
Duration
- Purchase duration in months, which is required if `PayType` is 0. Maximum value: 120 (this field is not required of global site users and is better to be hidden)public Long getCount()
public void setCount(Long Count)
Count
- Quantity. Default value: 1. Maximum value: 10public Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew
- Whether to auto-renew. Default value: 0. This flag does not take effect for hourly billed instances (this field should be hidden from global site users)public TagItem[] getTags()
public void setTags(TagItem[] Tags)
Tags
- Instance resource tagspublic String getName()
public void setName(String Name)
Name
- A custom instance name.Copyright © 2023. All rights reserved.