Class AudienceRestrictingSharedFolder

java.lang.Object
com.dropbox.core.v2.sharing.AudienceRestrictingSharedFolder

public class AudienceRestrictingSharedFolder extends Object
Information about the shared folder that prevents the link audience for this link from being more restrictive.
  • Field Details

    • sharedFolderId

      @Nonnull protected final String sharedFolderId
    • name

      @Nonnull protected final String name
    • audience

      @Nonnull protected final LinkAudience audience
  • Constructor Details

    • AudienceRestrictingSharedFolder

      public AudienceRestrictingSharedFolder(@Nonnull String sharedFolderId, @Nonnull String name, @Nonnull LinkAudience audience)
      Information about the shared folder that prevents the link audience for this link from being more restrictive.
      Parameters:
      sharedFolderId - The ID of the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not be null.
      name - The name of the shared folder. Must not be null.
      audience - The link audience of the shared folder. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getSharedFolderId

      @Nonnull public String getSharedFolderId()
      The ID of the shared folder.
      Returns:
      value for this field, never null.
    • getName

      @Nonnull public String getName()
      The name of the shared folder.
      Returns:
      value for this field, never null.
    • getAudience

      @Nonnull public LinkAudience getAudience()
      The link audience of the shared folder.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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