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 boolean
allowed
protected LinkAudience
audience
protected LinkAudienceDisallowedReason
disallowedReason
-
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 boolean
equals(java.lang.Object obj)
boolean
getAllowed()
Whether the user calling this API can select this audience option.LinkAudience
getAudience()
Specifies who can access the link.LinkAudienceDisallowedReason
getDisallowedReason()
IfgetAllowed()
isfalse
, this will provide the reason that the user is not permitted to set the visibility to this policy.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
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
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
-
-