Package com.dropbox.core.v2.teamlog
Class GovernancePolicyCreateDetails.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.GovernancePolicyCreateDetails.Builder
-
- Enclosing class:
- GovernancePolicyCreateDetails
public static class GovernancePolicyCreateDetails.Builder extends java.lang.Object
Builder forGovernancePolicyCreateDetails
.
-
-
Field Summary
Fields Modifier and Type Field Description protected DurationLogInfo
duration
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, DurationLogInfo duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GovernancePolicyCreateDetails
build()
Builds an instance ofGovernancePolicyCreateDetails
configured with this builder's valuesGovernancePolicyCreateDetails.Builder
withFolders(java.util.List<java.lang.String> folders)
Set value for optional field.GovernancePolicyCreateDetails.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
-
duration
protected final DurationLogInfo duration
-
policyType
protected PolicyType policyType
-
folders
protected java.util.List<java.lang.String> folders
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo duration)
-
-
Method Detail
-
withPolicyType
public GovernancePolicyCreateDetails.Builder withPolicyType(PolicyType policyType)
Set value for optional field.- Parameters:
policyType
- Policy type.- Returns:
- this builder
-
withFolders
public GovernancePolicyCreateDetails.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 GovernancePolicyCreateDetails build()
Builds an instance ofGovernancePolicyCreateDetails
configured with this builder's values- Returns:
- new instance of
GovernancePolicyCreateDetails
-
-