public static class Storage.CopyRequest.Builder extends Object
| Constructor and Description |
|---|
Storage.CopyRequest.Builder() |
| Modifier and Type | Method and Description |
|---|---|
Storage.CopyRequest |
build()
Creates a
CopyRequest object. |
Storage.CopyRequest.Builder |
megabytesCopiedPerChunk(Long megabytesCopiedPerChunk)
Sets the maximum number of megabytes to copy for each RPC call.
|
Storage.CopyRequest.Builder |
source(BlobId source)
Sets the blob to copy given a
BlobId. |
Storage.CopyRequest.Builder |
source(String bucket,
String blob)
Sets the blob to copy given bucket and blob name.
|
Storage.CopyRequest.Builder |
sourceOptions(Iterable<Storage.BlobSourceOption> options)
Sets blob's source options.
|
Storage.CopyRequest.Builder |
sourceOptions(Storage.BlobSourceOption... options)
Sets blob's source options.
|
Storage.CopyRequest.Builder |
target(BlobId targetId)
Sets the copy target.
|
Storage.CopyRequest.Builder |
target(BlobInfo target,
Iterable<Storage.BlobTargetOption> options)
Sets the copy target and target options.
|
Storage.CopyRequest.Builder |
target(BlobInfo target,
Storage.BlobTargetOption... options)
Sets the copy target and target options.
|
public Storage.CopyRequest.Builder source(String bucket, String blob)
public Storage.CopyRequest.Builder source(BlobId source)
BlobId.public Storage.CopyRequest.Builder sourceOptions(Storage.BlobSourceOption... options)
public Storage.CopyRequest.Builder sourceOptions(Iterable<Storage.BlobSourceOption> options)
public Storage.CopyRequest.Builder target(BlobId targetId)
public Storage.CopyRequest.Builder target(BlobInfo target, Storage.BlobTargetOption... options)
target parameter is used to override
source blob information (e.g. contentType, contentLanguage). Target blob
information is set exactly to target, no information is inherited from the source
blob.public Storage.CopyRequest.Builder target(BlobInfo target, Iterable<Storage.BlobTargetOption> options)
target parameter is used to override
source blob information (e.g. contentType, contentLanguage). Target blob
information is set exactly to target, no information is inherited from the source
blob.public Storage.CopyRequest.Builder megabytesCopiedPerChunk(Long megabytesCopiedPerChunk)
public Storage.CopyRequest build()
CopyRequest object.Copyright © 2016 Google. All rights reserved.