public static class LegalHoldPolicy.Builder
extends java.lang.Object
LegalHoldPolicy
.Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
activationTime |
protected java.lang.String |
description |
protected java.util.Date |
endDate |
protected java.lang.String |
id |
protected MembersInfo |
members |
protected java.lang.String |
name |
protected java.util.Date |
startDate |
protected LegalHoldStatus |
status |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String id,
java.lang.String name,
MembersInfo members,
LegalHoldStatus status,
java.util.Date startDate) |
Modifier and Type | Method and Description |
---|---|
LegalHoldPolicy |
build()
Builds an instance of
LegalHoldPolicy configured with this
builder's values |
LegalHoldPolicy.Builder |
withActivationTime(java.util.Date activationTime)
Set value for optional field.
|
LegalHoldPolicy.Builder |
withDescription(java.lang.String description)
Set value for optional field.
|
LegalHoldPolicy.Builder |
withEndDate(java.util.Date endDate)
Set value for optional field.
|
protected final java.lang.String id
protected final java.lang.String name
protected final MembersInfo members
protected final LegalHoldStatus status
protected final java.util.Date startDate
protected java.lang.String description
protected java.util.Date activationTime
protected java.util.Date endDate
protected Builder(java.lang.String id, java.lang.String name, MembersInfo members, LegalHoldStatus status, java.util.Date startDate)
public LegalHoldPolicy.Builder withDescription(java.lang.String description)
description
- A description of the legal hold policy. Must have
length of at most 501.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public LegalHoldPolicy.Builder withActivationTime(java.util.Date activationTime)
activationTime
- The time at which the legal hold was
activated.public LegalHoldPolicy.Builder withEndDate(java.util.Date endDate)
endDate
- End date of the legal hold policy.public LegalHoldPolicy build()
LegalHoldPolicy
configured with this
builder's valuesLegalHoldPolicy