Package com.dropbox.core.v2.team
Class LegalHoldsCreatePolicyBuilder
- java.lang.Object
-
- com.dropbox.core.v2.team.LegalHoldsCreatePolicyBuilder
-
public class LegalHoldsCreatePolicyBuilder extends java.lang.Object
The request builder returned byDbxTeamTeamRequests.legalHoldsCreatePolicyBuilder(java.lang.String, java.util.List<java.lang.String>)
.Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
withDescription
public LegalHoldsCreatePolicyBuilder withDescription(java.lang.String description)
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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withStartDate
public LegalHoldsCreatePolicyBuilder withStartDate(java.util.Date startDate)
Set value for optional field.- Parameters:
startDate
- start date of the legal hold policy.- Returns:
- this builder
-
withEndDate
public LegalHoldsCreatePolicyBuilder withEndDate(java.util.Date endDate)
Set value for optional field.- Parameters:
endDate
- end date of the legal hold policy.- Returns:
- this builder
-
start
public LegalHoldPolicy start() throws LegalHoldsPolicyCreateErrorException, DbxException
Issues the request.
-
-