Package com.dropbox.core.v2.teamlog
Class GovernancePolicyCreateDetails
java.lang.Object
com.dropbox.core.v2.teamlog.GovernancePolicyCreateDetails
Activated a new policy.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DurationLogInfoprotected final Stringprotected final Stringprotected final PolicyType -
Constructor Summary
ConstructorsConstructorDescriptionGovernancePolicyCreateDetails(String governancePolicyId, String name, DurationLogInfo duration) Activated a new policy.GovernancePolicyCreateDetails(String governancePolicyId, String name, DurationLogInfo duration, PolicyType policyType, List<String> folders) Activated a new policy. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDuration in days.Folders.Policy ID.getName()Policy name.Policy type.inthashCode()newBuilder(String governancePolicyId, String name, DurationLogInfo duration) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
governancePolicyId
-
name
-
policyType
-
duration
-
folders
-
-
Constructor Details
-
GovernancePolicyCreateDetails
public GovernancePolicyCreateDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo duration, @Nullable PolicyType policyType, @Nullable List<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 benull.name- Policy name. Must not benull.duration- Duration in days. Must not benull.policyType- Policy type.folders- Folders. Must not contain anullitem.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
GovernancePolicyCreateDetails
public GovernancePolicyCreateDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo duration) Activated a new policy.The default values for unset fields will be used.
- Parameters:
governancePolicyId- Policy ID. Must not benull.name- Policy name. Must not benull.duration- Duration in days. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getGovernancePolicyId
Policy ID.- Returns:
- value for this field, never
null.
-
getName
Policy name.- Returns:
- value for this field, never
null.
-
getDuration
Duration in days.- Returns:
- value for this field, never
null.
-
getPolicyType
Policy type.- Returns:
- value for this field, or
nullif not present.
-
getFolders
Folders.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static GovernancePolicyCreateDetails.Builder newBuilder(String governancePolicyId, String name, DurationLogInfo duration) Returns a new builder for creating an instance of this class.- Parameters:
governancePolicyId- Policy ID. Must not benull.name- Policy name. Must not benull.duration- Duration in days. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-