Class ContentDeletionProtectionChangePolicyDetails

java.lang.Object
com.dropbox.core.v2.teamlog.ContentDeletionProtectionChangePolicyDetails

public class ContentDeletionProtectionChangePolicyDetails extends Object
Changed content deletion protection policy for team.
  • Field Details

  • 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 be null.
      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 be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getNewValue

      @Nonnull public ContentDeletionProtectionPolicy getNewValue()
      New content deletion protection policy.
      Returns:
      value for this field, never null.
    • getNewThresholdBytes

      @Nullable public Long getNewThresholdBytes()
      New threshold value in bytes (only present when new policy is on_above_threshold).
      Returns:
      value for this field, or null if not present.
    • getPreviousValue

      @Nullable public ContentDeletionProtectionPolicy getPreviousValue()
      Previous content deletion protection policy. Might be missing due to historical data gap.
      Returns:
      value for this field, or null if not present.
    • getPreviousThresholdBytes

      @Nullable public Long getPreviousThresholdBytes()
      Previous threshold value in bytes (only present when previous policy was on_above_threshold).
      Returns:
      value for this field, or null if not present.
    • newBuilder

      Returns a new builder for creating an instance of this class.
      Parameters:
      newValue - New content deletion protection policy. Must not be null.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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