Package com.dropbox.core.v2.sharing
Class InsufficientPlan
- java.lang.Object
-
- com.dropbox.core.v2.sharing.InsufficientPlan
-
public class InsufficientPlan extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InsufficientPlan(java.lang.String message)NoneInsufficientPlan(java.lang.String message, java.lang.String upsellUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetMessage()A message to tell the user to upgrade in order to support expected action.java.lang.StringgetUpsellUrl()A URL to send the user to in order to obtain the account type they need, e.g.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
InsufficientPlan
public InsufficientPlan(java.lang.String message, java.lang.String upsellUrl)- Parameters:
message- A message to tell the user to upgrade in order to support expected action. Must not benull.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:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
InsufficientPlan
public InsufficientPlan(java.lang.String message)
NoneThe 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 benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
A message to tell the user to upgrade in order to support expected action.- Returns:
- value for this field, never
null.
-
getUpsellUrl
public java.lang.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
nullif not present.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public 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
-
-