Class ObjectLockInfo.ObjectLockInfoBuilder
- java.lang.Object
-
- com.salesforce.multicloudj.blob.driver.ObjectLockInfo.ObjectLockInfoBuilder
-
- Enclosing class:
- ObjectLockInfo
public static class ObjectLockInfo.ObjectLockInfoBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectLockInfobuild()ObjectLockInfo.ObjectLockInfoBuilderlegalHold(boolean legalHold)Whether legal hold is currently applied.ObjectLockInfo.ObjectLockInfoBuildermode(RetentionMode mode)Retention mode: GOVERNANCE or COMPLIANCE.ObjectLockInfo.ObjectLockInfoBuilderretainUntilDate(Instant retainUntilDate)Date until which the object is retained.StringtoString()ObjectLockInfo.ObjectLockInfoBuilderuseEventBasedHold(Boolean useEventBasedHold)
-
-
-
Method Detail
-
mode
public ObjectLockInfo.ObjectLockInfoBuilder mode(RetentionMode mode)
Retention mode: GOVERNANCE or COMPLIANCE.- Returns:
this.
-
retainUntilDate
public ObjectLockInfo.ObjectLockInfoBuilder retainUntilDate(Instant retainUntilDate)
Date until which the object is retained.- Returns:
this.
-
legalHold
public ObjectLockInfo.ObjectLockInfoBuilder legalHold(boolean legalHold)
Whether legal hold is currently applied.- Returns:
this.
-
useEventBasedHold
public ObjectLockInfo.ObjectLockInfoBuilder useEventBasedHold(Boolean useEventBasedHold)
- Returns:
this.
-
build
public ObjectLockInfo build()
-
-