public class LegalHoldsCreatePolicyBuilder
extends java.lang.Object
DbxTeamTeamRequests.legalHoldsCreatePolicyBuilder(java.lang.String, java.util.List<java.lang.String>)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
LegalHoldPolicy |
start()
Issues the request.
|
LegalHoldsCreatePolicyBuilder |
withDescription(java.lang.String description)
Set value for optional field.
|
LegalHoldsCreatePolicyBuilder |
withEndDate(java.util.Date endDate)
Set value for optional field.
|
LegalHoldsCreatePolicyBuilder |
withStartDate(java.util.Date startDate)
Set value for optional field.
|
public LegalHoldsCreatePolicyBuilder 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 LegalHoldsCreatePolicyBuilder withStartDate(java.util.Date startDate)
startDate
- start date of the legal hold policy.public LegalHoldsCreatePolicyBuilder withEndDate(java.util.Date endDate)
endDate
- end date of the legal hold policy.public LegalHoldPolicy start() throws LegalHoldsPolicyCreateErrorException, DbxException