Class BucketInfo.Autoclass.Builder (2.43.1)

public static final class BucketInfo.Autoclass.Builder

Inheritance

java.lang.Object > BucketInfo.Autoclass.Builder

Constructors

Builder()

public Builder()

Methods

build()

public BucketInfo.Autoclass build()
Returns
Type Description
BucketInfo.Autoclass

setEnabled(Boolean enabled)

public BucketInfo.Autoclass.Builder setEnabled(Boolean enabled)

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.

Parameter
Name Description
enabled Boolean
Returns
Type Description
BucketInfo.Autoclass.Builder

setTerminalStorageClass(StorageClass terminalStorageClass)

public BucketInfo.Autoclass.Builder setTerminalStorageClass(StorageClass terminalStorageClass)

When set to StorageClass#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 and ARCHIVE.

Parameter
Name Description
terminalStorageClass StorageClass
Returns
Type Description
BucketInfo.Autoclass.Builder