Package com.dropbox.core.v2.teamlog
Class ContentDeletionProtectionChangePolicyDetails
java.lang.Object
com.dropbox.core.v2.teamlog.ContentDeletionProtectionChangePolicyDetails
Changed content deletion protection policy for team.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forContentDeletionProtectionChangePolicyDetails. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Longprotected final ContentDeletionProtectionPolicyprotected final Longprotected final ContentDeletionProtectionPolicy -
Constructor Summary
ConstructorsConstructorDescriptionChanged content deletion protection policy for team.ContentDeletionProtectionChangePolicyDetails(ContentDeletionProtectionPolicy newValue, Long newThresholdBytes, ContentDeletionProtectionPolicy previousValue, Long previousThresholdBytes) Changed content deletion protection policy for team. -
Method Summary
Modifier and TypeMethodDescriptionbooleanNew threshold value in bytes (only present when new policy is on_above_threshold).New content deletion protection policy.Previous threshold value in bytes (only present when previous policy was on_above_threshold).Previous content deletion protection policy.inthashCode()newBuilder(ContentDeletionProtectionPolicy newValue) 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
-
newValue
-
newThresholdBytes
-
previousValue
-
previousThresholdBytes
-
-
Constructor Details
-
ContentDeletionProtectionChangePolicyDetails
public ContentDeletionProtectionChangePolicyDetails(@Nonnull ContentDeletionProtectionPolicy newValue, @Nullable Long newThresholdBytes, @Nullable ContentDeletionProtectionPolicy previousValue, @Nullable Long previousThresholdBytes) Changed content deletion protection policy for team.Use
newBuilder(com.dropbox.core.v2.teamlog.ContentDeletionProtectionPolicy)to create instances of this class without specifying values for all optional fields.- Parameters:
newValue- New content deletion protection policy. Must not benull.newThresholdBytes- New threshold value in bytes (only present when new policy is on_above_threshold).previousValue- Previous content deletion protection policy. Might be missing due to historical data gap.previousThresholdBytes- Previous threshold value in bytes (only present when previous policy was on_above_threshold).- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
ContentDeletionProtectionChangePolicyDetails
public ContentDeletionProtectionChangePolicyDetails(@Nonnull ContentDeletionProtectionPolicy newValue) Changed content deletion protection policy for team.The default values for unset fields will be used.
- Parameters:
newValue- New content deletion protection policy. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getNewValue
New content deletion protection policy.- Returns:
- value for this field, never
null.
-
getNewThresholdBytes
New threshold value in bytes (only present when new policy is on_above_threshold).- Returns:
- value for this field, or
nullif not present.
-
getPreviousValue
Previous content deletion protection policy. Might be missing due to historical data gap.- Returns:
- value for this field, or
nullif not present.
-
getPreviousThresholdBytes
Previous threshold value in bytes (only present when previous policy was on_above_threshold).- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static ContentDeletionProtectionChangePolicyDetails.Builder newBuilder(ContentDeletionProtectionPolicy newValue) Returns a new builder for creating an instance of this class.- Parameters:
newValue- New content deletion protection policy. 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
-