Package com.dropbox.core.v2.teamlog
Class GovernancePolicyCreateDetails
- java.lang.Object
- 
- com.dropbox.core.v2.teamlog.GovernancePolicyCreateDetails
 
- 
 public class GovernancePolicyCreateDetails extends java.lang.ObjectActivated a new policy.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGovernancePolicyCreateDetails.BuilderBuilder forGovernancePolicyCreateDetails.
 - 
Field SummaryFields Modifier and Type Field Description protected DurationLogInfodurationprotected java.util.List<java.lang.String>foldersprotected java.lang.StringgovernancePolicyIdprotected java.lang.Stringnameprotected PolicyTypepolicyType
 - 
Constructor SummaryConstructors Constructor Description GovernancePolicyCreateDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo duration)Activated a new policy.GovernancePolicyCreateDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo duration, PolicyType policyType, java.util.List<java.lang.String> folders)Activated a new policy.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)DurationLogInfogetDuration()Duration in days.java.util.List<java.lang.String>getFolders()Folders.java.lang.StringgetGovernancePolicyId()Policy ID.java.lang.StringgetName()Policy name.PolicyTypegetPolicyType()Policy type.inthashCode()static GovernancePolicyCreateDetails.BuildernewBuilder(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo duration)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
governancePolicyIdprotected final java.lang.String governancePolicyId 
 - 
nameprotected final java.lang.String name 
 - 
policyTypeprotected final PolicyType policyType 
 - 
durationprotected final DurationLogInfo duration 
 - 
foldersprotected final java.util.List<java.lang.String> folders 
 
- 
 - 
Constructor Detail- 
GovernancePolicyCreateDetailspublic GovernancePolicyCreateDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo duration, PolicyType policyType, java.util.List<java.lang.String> folders)Activated a new policy.Use newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.teamlog.DurationLogInfo)to create instances of this class without specifying values for all optional fields.- Parameters:
- governancePolicyId- Policy ID. Must not be- null.
- name- Policy name. Must not be- null.
- duration- Duration in days. Must not be- null.
- policyType- Policy type.
- folders- Folders. Must not contain a- nullitem.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
GovernancePolicyCreateDetailspublic GovernancePolicyCreateDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo duration)Activated a new policy.The default values for unset fields will be used. - Parameters:
- governancePolicyId- Policy ID. Must not be- null.
- name- Policy name. Must not be- null.
- duration- Duration in days. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getGovernancePolicyIdpublic java.lang.String getGovernancePolicyId() Policy ID.- Returns:
- value for this field, never null.
 
 - 
getNamepublic java.lang.String getName() Policy name.- Returns:
- value for this field, never null.
 
 - 
getDurationpublic DurationLogInfo getDuration() Duration in days.- Returns:
- value for this field, never null.
 
 - 
getPolicyTypepublic PolicyType getPolicyType() Policy type.- Returns:
- value for this field, or nullif not present.
 
 - 
getFolderspublic java.util.List<java.lang.String> getFolders() Folders.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static GovernancePolicyCreateDetails.Builder newBuilder(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo duration) Returns a new builder for creating an instance of this class.- Parameters:
- governancePolicyId- Policy ID. Must not be- null.
- name- Policy name. Must not be- null.
- duration- Duration in days. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-