Class BucketInfo.Autoclass.Builder (2.29.0)

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
TypeDescription
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
NameDescription
enabledBoolean
Returns
TypeDescription
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
NameDescription
terminalStorageClassStorageClass
Returns
TypeDescription
BucketInfo.Autoclass.Builder