public static class Bucket.BlobTargetOption extends Option<com.google.cloud.storage.UnifiedOpts.ObjectTargetOpt>
Bucket
methods are used.Modifier and Type | Method and Description |
---|---|
static Bucket.BlobTargetOption[] |
dedupe(Bucket.BlobTargetOption... os)
Deduplicate any options which are the same parameter.
|
static Bucket.BlobTargetOption[] |
dedupe(Bucket.BlobTargetOption[] array,
Bucket.BlobTargetOption... os)
Deduplicate any options which are the same parameter.
|
static Bucket.BlobTargetOption[] |
dedupe(Collection<Bucket.BlobTargetOption> collection,
Bucket.BlobTargetOption... os)
Deduplicate any options which are the same parameter.
|
static Bucket.BlobTargetOption |
doesNotExist()
Returns an option that causes an operation to succeed only if the target blob does not exist.
|
static Bucket.BlobTargetOption |
encryptionKey(@NonNull Key key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Bucket.BlobTargetOption |
encryptionKey(@NonNull String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
boolean |
equals(Object o)
Deprecated.
|
static Bucket.BlobTargetOption |
generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Bucket.BlobTargetOption |
generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
int |
hashCode()
Deprecated.
|
static Bucket.BlobTargetOption |
kmsKeyName(@NonNull String kmsKeyName)
Returns an option to set a customer-managed KMS key for server-side encryption of the blob.
|
static Bucket.BlobTargetOption |
metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Bucket.BlobTargetOption |
metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Bucket.BlobTargetOption |
predefinedAcl(Storage.PredefinedAcl acl)
Returns an option for specifying blob's predefined ACL configuration.
|
String |
toString()
Deprecated.
|
static Bucket.BlobTargetOption |
userProject(@NonNull String userProject)
Returns an option for blob's billing user project.
|
@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption predefinedAcl(Storage.PredefinedAcl acl)
@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption doesNotExist()
generationMatch(long)
or generationNotMatch(long)
.@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption generationMatch(long generation)
generationNotMatch(long)
or doesNotExist()
.@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption generationNotMatch(long generation)
generationMatch(long)
or doesNotExist()
.@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption metagenerationMatch(long metageneration)
metagenerationNotMatch(long)
.@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption metagenerationNotMatch(long metageneration)
metagenerationMatch(long)
.@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption encryptionKey(@NonNull Key key)
@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption encryptionKey(@NonNull String key)
key
- the AES256 encoded in base64@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption kmsKeyName(@NonNull String kmsKeyName)
kmsKeyName
- the KMS key resource id@TransportCompatibility(value={HTTP,GRPC}) public static Bucket.BlobTargetOption userProject(@NonNull String userProject)
@BetaApi public static Bucket.BlobTargetOption[] dedupe(Bucket.BlobTargetOption... os)
os
will be the value included in the return.@BetaApi public static Bucket.BlobTargetOption[] dedupe(Collection<Bucket.BlobTargetOption> collection, Bucket.BlobTargetOption... os)
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
.
@BetaApi public static Bucket.BlobTargetOption[] dedupe(Bucket.BlobTargetOption[] array, Bucket.BlobTargetOption... os)
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
.
Copyright © 2023 Google LLC. All rights reserved.