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 boolean
equals(java.lang.Object obj)
java.lang.String
getMessage()
A message to tell the user to upgrade in order to support expected action.java.lang.String
getUpsellUrl()
A URL to send the user to in order to obtain the account type they need, e.g.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
InsufficientPlan
public InsufficientPlan(@Nonnull java.lang.String message, @Nullable 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(@Nonnull 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
@Nonnull 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
@Nullable 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
null
if not present.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-