Package com.google.cloud.storage
Class BucketInfo.Autoclass.Builder
java.lang.Object
com.google.cloud.storage.BucketInfo.Autoclass.Builder
- Enclosing class:
- BucketInfo.Autoclass
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setEnabled
(Boolean enabled) Sets whether Autoclass is enabled for this bucket.setTerminalStorageClass
(StorageClass terminalStorageClass) When set toStorageClass.NEARLINE
, Autoclass restricts transitions between Standard and Nearline storage classes only.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setEnabled
Sets whether Autoclass is enabled for this bucket. Currently, autoclass can only be enabled at bucket create time. Any calls to update an existing Autoclass configuration must be to disable it, calls to enable Autoclass on an existing bucket will fail. -
setTerminalStorageClass
When set toStorageClass.NEARLINE
, Autoclass restricts transitions between Standard and Nearline storage classes only.When set to
StorageClass.ARCHIVE
, Autoclass allows transitions to Coldline and Archive as well.Only valid values are
NEARLINE
andARCHIVE
. -
build
-