Class SharedLink

java.lang.Object
com.dropbox.core.v2.files.SharedLink

public class SharedLink extends Object
  • Field Details

    • url

      @Nonnull protected final String url
    • password

      @Nullable protected final String password
  • Constructor Details

    • SharedLink

      public SharedLink(@Nonnull String url, @Nullable String password)
      Parameters:
      url - Shared link url. Must not be null.
      password - Password for the shared link.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • SharedLink

      public SharedLink(@Nonnull String url)
      None

      The default values for unset fields will be used.

      Parameters:
      url - Shared link url. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getUrl

      @Nonnull public String getUrl()
      Shared link url.
      Returns:
      value for this field, never null.
    • getPassword

      @Nullable public String getPassword()
      Password for the shared link.
      Returns:
      value for this field, or null if not present.
    • 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