Package com.dropbox.core.v2.sharing
Class LinkPermission
java.lang.Object
com.dropbox.core.v2.sharing.LinkPermission
Permissions for actions that can be performed on a link.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LinkActionprotected final booleanprotected final PermissionDeniedReason -
Constructor Summary
ConstructorsConstructorDescriptionLinkPermission(LinkAction action, boolean allow) Permissions for actions that can be performed on a link.LinkPermission(LinkAction action, boolean allow, PermissionDeniedReason reason) Permissions for actions that can be performed on a link. -
Method Summary
-
Field Details
-
action
-
allow
protected final boolean allow -
reason
-
-
Constructor Details
-
LinkPermission
public LinkPermission(@Nonnull LinkAction action, boolean allow, @Nullable PermissionDeniedReason reason) Permissions for actions that can be performed on a link.- Parameters:
action- Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
LinkPermission
Permissions for actions that can be performed on a link.The default values for unset fields will be used.
- Parameters:
action- Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAction
- Returns:
- value for this field, never
null.
-
getAllow
public boolean getAllow()- Returns:
- value for this field.
-
getReason
- Returns:
- value for this field, or
nullif not present.
-
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
-