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 |
---|---|
Long |
getMegabytesCopiedPerChunk()
Returns the maximum number of megabytes to copy for each RPC call.
|
BlobId |
getSource()
Returns the blob to copy, as a
BlobId . |
List<Storage.BlobSourceOption> |
getSourceOptions()
Returns blob's source options.
|
BlobInfo |
getTarget()
Returns the
BlobInfo for the target blob. |
List<Storage.BlobTargetOption> |
getTargetOptions()
Returns blob's target options.
|
static Storage.CopyRequest.Builder |
newBuilder()
Creates a builder for
CopyRequest objects. |
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
getTarget() . |
public List<Storage.BlobSourceOption> getSourceOptions()
public boolean overrideInfo()
getTarget()
. If true
, the value of getTarget()
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> getTargetOptions()
public Long getMegabytesCopiedPerChunk()
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 newBuilder()
CopyRequest
objects.Copyright © 2019 Google LLC. All rights reserved.