public static class Storage.BlobSourceOption extends Option
Modifier and Type | Method and Description |
---|---|
static Storage.BlobSourceOption |
decryptionKey(Key key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Storage.BlobSourceOption |
decryptionKey(String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Storage.BlobSourceOption |
generationMatch()
Returns an option for blob's data generation match.
|
static Storage.BlobSourceOption |
generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Storage.BlobSourceOption |
generationNotMatch()
Returns an option for blob's data generation mismatch.
|
static Storage.BlobSourceOption |
generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
static Storage.BlobSourceOption |
metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Storage.BlobSourceOption |
metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobSourceOption |
userProject(String userProject)
Returns an option for blob's billing user project.
|
public static Storage.BlobSourceOption generationMatch()
BlobId
object. When this option is passed to
a Storage
method and BlobId.getGeneration()
is null
or no BlobId
is provided an exception is thrown.public static Storage.BlobSourceOption generationMatch(long generation)
public static Storage.BlobSourceOption generationNotMatch()
BlobId
object. When this option is passed to
a Storage
method and BlobId.getGeneration()
is null
or no BlobId
is provided an exception is thrown.public static Storage.BlobSourceOption generationNotMatch(long generation)
public static Storage.BlobSourceOption metagenerationMatch(long metageneration)
public static Storage.BlobSourceOption metagenerationNotMatch(long metageneration)
public static Storage.BlobSourceOption decryptionKey(Key key)
public static Storage.BlobSourceOption decryptionKey(String key)
key
- the AES256 encoded in base64public static Storage.BlobSourceOption userProject(String userProject)
Copyright © 2019 Google LLC. All rights reserved.