Class InsufficientPlan

java.lang.Object
com.dropbox.core.v2.sharing.InsufficientPlan

public class InsufficientPlan extends Object
  • Field Details

    • message

      @Nonnull protected final String message
    • upsellUrl

      @Nullable protected final String upsellUrl
  • Constructor Details

    • InsufficientPlan

      public InsufficientPlan(@Nonnull String message, @Nullable String upsellUrl)
      Parameters:
      message - A message to tell the user to upgrade in order to support expected action. Must not be null.
      upsellUrl - A URL to send the user to in order to obtain the account type they need, e.g. upgrading. Absent if there is no action the user can take to upgrade.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • InsufficientPlan

      public InsufficientPlan(@Nonnull String message)
      None

      The default values for unset fields will be used.

      Parameters:
      message - A message to tell the user to upgrade in order to support expected action. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getMessage

      @Nonnull public String getMessage()
      A message to tell the user to upgrade in order to support expected action.
      Returns:
      value for this field, never null.
    • getUpsellUrl

      @Nullable public String getUpsellUrl()
      A URL to send the user to in order to obtain the account type they need, e.g. upgrading. Absent if there is no action the user can take to upgrade.
      Returns:
      value for this field, or null if not present.
    • 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