Package com.dropbox.core.v2.team
Class LegalHoldsUpdatePolicyBuilder
- java.lang.Object
-
- com.dropbox.core.v2.team.LegalHoldsUpdatePolicyBuilder
-
public class LegalHoldsUpdatePolicyBuilder extends java.lang.ObjectThe 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 LegalHoldPolicystart()Issues the request.LegalHoldsUpdatePolicyBuilderwithDescription(java.lang.String description)Set value for optional field.LegalHoldsUpdatePolicyBuilderwithMembers(java.util.List<java.lang.String> members)Set value for optional field.LegalHoldsUpdatePolicyBuilderwithName(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 anullitem.- 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.
-
-