Class Storage.BlobRestoreOption (2.46.0)

public static class Storage.BlobRestoreOption extends Option<UnifiedOpts.ObjectSourceOpt>

Class for specifying blob restore options *

Inheritance

java.lang.Object > com.google.cloud.storage.UnifiedOpts.OptionShim > Option > Storage.BlobRestoreOption

Static Methods

copySourceAcl(boolean copySourceAcl)

public static Storage.BlobRestoreOption copySourceAcl(boolean copySourceAcl)

Returns an option for whether the restored object should copy the access controls of the source object.

Parameter
Name Description
copySourceAcl boolean
Returns
Type Description
Storage.BlobRestoreOption

generationMatch(long generation)

public static Storage.BlobRestoreOption generationMatch(long generation)

Returns an option for blob's data generation match. If this option is used the request will fail if generation does not match.

Parameter
Name Description
generation long
Returns
Type Description
Storage.BlobRestoreOption

generationNotMatch(long generation)

public static Storage.BlobRestoreOption generationNotMatch(long generation)

Returns an option for blob's data generation mismatch. If this option is used the request will fail if blob's generation matches the provided value.

Parameter
Name Description
generation long
Returns
Type Description
Storage.BlobRestoreOption

metagenerationMatch(long generation)

public static Storage.BlobRestoreOption metagenerationMatch(long generation)

Returns an option for blob's metageneration match. If this option is used the request will fail if blob's metageneration does not match the provided value.

Parameter
Name Description
generation long
Returns
Type Description
Storage.BlobRestoreOption

metagenerationNotMatch(long generation)

public static Storage.BlobRestoreOption metagenerationNotMatch(long generation)

Returns an option for blob's metageneration mismatch. If this option is used the request will fail if blob's metageneration matches the provided value.

Parameter
Name Description
generation long
Returns
Type Description
Storage.BlobRestoreOption