Package com.dropbox.core.v2.teamlog
Class GovernancePolicyRemoveFoldersDetails.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.GovernancePolicyRemoveFoldersDetails.Builder
-
- Enclosing class:
- GovernancePolicyRemoveFoldersDetails
public static class GovernancePolicyRemoveFoldersDetails.Builder extends java.lang.Object
Builder forGovernancePolicyRemoveFoldersDetails
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
folders
protected java.lang.String
governancePolicyId
protected java.lang.String
name
protected PolicyType
policyType
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String governancePolicyId, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GovernancePolicyRemoveFoldersDetails
build()
Builds an instance ofGovernancePolicyRemoveFoldersDetails
configured with this builder's valuesGovernancePolicyRemoveFoldersDetails.Builder
withFolders(java.util.List<java.lang.String> folders)
Set value for optional field.GovernancePolicyRemoveFoldersDetails.Builder
withPolicyType(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 GovernancePolicyRemoveFoldersDetails.Builder withPolicyType(PolicyType policyType)
Set value for optional field.- Parameters:
policyType
- Policy type.- Returns:
- this builder
-
withFolders
public GovernancePolicyRemoveFoldersDetails.Builder withFolders(java.util.List<java.lang.String> folders)
Set value for optional field.- Parameters:
folders
- Folders. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public GovernancePolicyRemoveFoldersDetails build()
Builds an instance ofGovernancePolicyRemoveFoldersDetails
configured with this builder's values- Returns:
- new instance of
GovernancePolicyRemoveFoldersDetails
-
-