Class ObjectLockMode
java.lang.Object
com.google.cloud.StringEnumValue
com.google.cloud.storage.multipartupload.model.ObjectLockMode
- All Implemented Interfaces:
Serializable
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
- 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
-
COMPLIANCE
Compliance mode. See https://cloud.google.com/storage/docs/object-lock for details.- Since:
- 2.60.0
-
-
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
-
valueOf
Get the ObjectLockMode for the given String constant, and allow unrecognized values.- Since:
- 2.60.0
-
values
Return the known values for ObjectLockMode.- Since:
- 2.60.0
-