Package com.dropbox.core.v2.teamlog
Class GovernancePolicyEditDurationDetails
- java.lang.Object
- 
- com.dropbox.core.v2.teamlog.GovernancePolicyEditDurationDetails
 
- 
 public class GovernancePolicyEditDurationDetails extends java.lang.ObjectChanged policy duration.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringgovernancePolicyIdprotected java.lang.Stringnameprotected DurationLogInfonewValueprotected PolicyTypepolicyTypeprotected DurationLogInfopreviousValue
 - 
Constructor SummaryConstructors Constructor Description GovernancePolicyEditDurationDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo previousValue, DurationLogInfo newValue)Changed policy duration.GovernancePolicyEditDurationDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo previousValue, DurationLogInfo newValue, PolicyType policyType)Changed policy duration.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetGovernancePolicyId()Policy ID.java.lang.StringgetName()Policy name.DurationLogInfogetNewValue()To.PolicyTypegetPolicyType()Policy type.DurationLogInfogetPreviousValue()From.inthashCode()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 
 - 
previousValueprotected final DurationLogInfo previousValue 
 - 
newValueprotected final DurationLogInfo newValue 
 
- 
 - 
Constructor Detail- 
GovernancePolicyEditDurationDetailspublic GovernancePolicyEditDurationDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo previousValue, DurationLogInfo newValue, PolicyType policyType)Changed policy duration.- Parameters:
- governancePolicyId- Policy ID. Must not be- null.
- name- Policy name. Must not be- null.
- previousValue- From. Must not be- null.
- newValue- To. Must not be- null.
- policyType- Policy type.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
GovernancePolicyEditDurationDetailspublic GovernancePolicyEditDurationDetails(java.lang.String governancePolicyId, java.lang.String name, DurationLogInfo previousValue, DurationLogInfo newValue)Changed policy duration.The default values for unset fields will be used. - Parameters:
- governancePolicyId- Policy ID. Must not be- null.
- name- Policy name. Must not be- null.
- previousValue- From. Must not be- null.
- newValue- To. 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.
 
 - 
getPreviousValuepublic DurationLogInfo getPreviousValue() From.- Returns:
- value for this field, never null.
 
 - 
getNewValuepublic DurationLogInfo getNewValue() To.- Returns:
- value for this field, never null.
 
 - 
getPolicyTypepublic PolicyType getPolicyType() Policy type.- Returns:
- value for this field, or nullif not present.
 
 - 
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
 
 
- 
 
-