Package com.dropbox.core.v2.team
Class LegalHoldsUpdatePolicyBuilder
- java.lang.Object
-
- com.dropbox.core.v2.team.LegalHoldsUpdatePolicyBuilder
-
public class LegalHoldsUpdatePolicyBuilder extends java.lang.Object
The request builder returned byDbxTeamTeamRequests.legalHoldsUpdatePolicyBuilder(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.LegalHoldsUpdatePolicyBuilder
withDescription(java.lang.String description)
Set value for optional field.LegalHoldsUpdatePolicyBuilder
withMembers(java.util.List<java.lang.String> members)
Set value for optional field.LegalHoldsUpdatePolicyBuilder
withName(java.lang.String name)
Set value for optional field.
-
-
-
Method Detail
-
withName
public LegalHoldsUpdatePolicyBuilder withName(java.lang.String name)
Set value for optional field.- Parameters:
name
- Policy new name. Must have length of at most 140.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withDescription
public LegalHoldsUpdatePolicyBuilder withDescription(java.lang.String description)
Set value for optional field.- Parameters:
description
- Policy new description. Must have length of at most 501.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withMembers
public LegalHoldsUpdatePolicyBuilder withMembers(java.util.List<java.lang.String> members)
Set value for optional field.- Parameters:
members
- List of team member IDs to apply the policy on. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
start
public LegalHoldPolicy start() throws LegalHoldsPolicyUpdateErrorException, DbxException
Issues the request.
-
-