Class ObjectLockMode
java.lang.Object
com.google.cloud.StringEnumValue
com.google.cloud.storage.multipartupload.model.ObjectLockMode
- All Implemented Interfaces:
Serializable
@BetaApi
public final class ObjectLockMode
extends com.google.cloud.StringEnumValue
Represents the object lock mode. See https://cloud.google.com/storage/docs/object-lock
for details.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectLockModeCompliance mode.static final ObjectLockModeGovernance mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectLockModeGet the ObjectLockMode for the given String constant, and allow unrecognized values.static ObjectLockModevalueOfStrict(String constant) Get the ObjectLockMode for the given String constant, and throw an exception if the constant is not recognized.static ObjectLockMode[]values()Return the known values for ObjectLockMode.Methods inherited from class com.google.cloud.StringEnumValue
equals, hashCode, name, toString
-
Field Details
-
GOVERNANCE
Governance mode. See https://cloud.google.com/storage/docs/object-lock for details.- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
COMPLIANCE
Compliance mode. See https://cloud.google.com/storage/docs/object-lock for details.- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
-
Method Details
-
valueOfStrict
Get the ObjectLockMode for the given String constant, and throw an exception if the constant is not recognized.- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
valueOf
Get the ObjectLockMode for the given String constant, and allow unrecognized values.- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
values
Return the known values for ObjectLockMode.- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-