Package com.google.cloud.storage
Class ParallelCompositeUploadBlobWriteSessionConfig.PartMetadataFieldDecorator
java.lang.Object
com.google.cloud.storage.ParallelCompositeUploadBlobWriteSessionConfig.PartMetadataFieldDecorator
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ParallelCompositeUploadBlobWriteSessionConfig
@BetaApi
@Immutable
public abstract static class ParallelCompositeUploadBlobWriteSessionConfig.PartMetadataFieldDecorator
extends Object
implements Serializable
A Decorator which is used to manipulate metadata fields, specifically on the part objects
created in a Parallel Composite Upload
- Since:
- 2.36.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnoOp()setCustomTimeInFuture(Duration timeInFuture) A decorator that is used to manipulate the Custom Time Metadata field of part files.
-
Constructor Details
-
PartMetadataFieldDecorator
public PartMetadataFieldDecorator()
-
-
Method Details
-
setCustomTimeInFuture
@BetaApi public static ParallelCompositeUploadBlobWriteSessionConfig.PartMetadataFieldDecorator setCustomTimeInFuture(Duration timeInFuture) A decorator that is used to manipulate the Custom Time Metadata field of part files.BlobInfo.getCustomTimeOffsetDateTime()When provided with a duration, a time in the future will be calculated for each part object upon upload, this new value can be used in OLM rules to cleanup abandoned part files.
See [CustomTime OLM documentation](https://cloud.google.com/storage/docs/lifecycle#dayssincecustomtime)
- Since:
- 2.36.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
noOp
@BetaApi public static ParallelCompositeUploadBlobWriteSessionConfig.PartMetadataFieldDecorator noOp()
-