Class Bucket.BucketSourceOption (2.11.3)

public static class Bucket.BucketSourceOption extends Option

Class for specifying bucket source options when Bucket methods are used.

Inheritance

Object > Option > Bucket.BucketSourceOption

Static Methods

metagenerationMatch()

public static Bucket.BucketSourceOption metagenerationMatch()

Returns an option for bucket's metageneration match. If this option is used the request will fail if metageneration does not match.

Returns
TypeDescription
Bucket.BucketSourceOption

metagenerationNotMatch()

public static Bucket.BucketSourceOption metagenerationNotMatch()

Returns an option for bucket's metageneration mismatch. If this option is used the request will fail if metageneration matches.

Returns
TypeDescription
Bucket.BucketSourceOption

userProject(String userProject)

public static Bucket.BucketSourceOption userProject(String userProject)

Returns an option for blob's billing user project. This option is only used by the buckets with 'requester_pays' flag.

Parameter
NameDescription
userProjectString
Returns
TypeDescription
Bucket.BucketSourceOption