Package com.dropbox.core.v2.sharing
Class LinkAudienceOption
- java.lang.Object
-
- com.dropbox.core.v2.sharing.LinkAudienceOption
-
public class LinkAudienceOption extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowedprotected LinkAudienceaudienceprotected LinkAudienceDisallowedReasondisallowedReason
-
Constructor Summary
Constructors Constructor Description LinkAudienceOption(LinkAudience audience, boolean allowed)NoneLinkAudienceOption(LinkAudience audience, boolean allowed, LinkAudienceDisallowedReason disallowedReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetAllowed()Whether the user calling this API can select this audience option.LinkAudiencegetAudience()Specifies who can access the link.LinkAudienceDisallowedReasongetDisallowedReason()IfgetAllowed()isfalse, this will provide the reason that the user is not permitted to set the visibility to this policy.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
audience
protected final LinkAudience audience
-
allowed
protected final boolean allowed
-
disallowedReason
protected final LinkAudienceDisallowedReason disallowedReason
-
-
Constructor Detail
-
LinkAudienceOption
public LinkAudienceOption(LinkAudience audience, boolean allowed, 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:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
LinkAudienceOption
public LinkAudienceOption(LinkAudience audience, boolean allowed)
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:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getAudience
public LinkAudience 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
public LinkAudienceDisallowedReason 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()
- 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
-
-