Package com.dropbox.core.v2.teamlog
Class GovernancePolicyAddFoldersDetails.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.GovernancePolicyAddFoldersDetails.Builder
-
- Enclosing class:
- GovernancePolicyAddFoldersDetails
public static class GovernancePolicyAddFoldersDetails.Builder extends java.lang.ObjectBuilder forGovernancePolicyAddFoldersDetails.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>foldersprotected java.lang.StringgovernancePolicyIdprotected java.lang.Stringnameprotected PolicyTypepolicyType
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String governancePolicyId, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GovernancePolicyAddFoldersDetailsbuild()Builds an instance ofGovernancePolicyAddFoldersDetailsconfigured with this builder's valuesGovernancePolicyAddFoldersDetails.BuilderwithFolders(java.util.List<java.lang.String> folders)Set value for optional field.GovernancePolicyAddFoldersDetails.BuilderwithPolicyType(PolicyType policyType)Set value for optional field.
-
-
-
Field Detail
-
governancePolicyId
protected final java.lang.String governancePolicyId
-
name
protected final java.lang.String name
-
policyType
protected PolicyType policyType
-
folders
protected java.util.List<java.lang.String> folders
-
-
Method Detail
-
withPolicyType
public GovernancePolicyAddFoldersDetails.Builder withPolicyType(PolicyType policyType)
Set value for optional field.- Parameters:
policyType- Policy type.- Returns:
- this builder
-
withFolders
public GovernancePolicyAddFoldersDetails.Builder withFolders(java.util.List<java.lang.String> folders)
Set value for optional field.- Parameters:
folders- Folders. Must not contain anullitem.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
build
public GovernancePolicyAddFoldersDetails build()
Builds an instance ofGovernancePolicyAddFoldersDetailsconfigured with this builder's values- Returns:
- new instance of
GovernancePolicyAddFoldersDetails
-
-