public static class Bucket.BlobTargetOption extends Option
Bucket
methods are used.Modifier and Type | Method and Description |
---|---|
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(Key key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Bucket.BlobTargetOption |
encryptionKey(String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
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.
|
static Bucket.BlobTargetOption |
kmsKeyName(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.
|
static Bucket.BlobTargetOption |
userProject(String userProject)
Returns an option for blob's billing user project.
|
public static Bucket.BlobTargetOption predefinedAcl(Storage.PredefinedAcl acl)
public static Bucket.BlobTargetOption doesNotExist()
generationMatch(long)
or generationNotMatch(long)
.public static Bucket.BlobTargetOption generationMatch(long generation)
generationNotMatch(long)
or doesNotExist()
.public static Bucket.BlobTargetOption generationNotMatch(long generation)
generationMatch(long)
or doesNotExist()
.public static Bucket.BlobTargetOption metagenerationMatch(long metageneration)
metagenerationNotMatch(long)
.public static Bucket.BlobTargetOption metagenerationNotMatch(long metageneration)
metagenerationMatch(long)
.public static Bucket.BlobTargetOption encryptionKey(Key key)
public static Bucket.BlobTargetOption encryptionKey(String key)
key
- the AES256 encoded in base64public static Bucket.BlobTargetOption kmsKeyName(String kmsKeyName)
kmsKeyName
- the KMS key resource idpublic static Bucket.BlobTargetOption userProject(String userProject)
Copyright © 2019 Google LLC. All rights reserved.