Class ApiApp.Builder

  • Enclosing class:
    ApiApp

    public static class ApiApp.Builder
    extends java.lang.Object
    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 
      Modifier Constructor Description
      protected Builder​(java.lang.String appId, java.lang.String appName, boolean isAppFolder)  
    • Field Detail

      • appId

        protected final java.lang.String appId
      • appName

        protected final java.lang.String appName
      • isAppFolder

        protected final boolean isAppFolder
      • publisher

        protected java.lang.String publisher
      • publisherUrl

        protected java.lang.String publisherUrl
      • linked

        protected java.util.Date linked
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String appId,
                          java.lang.String appName,
                          boolean isAppFolder)
    • Method Detail

      • withPublisher

        public ApiApp.Builder withPublisher​(java.lang.String publisher)
        Set value for optional field.
        Parameters:
        publisher - The application publisher name.
        Returns:
        this builder
      • withPublisherUrl

        public ApiApp.Builder withPublisherUrl​(java.lang.String publisherUrl)
        Set value for optional field.
        Parameters:
        publisherUrl - The publisher's URL.
        Returns:
        this builder
      • withLinked

        public ApiApp.Builder withLinked​(java.util.Date linked)
        Set value for optional field.
        Parameters:
        linked - The time this application was linked.
        Returns:
        this builder
      • build

        public ApiApp build()
        Builds an instance of ApiApp configured with this builder's values
        Returns:
        new instance of ApiApp