Package io.minio.messages
Class ObjectLockConfiguration
java.lang.Object
io.minio.messages.ObjectLockConfiguration
Object representation of request XML of PutObjectLockConfiguration
API and response XML of GetObjectLockConfiguration
API.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectLockConfiguration(RetentionMode mode, RetentionDuration duration) Constructs a new ObjectLockConfiguration object with given retention. -
Method Summary
-
Constructor Details
-
ObjectLockConfiguration
public ObjectLockConfiguration() -
ObjectLockConfiguration
public ObjectLockConfiguration(RetentionMode mode, RetentionDuration duration) throws IllegalArgumentException Constructs a new ObjectLockConfiguration object with given retention.- Throws:
IllegalArgumentException
-
-
Method Details
-
mode
Returns retention mode. -
duration
Returns retention duration.
-