public static class Storage.BlobWriteOption extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static Storage.BlobWriteOption |
crc32cMatch()
Returns an option for blob's data CRC32C checksum match.
|
static Storage.BlobWriteOption |
doesNotExist()
Returns an option that causes an operation to succeed only if the target blob does not exist.
|
static Storage.BlobWriteOption |
encryptionKey(Key key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Storage.BlobWriteOption |
encryptionKey(String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
boolean |
equals(Object obj) |
static Storage.BlobWriteOption |
generationMatch()
Returns an option for blob's data generation match.
|
static Storage.BlobWriteOption |
generationNotMatch()
Returns an option for blob's data generation mismatch.
|
int |
hashCode() |
static Storage.BlobWriteOption |
kmsKeyName(String kmsKeyName)
Returns an option to set a customer-managed KMS key for server-side encryption of the blob.
|
static Storage.BlobWriteOption |
md5Match()
Returns an option for blob's data MD5 hash match.
|
static Storage.BlobWriteOption |
metagenerationMatch()
Returns an option for blob's metageneration match.
|
static Storage.BlobWriteOption |
metagenerationNotMatch()
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobWriteOption |
predefinedAcl(Storage.PredefinedAcl acl)
Returns an option for specifying blob's predefined ACL configuration.
|
static Storage.BlobWriteOption |
userProject(String userProject)
Returns an option for blob's billing user project.
|
public static Storage.BlobWriteOption predefinedAcl(Storage.PredefinedAcl acl)
public static Storage.BlobWriteOption doesNotExist()
public static Storage.BlobWriteOption generationMatch()
public static Storage.BlobWriteOption generationNotMatch()
public static Storage.BlobWriteOption metagenerationMatch()
public static Storage.BlobWriteOption metagenerationNotMatch()
public static Storage.BlobWriteOption md5Match()
public static Storage.BlobWriteOption crc32cMatch()
public static Storage.BlobWriteOption encryptionKey(Key key)
public static Storage.BlobWriteOption encryptionKey(String key)
key
- the AES256 encoded in base64public static Storage.BlobWriteOption kmsKeyName(String kmsKeyName)
kmsKeyName
- the KMS key resource idpublic static Storage.BlobWriteOption userProject(String userProject)
Copyright © 2019 Google LLC. All rights reserved.