public final class Subscription extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Enterprise Apps Reseller API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
Subscription.Plan
Plan details of the subscription
|
static class |
Subscription.TransferInfo
Transfer related information for the subscription.
|
static class |
Subscription.TrialSettings
Trial Settings of the subscription.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
Long |
getCreationTime()
Creation time of this subscription in milliseconds since Unix epoch.
|
String |
getCustomerId()
The id of the customer to whom the subscription belongs.
|
String |
getKind()
Identifies the resource as a Subscription.
|
Subscription.Plan |
getPlan()
Plan details of the subscription
|
String |
getPurchaseOrderId()
Purchase order id for your order tracking purposes.
|
RenewalSettings |
getRenewalSettings()
Renewal settings of the subscription.
|
String |
getResourceUiUrl()
Ui url for subscription resource.
|
Seats |
getSeats()
Number/Limit of seats in the new plan.
|
String |
getSkuId()
Name of the sku for which this subscription is purchased.
|
String |
getStatus()
Status of the subscription.
|
String |
getSubscriptionId()
The id of the subscription.
|
Subscription.TransferInfo |
getTransferInfo()
Transfer related information for the subscription.
|
Subscription.TrialSettings |
getTrialSettings()
Trial Settings of the subscription.
|
Subscription |
set(String fieldName,
Object value) |
Subscription |
setCreationTime(Long creationTime)
Creation time of this subscription in milliseconds since Unix epoch.
|
Subscription |
setCustomerId(String customerId)
The id of the customer to whom the subscription belongs.
|
Subscription |
setKind(String kind)
Identifies the resource as a Subscription.
|
Subscription |
setPlan(Subscription.Plan plan)
Plan details of the subscription
|
Subscription |
setPurchaseOrderId(String purchaseOrderId)
Purchase order id for your order tracking purposes.
|
Subscription |
setRenewalSettings(RenewalSettings renewalSettings)
Renewal settings of the subscription.
|
Subscription |
setResourceUiUrl(String resourceUiUrl)
Ui url for subscription resource.
|
Subscription |
setSeats(Seats seats)
Number/Limit of seats in the new plan.
|
Subscription |
setSkuId(String skuId)
Name of the sku for which this subscription is purchased.
|
Subscription |
setStatus(String status)
Status of the subscription.
|
Subscription |
setSubscriptionId(String subscriptionId)
The id of the subscription.
|
Subscription |
setTransferInfo(Subscription.TransferInfo transferInfo)
Transfer related information for the subscription.
|
Subscription |
setTrialSettings(Subscription.TrialSettings trialSettings)
Trial Settings of the subscription.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Long getCreationTime()
null
for nonepublic Subscription setCreationTime(Long creationTime)
creationTime
- creationTime or null
for nonepublic String getCustomerId()
null
for nonepublic Subscription setCustomerId(String customerId)
customerId
- customerId or null
for nonepublic String getKind()
null
for nonepublic Subscription setKind(String kind)
kind
- kind or null
for nonepublic Subscription.Plan getPlan()
null
for nonepublic Subscription setPlan(Subscription.Plan plan)
plan
- plan or null
for nonepublic String getPurchaseOrderId()
null
for nonepublic Subscription setPurchaseOrderId(String purchaseOrderId)
purchaseOrderId
- purchaseOrderId or null
for nonepublic RenewalSettings getRenewalSettings()
null
for nonepublic Subscription setRenewalSettings(RenewalSettings renewalSettings)
renewalSettings
- renewalSettings or null
for nonepublic String getResourceUiUrl()
null
for nonepublic Subscription setResourceUiUrl(String resourceUiUrl)
resourceUiUrl
- resourceUiUrl or null
for nonepublic Seats getSeats()
null
for nonepublic Subscription setSeats(Seats seats)
seats
- seats or null
for nonepublic String getSkuId()
null
for nonepublic Subscription setSkuId(String skuId)
skuId
- skuId or null
for nonepublic String getStatus()
null
for nonepublic Subscription setStatus(String status)
status
- status or null
for nonepublic String getSubscriptionId()
null
for nonepublic Subscription setSubscriptionId(String subscriptionId)
subscriptionId
- subscriptionId or null
for nonepublic Subscription.TransferInfo getTransferInfo()
null
for nonepublic Subscription setTransferInfo(Subscription.TransferInfo transferInfo)
transferInfo
- transferInfo or null
for nonepublic Subscription.TrialSettings getTrialSettings()
null
for nonepublic Subscription setTrialSettings(Subscription.TrialSettings trialSettings)
trialSettings
- trialSettings or null
for nonepublic Subscription set(String fieldName, Object value)
set
in class GenericJson
public Subscription clone()
clone
in class GenericJson