Package com.dropbox.core.v2.sharing
Class LinkAudienceOption
java.lang.Object
com.dropbox.core.v2.sharing.LinkAudienceOption
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final LinkAudienceprotected final LinkAudienceDisallowedReason -
Constructor Summary
ConstructorsConstructorDescriptionLinkAudienceOption(LinkAudience audience, boolean allowed) NoneLinkAudienceOption(LinkAudience audience, boolean allowed, LinkAudienceDisallowedReason disallowedReason) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether the user calling this API can select this audience option.Specifies who can access the link.IfgetAllowed()isfalse, this will provide the reason that the user is not permitted to set the visibility to this policy.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
audience
-
allowed
protected final boolean allowed -
disallowedReason
-
-
Constructor Details
-
LinkAudienceOption
public LinkAudienceOption(@Nonnull LinkAudience audience, boolean allowed, @Nullable LinkAudienceDisallowedReason disallowedReason) - Parameters:
audience- Specifies who can access the link. Must not benull.allowed- Whether the user calling this API can select this audience option.disallowedReason- IfgetAllowed()isfalse, this will provide the reason that the user is not permitted to set the visibility to this policy.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
LinkAudienceOption
NoneThe default values for unset fields will be used.
- Parameters:
audience- Specifies who can access the link. Must not benull.allowed- Whether the user calling this API can select this audience option.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAudience
Specifies who can access the link.- Returns:
- value for this field, never
null.
-
getAllowed
public boolean getAllowed()Whether the user calling this API can select this audience option.- Returns:
- value for this field.
-
getDisallowedReason
IfgetAllowed()isfalse, this will provide the reason that the user is not permitted to set the visibility to this policy.- 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
-