Class ApiApp

java.lang.Object
com.dropbox.core.v2.team.ApiApp

public class ApiApp extends Object
Information on linked third party applications.
  • Field Details

    • appId

      @Nonnull protected final String appId
    • appName

      @Nonnull protected final String appName
    • publisher

      @Nullable protected final String publisher
    • publisherUrl

      @Nullable protected final String publisherUrl
    • linked

      @Nullable protected final Date linked
    • isAppFolder

      protected final boolean isAppFolder
  • Constructor Details

    • ApiApp

      public ApiApp(@Nonnull String appId, @Nonnull String appName, boolean isAppFolder, @Nullable String publisher, @Nullable String publisherUrl, @Nullable Date linked)
      Information on linked third party applications.

      Use newBuilder(java.lang.String,java.lang.String,boolean) to create instances of this class without specifying values for all optional fields.

      Parameters:
      appId - The application unique id. Must not be null.
      appName - The application name. Must not be null.
      isAppFolder - Whether the linked application uses a dedicated folder.
      publisher - The application publisher name.
      publisherUrl - The publisher's URL.
      linked - The time this application was linked.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • ApiApp

      public ApiApp(@Nonnull String appId, @Nonnull String appName, boolean isAppFolder)
      Information on linked third party applications.

      The default values for unset fields will be used.

      Parameters:
      appId - The application unique id. Must not be null.
      appName - The application name. Must not be null.
      isAppFolder - Whether the linked application uses a dedicated folder.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getAppId

      @Nonnull public String getAppId()
      The application unique id.
      Returns:
      value for this field, never null.
    • getAppName

      @Nonnull public String getAppName()
      The application name.
      Returns:
      value for this field, never null.
    • getIsAppFolder

      public boolean getIsAppFolder()
      Whether the linked application uses a dedicated folder.
      Returns:
      value for this field.
    • getPublisher

      @Nullable public String getPublisher()
      The application publisher name.
      Returns:
      value for this field, or null if not present.
    • getPublisherUrl

      @Nullable public String getPublisherUrl()
      The publisher's URL.
      Returns:
      value for this field, or null if not present.
    • getLinked

      @Nullable public Date getLinked()
      The time this application was linked.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static ApiApp.Builder newBuilder(String appId, String appName, boolean isAppFolder)
      Returns a new builder for creating an instance of this class.
      Parameters:
      appId - The application unique id. Must not be null.
      appName - The application name. Must not be null.
      isAppFolder - Whether the linked application uses a dedicated folder.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • 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