public class Storage.Objects.Rewrite extends StorageRequest<RewriteResponse>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Storage.Objects.Rewrite(java.lang.String sourceBucket,
java.lang.String sourceObject,
java.lang.String destinationBucket,
java.lang.String destinationObject,
StorageObject content)
Rewrites a source object to a destination object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDestinationBucket()
Name of the bucket in which to store the new object.
|
java.lang.String |
getDestinationObject()
Name of the new object.
|
java.lang.String |
getDestinationPredefinedAcl()
Apply a predefined set of access controls to the destination object.
|
java.lang.Long |
getIfGenerationMatch()
Makes the operation conditional on whether the destination object's current generation matches the
given value.
|
java.lang.Long |
getIfGenerationNotMatch()
Makes the operation conditional on whether the destination object's current generation does not
match the given value.
|
java.lang.Long |
getIfMetagenerationMatch()
Makes the operation conditional on whether the destination object's current metageneration matches
the given value.
|
java.lang.Long |
getIfMetagenerationNotMatch()
Makes the operation conditional on whether the destination object's current metageneration does not
match the given value.
|
java.lang.Long |
getIfSourceGenerationMatch()
Makes the operation conditional on whether the source object's generation matches the given value.
|
java.lang.Long |
getIfSourceGenerationNotMatch()
Makes the operation conditional on whether the source object's generation does not match the given
value.
|
java.lang.Long |
getIfSourceMetagenerationMatch()
Makes the operation conditional on whether the source object's current metageneration matches the
given value.
|
java.lang.Long |
getIfSourceMetagenerationNotMatch()
Makes the operation conditional on whether the source object's current metageneration does not
match the given value.
|
java.lang.Long |
getMaxBytesRewrittenPerCall()
The maximum number of bytes that will be rewritten per rewrite request.
|
java.lang.String |
getProjection()
Set of properties to return.
|
java.lang.String |
getRewriteToken()
Include this field (from the previous rewrite response) on each rewrite request after the first
one, until the rewrite response 'done' flag is true.
|
java.lang.String |
getSourceBucket()
Name of the bucket in which to find the source object.
|
java.lang.Long |
getSourceGeneration()
If present, selects a specific revision of the source object (as opposed to the latest version, the
default).
|
java.lang.String |
getSourceObject()
Name of the source object.
|
Storage.Objects.Rewrite |
set(java.lang.String parameterName,
java.lang.Object value) |
Storage.Objects.Rewrite |
setAlt(java.lang.String alt)
Data format for the response.
|
Storage.Objects.Rewrite |
setDestinationBucket(java.lang.String destinationBucket)
Name of the bucket in which to store the new object.
|
Storage.Objects.Rewrite |
setDestinationObject(java.lang.String destinationObject)
Name of the new object.
|
Storage.Objects.Rewrite |
setDestinationPredefinedAcl(java.lang.String destinationPredefinedAcl)
Apply a predefined set of access controls to the destination object.
|
Storage.Objects.Rewrite |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Storage.Objects.Rewrite |
setIfGenerationMatch(java.lang.Long ifGenerationMatch)
Makes the operation conditional on whether the destination object's current generation
matches the given value.
|
Storage.Objects.Rewrite |
setIfGenerationNotMatch(java.lang.Long ifGenerationNotMatch)
Makes the operation conditional on whether the destination object's current generation does
not match the given value.
|
Storage.Objects.Rewrite |
setIfMetagenerationMatch(java.lang.Long ifMetagenerationMatch)
Makes the operation conditional on whether the destination object's current metageneration
matches the given value.
|
Storage.Objects.Rewrite |
setIfMetagenerationNotMatch(java.lang.Long ifMetagenerationNotMatch)
Makes the operation conditional on whether the destination object's current metageneration
does not match the given value.
|
Storage.Objects.Rewrite |
setIfSourceGenerationMatch(java.lang.Long ifSourceGenerationMatch)
Makes the operation conditional on whether the source object's generation matches the given
value.
|
Storage.Objects.Rewrite |
setIfSourceGenerationNotMatch(java.lang.Long ifSourceGenerationNotMatch)
Makes the operation conditional on whether the source object's generation does not match
the given value.
|
Storage.Objects.Rewrite |
setIfSourceMetagenerationMatch(java.lang.Long ifSourceMetagenerationMatch)
Makes the operation conditional on whether the source object's current metageneration
matches the given value.
|
Storage.Objects.Rewrite |
setIfSourceMetagenerationNotMatch(java.lang.Long ifSourceMetagenerationNotMatch)
Makes the operation conditional on whether the source object's current metageneration does
not match the given value.
|
Storage.Objects.Rewrite |
setKey(java.lang.String key)
API key.
|
Storage.Objects.Rewrite |
setMaxBytesRewrittenPerCall(java.lang.Long maxBytesRewrittenPerCall)
The maximum number of bytes that will be rewritten per rewrite request.
|
Storage.Objects.Rewrite |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Storage.Objects.Rewrite |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Storage.Objects.Rewrite |
setProjection(java.lang.String projection)
Set of properties to return.
|
Storage.Objects.Rewrite |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Storage.Objects.Rewrite |
setRewriteToken(java.lang.String rewriteToken)
Include this field (from the previous rewrite response) on each rewrite request after the
first one, until the rewrite response 'done' flag is true.
|
Storage.Objects.Rewrite |
setSourceBucket(java.lang.String sourceBucket)
Name of the bucket in which to find the source object.
|
Storage.Objects.Rewrite |
setSourceGeneration(java.lang.Long sourceGeneration)
If present, selects a specific revision of the source object (as opposed to the latest
version, the default).
|
Storage.Objects.Rewrite |
setSourceObject(java.lang.String sourceObject)
Name of the source object.
|
Storage.Objects.Rewrite |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected Storage.Objects.Rewrite(java.lang.String sourceBucket, java.lang.String sourceObject, java.lang.String destinationBucket, java.lang.String destinationObject, StorageObject content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
Storage.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
sourceBucket
- Name of the bucket in which to find the source object.sourceObject
- Name of the source object.destinationBucket
- Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket
value, if any.destinationObject
- Name of the new object. Required when the object metadata is not otherwise provided. Overrides the
object metadata's name value, if any.content
- the StorageObject
public Storage.Objects.Rewrite setAlt(java.lang.String alt)
StorageRequest
setAlt
in class StorageRequest<RewriteResponse>
public Storage.Objects.Rewrite setFields(java.lang.String fields)
StorageRequest
setFields
in class StorageRequest<RewriteResponse>
public Storage.Objects.Rewrite setKey(java.lang.String key)
StorageRequest
setKey
in class StorageRequest<RewriteResponse>
public Storage.Objects.Rewrite setOauthToken(java.lang.String oauthToken)
StorageRequest
setOauthToken
in class StorageRequest<RewriteResponse>
public Storage.Objects.Rewrite setPrettyPrint(java.lang.Boolean prettyPrint)
StorageRequest
setPrettyPrint
in class StorageRequest<RewriteResponse>
public Storage.Objects.Rewrite setQuotaUser(java.lang.String quotaUser)
StorageRequest
setQuotaUser
in class StorageRequest<RewriteResponse>
public Storage.Objects.Rewrite setUserIp(java.lang.String userIp)
StorageRequest
setUserIp
in class StorageRequest<RewriteResponse>
public java.lang.String getSourceBucket()
public Storage.Objects.Rewrite setSourceBucket(java.lang.String sourceBucket)
public java.lang.String getSourceObject()
public Storage.Objects.Rewrite setSourceObject(java.lang.String sourceObject)
public java.lang.String getDestinationBucket()
public Storage.Objects.Rewrite setDestinationBucket(java.lang.String destinationBucket)
public java.lang.String getDestinationObject()
public Storage.Objects.Rewrite setDestinationObject(java.lang.String destinationObject)
public java.lang.Long getIfSourceGenerationNotMatch()
public Storage.Objects.Rewrite setIfSourceGenerationNotMatch(java.lang.Long ifSourceGenerationNotMatch)
public java.lang.Long getIfGenerationNotMatch()
public Storage.Objects.Rewrite setIfGenerationNotMatch(java.lang.Long ifGenerationNotMatch)
public java.lang.String getRewriteToken()
public Storage.Objects.Rewrite setRewriteToken(java.lang.String rewriteToken)
public java.lang.Long getIfSourceMetagenerationNotMatch()
public Storage.Objects.Rewrite setIfSourceMetagenerationNotMatch(java.lang.Long ifSourceMetagenerationNotMatch)
public java.lang.Long getIfMetagenerationMatch()
public Storage.Objects.Rewrite setIfMetagenerationMatch(java.lang.Long ifMetagenerationMatch)
public java.lang.Long getSourceGeneration()
public Storage.Objects.Rewrite setSourceGeneration(java.lang.Long sourceGeneration)
public java.lang.String getDestinationPredefinedAcl()
public Storage.Objects.Rewrite setDestinationPredefinedAcl(java.lang.String destinationPredefinedAcl)
public java.lang.Long getIfSourceGenerationMatch()
public Storage.Objects.Rewrite setIfSourceGenerationMatch(java.lang.Long ifSourceGenerationMatch)
public java.lang.Long getMaxBytesRewrittenPerCall()
public Storage.Objects.Rewrite setMaxBytesRewrittenPerCall(java.lang.Long maxBytesRewrittenPerCall)
public java.lang.Long getIfSourceMetagenerationMatch()
public Storage.Objects.Rewrite setIfSourceMetagenerationMatch(java.lang.Long ifSourceMetagenerationMatch)
public java.lang.Long getIfGenerationMatch()
public Storage.Objects.Rewrite setIfGenerationMatch(java.lang.Long ifGenerationMatch)
public java.lang.Long getIfMetagenerationNotMatch()
public Storage.Objects.Rewrite setIfMetagenerationNotMatch(java.lang.Long ifMetagenerationNotMatch)
public java.lang.String getProjection()
public Storage.Objects.Rewrite setProjection(java.lang.String projection)
public Storage.Objects.Rewrite set(java.lang.String parameterName, java.lang.Object value)
set
in class StorageRequest<RewriteResponse>