Package com.dropbox.core.v2.team
Class LegalHoldPolicy.Builder
java.lang.Object
com.dropbox.core.v2.team.LegalHoldPolicy.Builder
- Enclosing class:
LegalHoldPolicy
Builder for
LegalHoldPolicy.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Stringprotected Dateprotected final Stringprotected final MembersInfoprotected final Stringprotected final Dateprotected final LegalHoldStatus -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofLegalHoldPolicyconfigured with this builder's valueswithActivationTime(Date activationTime) Set value for optional field.withDescription(String description) Set value for optional field.withEndDate(Date endDate) Set value for optional field.
-
Field Details
-
id
-
name
-
members
-
status
-
startDate
-
description
-
activationTime
-
endDate
-
-
Constructor Details
-
Builder
protected Builder(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate)
-
-
Method Details
-
withDescription
Set value for optional field.- Parameters:
description- A description of the legal hold policy. Must have length of at most 501.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withActivationTime
Set value for optional field.- Parameters:
activationTime- The time at which the legal hold was activated.- Returns:
- this builder
-
withEndDate
Set value for optional field.- Parameters:
endDate- End date of the legal hold policy.- Returns:
- this builder
-
build
Builds an instance ofLegalHoldPolicyconfigured with this builder's values- Returns:
- new instance of
LegalHoldPolicy
-