public class Storage.Objects.Move extends StorageRequest<StorageObject>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Move(String bucket,
String sourceObject,
String destinationObject)
Moves the source object to the destination object in the same bucket.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBucket()
Name of the bucket in which the object resides.
|
String |
getDestinationObject()
Name of the destination object.
|
Long |
getIfGenerationMatch()
Makes the operation conditional on whether the destination object's current generation matches the
given value.
|
Long |
getIfGenerationNotMatch()
Makes the operation conditional on whether the destination object's current generation does not
match the given value.
|
Long |
getIfMetagenerationMatch()
Makes the operation conditional on whether the destination object's current metageneration matches
the given value.
|
Long |
getIfMetagenerationNotMatch()
Makes the operation conditional on whether the destination object's current metageneration does not
match the given value.
|
Long |
getIfSourceGenerationMatch()
Makes the operation conditional on whether the source object's current generation matches the given
value.
|
Long |
getIfSourceGenerationNotMatch()
Makes the operation conditional on whether the source object's current generation does not match
the given value.
|
Long |
getIfSourceMetagenerationMatch()
Makes the operation conditional on whether the source object's current metageneration matches the
given value.
|
Long |
getIfSourceMetagenerationNotMatch()
Makes the operation conditional on whether the source object's current metageneration does not
match the given value.
|
String |
getProjection()
Set of properties to return.
|
String |
getSourceObject()
Name of the source object.
|
String |
getUserProject()
The project to be billed for this request.
|
Storage.Objects.Move |
set(String parameterName,
Object value) |
Storage.Objects.Move |
setAlt(String alt)
Data format for the response.
|
Storage.Objects.Move |
setBucket(String bucket)
Name of the bucket in which the object resides.
|
Storage.Objects.Move |
setDestinationObject(String destinationObject)
Name of the destination object.
|
Storage.Objects.Move |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Storage.Objects.Move |
setIfGenerationMatch(Long ifGenerationMatch)
Makes the operation conditional on whether the destination object's current generation
matches the given value.
|
Storage.Objects.Move |
setIfGenerationNotMatch(Long ifGenerationNotMatch)
Makes the operation conditional on whether the destination object's current generation does
not match the given value.
|
Storage.Objects.Move |
setIfMetagenerationMatch(Long ifMetagenerationMatch)
Makes the operation conditional on whether the destination object's current metageneration
matches the given value.
|
Storage.Objects.Move |
setIfMetagenerationNotMatch(Long ifMetagenerationNotMatch)
Makes the operation conditional on whether the destination object's current metageneration
does not match the given value.
|
Storage.Objects.Move |
setIfSourceGenerationMatch(Long ifSourceGenerationMatch)
Makes the operation conditional on whether the source object's current generation matches
the given value.
|
Storage.Objects.Move |
setIfSourceGenerationNotMatch(Long ifSourceGenerationNotMatch)
Makes the operation conditional on whether the source object's current generation does not
match the given value.
|
Storage.Objects.Move |
setIfSourceMetagenerationMatch(Long ifSourceMetagenerationMatch)
Makes the operation conditional on whether the source object's current metageneration
matches the given value.
|
Storage.Objects.Move |
setIfSourceMetagenerationNotMatch(Long ifSourceMetagenerationNotMatch)
Makes the operation conditional on whether the source object's current metageneration does
not match the given value.
|
Storage.Objects.Move |
setKey(String key)
API key.
|
Storage.Objects.Move |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Storage.Objects.Move |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Storage.Objects.Move |
setProjection(String projection)
Set of properties to return.
|
Storage.Objects.Move |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Storage.Objects.Move |
setSourceObject(String sourceObject)
Name of the source object.
|
Storage.Objects.Move |
setUploadType(String uploadType)
Upload protocol for media (e.g.
|
Storage.Objects.Move |
setUserIp(String userIp)
Deprecated.
|
Storage.Objects.Move |
setUserProject(String userProject)
The project to be billed for this request.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadType, 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, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Move(String bucket, String sourceObject, String destinationObject)
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.
bucket - Name of the bucket in which the object resides.sourceObject - Name of the source object. For information about how to URL encode object names to be path safe, see
[Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-
endpoints#encoding).destinationObject - Name of the destination object. For information about how to URL encode object names to be path
safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-
endpoints#encoding).public Storage.Objects.Move setAlt(String alt)
StorageRequestsetAlt in class StorageRequest<StorageObject>public Storage.Objects.Move setFields(String fields)
StorageRequestsetFields in class StorageRequest<StorageObject>public Storage.Objects.Move setKey(String key)
StorageRequestsetKey in class StorageRequest<StorageObject>public Storage.Objects.Move setOauthToken(String oauthToken)
StorageRequestsetOauthToken in class StorageRequest<StorageObject>public Storage.Objects.Move setPrettyPrint(Boolean prettyPrint)
StorageRequestsetPrettyPrint in class StorageRequest<StorageObject>public Storage.Objects.Move setQuotaUser(String quotaUser)
StorageRequestsetQuotaUser in class StorageRequest<StorageObject>public Storage.Objects.Move setUploadType(String uploadType)
StorageRequestsetUploadType in class StorageRequest<StorageObject>public Storage.Objects.Move setUserIp(String userIp)
StorageRequestsetUserIp in class StorageRequest<StorageObject>public String getBucket()
public Storage.Objects.Move setBucket(String bucket)
public String getSourceObject()
public Storage.Objects.Move setSourceObject(String sourceObject)
public String getDestinationObject()
public Storage.Objects.Move setDestinationObject(String destinationObject)
public Long getIfGenerationMatch()
public Storage.Objects.Move setIfGenerationMatch(Long ifGenerationMatch)
public Long getIfGenerationNotMatch()
public Storage.Objects.Move setIfGenerationNotMatch(Long ifGenerationNotMatch)
public Long getIfMetagenerationMatch()
public Storage.Objects.Move setIfMetagenerationMatch(Long ifMetagenerationMatch)
public Long getIfMetagenerationNotMatch()
public Storage.Objects.Move setIfMetagenerationNotMatch(Long ifMetagenerationNotMatch)
public Long getIfSourceGenerationMatch()
public Storage.Objects.Move setIfSourceGenerationMatch(Long ifSourceGenerationMatch)
public Long getIfSourceGenerationNotMatch()
public Storage.Objects.Move setIfSourceGenerationNotMatch(Long ifSourceGenerationNotMatch)
public Long getIfSourceMetagenerationMatch()
public Storage.Objects.Move setIfSourceMetagenerationMatch(Long ifSourceMetagenerationMatch)
public Long getIfSourceMetagenerationNotMatch()
public Storage.Objects.Move setIfSourceMetagenerationNotMatch(Long ifSourceMetagenerationNotMatch)
public String getProjection()
public Storage.Objects.Move setProjection(String projection)
public String getUserProject()
public Storage.Objects.Move setUserProject(String userProject)
public Storage.Objects.Move set(String parameterName, Object value)
set in class StorageRequest<StorageObject>Copyright © 2011–2025 Google. All rights reserved.