public static class Storage.CopyRequest extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Storage.CopyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Storage.CopyRequest.Builder |
builder() |
Long |
megabytesCopiedPerChunk()
Returns the maximum number of megabytes to copy for each RPC call.
|
static Storage.CopyRequest |
of(BlobId sourceBlobId,
BlobId targetBlobId)
Creates a copy request.
|
static Storage.CopyRequest |
of(BlobId sourceBlobId,
BlobInfo target)
Creates a copy request.
|
static Storage.CopyRequest |
of(BlobId sourceBlobId,
String targetBlob)
Creates a copy request.
|
static Storage.CopyRequest |
of(String sourceBucket,
String sourceBlob,
BlobId target)
Creates a copy request.
|
static Storage.CopyRequest |
of(String sourceBucket,
String sourceBlob,
BlobInfo target)
Creates a copy request.
|
static Storage.CopyRequest |
of(String sourceBucket,
String sourceBlob,
String targetBlob)
Creates a copy request.
|
boolean |
overrideInfo()
Returns whether to override the target blob information with
target(). |
BlobId |
source()
Returns the blob to copy, as a
BlobId. |
List<Storage.BlobSourceOption> |
sourceOptions()
Returns blob's source options.
|
BlobInfo |
target()
Returns the
BlobInfo for the target blob. |
List<Storage.BlobTargetOption> |
targetOptions()
Returns blob's target options.
|
public List<Storage.BlobSourceOption> sourceOptions()
public boolean overrideInfo()
target().
If true, the value of target() is used to replace source blob information
(e.g. contentType, contentLanguage). Target blob information is set exactly
to this value, no information is inherited from the source blob. If false, target
blob information is inherited from the source blob.public List<Storage.BlobTargetOption> targetOptions()
public Long megabytesCopiedPerChunk()
public static Storage.CopyRequest of(String sourceBucket, String sourceBlob, BlobInfo target)
target parameter is used to override source blob information
(e.g. contentType, contentLanguage).sourceBucket - name of the bucket containing the source blobsourceBlob - name of the source blobtarget - a BlobInfo object for the target blobpublic static Storage.CopyRequest of(BlobId sourceBlobId, BlobInfo target)
target parameter is used to replace source blob information
(e.g. contentType, contentLanguage). Target blob information is set exactly
to target, no information is inherited from the source blob.sourceBlobId - a BlobId object for the source blobtarget - a BlobInfo object for the target blobpublic static Storage.CopyRequest of(String sourceBucket, String sourceBlob, String targetBlob)
sourceBucket - name of the bucket containing both the source and the target blobsourceBlob - name of the source blobtargetBlob - name of the target blobpublic static Storage.CopyRequest of(String sourceBucket, String sourceBlob, BlobId target)
sourceBucket - name of the bucket containing the source blobsourceBlob - name of the source blobtarget - a BlobId object for the target blobpublic static Storage.CopyRequest of(BlobId sourceBlobId, String targetBlob)
sourceBlobId - a BlobId object for the source blobtargetBlob - name of the target blob, in the same bucket of the source blobpublic static Storage.CopyRequest of(BlobId sourceBlobId, BlobId targetBlobId)
sourceBlobId - a BlobId object for the source blobtargetBlobId - a BlobId object for the target blobpublic static Storage.CopyRequest.Builder builder()
Copyright © 2016 Google. All rights reserved.