public class Reseller.Subscriptions.ChangePlan extends ResellerRequest<Subscription>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
ChangePlan(java.lang.String customerId,
java.lang.String subscriptionId,
ChangePlanRequest content)
Update a subscription plan.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustomerId()
Either the customer's primary domain name or the customer's unique identifier.
|
java.lang.String |
getSubscriptionId()
This is a required property.
|
Reseller.Subscriptions.ChangePlan |
set(java.lang.String parameterName,
java.lang.Object value) |
Reseller.Subscriptions.ChangePlan |
setAlt(java.lang.String alt)
Data format for the response.
|
Reseller.Subscriptions.ChangePlan |
setCustomerId(java.lang.String customerId)
Either the customer's primary domain name or the customer's unique identifier.
|
Reseller.Subscriptions.ChangePlan |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Reseller.Subscriptions.ChangePlan |
setKey(java.lang.String key)
API key.
|
Reseller.Subscriptions.ChangePlan |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Reseller.Subscriptions.ChangePlan |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Reseller.Subscriptions.ChangePlan |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Reseller.Subscriptions.ChangePlan |
setSubscriptionId(java.lang.String subscriptionId)
This is a required property.
|
Reseller.Subscriptions.ChangePlan |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected ChangePlan(java.lang.String customerId,
java.lang.String subscriptionId,
ChangePlanRequest content)
AbstractGoogleClientRequest.execute() method to invoke the remote
operation. Reseller.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
customerId - Either the customer's primary domain name or the customer's unique identifier. If using the domain
name, we do not recommend using a customerId as a key for persistent data. If the domain
name for a customerId is changed, the Google system automatically updates.subscriptionId - This is a required property. The subscriptionId is the subscription identifier and is unique for
each customer. Since a subscriptionId changes when a subscription is updated, we recommend
to not use this ID as a key for persistent data. And the subscriptionId can be found using
the retrieve all reseller subscriptions method.content - the ChangePlanRequestpublic Reseller.Subscriptions.ChangePlan setAlt(java.lang.String alt)
ResellerRequestsetAlt in class ResellerRequest<Subscription>public Reseller.Subscriptions.ChangePlan setFields(java.lang.String fields)
ResellerRequestsetFields in class ResellerRequest<Subscription>public Reseller.Subscriptions.ChangePlan setKey(java.lang.String key)
ResellerRequestsetKey in class ResellerRequest<Subscription>public Reseller.Subscriptions.ChangePlan setOauthToken(java.lang.String oauthToken)
ResellerRequestsetOauthToken in class ResellerRequest<Subscription>public Reseller.Subscriptions.ChangePlan setPrettyPrint(java.lang.Boolean prettyPrint)
ResellerRequestsetPrettyPrint in class ResellerRequest<Subscription>public Reseller.Subscriptions.ChangePlan setQuotaUser(java.lang.String quotaUser)
ResellerRequestsetQuotaUser in class ResellerRequest<Subscription>public Reseller.Subscriptions.ChangePlan setUserIp(java.lang.String userIp)
ResellerRequestsetUserIp in class ResellerRequest<Subscription>public java.lang.String getCustomerId()
public Reseller.Subscriptions.ChangePlan setCustomerId(java.lang.String customerId)
public java.lang.String getSubscriptionId()
public Reseller.Subscriptions.ChangePlan setSubscriptionId(java.lang.String subscriptionId)
public Reseller.Subscriptions.ChangePlan set(java.lang.String parameterName, java.lang.Object value)
set in class ResellerRequest<Subscription>