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 SummaryFields Modifier and Type Field Description protected booleanallowedprotected LinkAudienceaudienceprotected LinkAudienceDisallowedReasondisallowedReason
 - 
Constructor SummaryConstructors Constructor Description LinkAudienceOption(LinkAudience audience, boolean allowed)NoneLinkAudienceOption(LinkAudience audience, boolean allowed, LinkAudienceDisallowedReason disallowedReason)
 - 
Method SummaryAll 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- 
audienceprotected final LinkAudience audience 
 - 
allowedprotected final boolean allowed 
 - 
disallowedReasonprotected final LinkAudienceDisallowedReason disallowedReason 
 
- 
 - 
Constructor Detail- 
LinkAudienceOptionpublic LinkAudienceOption(LinkAudience audience, boolean allowed, LinkAudienceDisallowedReason disallowedReason) - Parameters:
- audience- Specifies who can access the link. Must not be- null.
- allowed- Whether the user calling this API can select this audience option.
- disallowedReason- If- getAllowed()is- false, 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.
 
 - 
LinkAudienceOptionpublic LinkAudienceOption(LinkAudience audience, boolean allowed) NoneThe default values for unset fields will be used. - Parameters:
- audience- Specifies who can access the link. Must not be- null.
- 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- 
getAudiencepublic LinkAudience getAudience() Specifies who can access the link.- Returns:
- value for this field, never null.
 
 - 
getAllowedpublic boolean getAllowed() Whether the user calling this API can select this audience option.- Returns:
- value for this field.
 
 - 
getDisallowedReasonpublic 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.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic 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
 
 
- 
 
-