Class Storage.ComposeRequest (2.11.0)

public static class Storage.ComposeRequest implements Serializable

A class to contain all information needed for a Google Cloud Storage Compose operation. See Also: Compose Operation

Inheritance

java.lang.Object > Storage.ComposeRequest

Implements

Serializable

Static Methods

newBuilder()

public static Storage.ComposeRequest.Builder newBuilder()

Returns a ComposeRequest builder.

Returns
TypeDescription
Storage.ComposeRequest.Builder

of(Iterable<String> sources, BlobInfo target)

public static Storage.ComposeRequest of(Iterable<String> sources, BlobInfo target)

Creates a ComposeRequest object.

Parameters
NameDescription
sourcesIterable<String>

source blobs names

targetBlobInfo

target blob

Returns
TypeDescription
Storage.ComposeRequest

of(String bucket, Iterable<String> sources, String target)

public static Storage.ComposeRequest of(String bucket, Iterable<String> sources, String target)

Creates a ComposeRequest object.

Parameters
NameDescription
bucketString

name of the bucket where the compose operation takes place

sourcesIterable<String>

source blobs names

targetString

target blob name

Returns
TypeDescription
Storage.ComposeRequest

Methods

getSourceBlobs()

public List<Storage.ComposeRequest.SourceBlob> getSourceBlobs()

Returns compose operation's source blobs.

Returns
TypeDescription
List<SourceBlob>

getTarget()

public BlobInfo getTarget()

Returns compose operation's target blob.

Returns
TypeDescription
BlobInfo

getTargetOptions()

public List<Storage.BlobTargetOption> getTargetOptions()

Returns compose operation's target blob's options.

Returns
TypeDescription
List<BlobTargetOption>