Class ApiApp


  • public class ApiApp
    extends java.lang.Object
    Information on linked third party applications.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ApiApp.Builder
      Builder for ApiApp.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String appId  
      protected java.lang.String appName  
      protected boolean isAppFolder  
      protected java.util.Date linked  
      protected java.lang.String publisher  
      protected java.lang.String publisherUrl  
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiApp​(java.lang.String appId, java.lang.String appName, boolean isAppFolder)
      Information on linked third party applications.
      ApiApp​(java.lang.String appId, java.lang.String appName, boolean isAppFolder, java.lang.String publisher, java.lang.String publisherUrl, java.util.Date linked)
      Information on linked third party applications.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAppId()
      The application unique id.
      java.lang.String getAppName()
      The application name.
      boolean getIsAppFolder()
      Whether the linked application uses a dedicated folder.
      java.util.Date getLinked()
      The time this application was linked.
      java.lang.String getPublisher()
      The application publisher name.
      java.lang.String getPublisherUrl()
      The publisher's URL.
      int hashCode()  
      static ApiApp.Builder newBuilder​(java.lang.String appId, java.lang.String appName, boolean isAppFolder)
      Returns a new builder for creating an instance of this class.
      java.lang.String toString()  
      java.lang.String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • appId

        protected final java.lang.String appId
      • appName

        protected final java.lang.String appName
      • publisher

        protected final java.lang.String publisher
      • publisherUrl

        protected final java.lang.String publisherUrl
      • linked

        protected final java.util.Date linked
      • isAppFolder

        protected final boolean isAppFolder
    • Constructor Detail

      • ApiApp

        public ApiApp​(java.lang.String appId,
                      java.lang.String appName,
                      boolean isAppFolder,
                      java.lang.String publisher,
                      java.lang.String publisherUrl,
                      java.util.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • ApiApp

        public ApiApp​(java.lang.String appId,
                      java.lang.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getAppId

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

        public java.lang.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

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

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

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

        public static ApiApp.Builder newBuilder​(java.lang.String appId,
                                                java.lang.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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