Class ObjectLockMode (2.60.0)

public final class ObjectLockMode extends StringEnumValue

Represents the object lock mode. See https://cloud.google.com/storage/docs/object-lock for details.

Inheritance

java.lang.Object > com.google.cloud.StringEnumValue > ObjectLockMode

Static Fields

COMPLIANCE

public static final ObjectLockMode COMPLIANCE

Compliance mode. See https://cloud.google.com/storage/docs/object-lock for details.

Field Value
Type Description
ObjectLockMode

GOVERNANCE

public static final ObjectLockMode GOVERNANCE

Governance mode. See https://cloud.google.com/storage/docs/object-lock for details.

Field Value
Type Description
ObjectLockMode

Static Methods

valueOf(String constant)

public static ObjectLockMode valueOf(String constant)

Get the ObjectLockMode for the given String constant, and allow unrecognized values.

Parameter
Name Description
constant String
Returns
Type Description
ObjectLockMode

valueOfStrict(String constant)

public static ObjectLockMode valueOfStrict(String constant)

Get the ObjectLockMode for the given String constant, and throw an exception if the constant is not recognized.

Parameter
Name Description
constant String
Returns
Type Description
ObjectLockMode

values()

public static ObjectLockMode[] values()

Return the known values for ObjectLockMode.

Returns
Type Description
ObjectLockMode[]