Class Bucket.BucketSourceOption (2.29.0)

public static class Bucket.BucketSourceOption extends Option<UnifiedOpts.BucketSourceOpt>

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

Inheritance

java.lang.Object > com.google.cloud.storage.UnifiedOpts.OptionShim > Option > Bucket.BucketSourceOption

Static Methods

dedupe(Bucket.BucketSourceOption[] os)

public static Bucket.BucketSourceOption[] dedupe(Bucket.BucketSourceOption[] os)

Deduplicate any options which are the same parameter. The value which comes last in os will be the value included in the return.

Parameter
NameDescription
osBucketSourceOption[]
Returns
TypeDescription
BucketSourceOption[]

dedupe(Bucket.BucketSourceOption[] array, Bucket.BucketSourceOption[] os)

public static Bucket.BucketSourceOption[] dedupe(Bucket.BucketSourceOption[] array, Bucket.BucketSourceOption[] os)

Deduplicate any options which are the same parameter.

The value which comes last in collection and os will be the value included in the return. All options from os will override their counterparts in collection.

Parameters
NameDescription
arrayBucketSourceOption[]
osBucketSourceOption[]
Returns
TypeDescription
BucketSourceOption[]

dedupe(Collection<Bucket.BucketSourceOption> collection, Bucket.BucketSourceOption[] os)

public static Bucket.BucketSourceOption[] dedupe(Collection<Bucket.BucketSourceOption> collection, Bucket.BucketSourceOption[] os)

Deduplicate any options which are the same parameter.

The value which comes last in collection and os will be the value included in the return. All options from os will override their counterparts in collection.

Parameters
NameDescription
collectionCollection<BucketSourceOption>
osBucketSourceOption[]
Returns
TypeDescription
BucketSourceOption[]

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(@NonNull String userProject)

public static Bucket.BucketSourceOption userProject(@NonNull 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
userProject@org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
TypeDescription
Bucket.BucketSourceOption