Class Search

    • Constructor Detail

      • Search

        public Search()
        No-arg constructor.
      • Search

        public Search​(String term)
        Constructor.
        Parameters:
        term - word or phrase to search for, String, can be null
    • Method Detail

      • getTerm

        public String getTerm()
        Returns:
        String instance, or null
      • setTerm

        public Search setTerm​(String term)
        Parameters:
        term - word or phrase to search for, String, can be null
        Returns:
        this instance for method chaining
      • getCountry

        public Country getCountry()
        Returns:
        Country instance, or null
      • setCountry

        public Search setCountry​(Country country)
        Parameters:
        country - Country, can be null
        Returns:
        this instance for method chaining
      • getMedia

        public Media getMedia()
        Returns:
        Media instance, or null
      • setMedia

        public Search setMedia​(Media media)
        Parameters:
        media - Media, can be null
        Returns:
        this instance for method chaining
      • getEntity

        public Entity getEntity()
        Returns:
        Entity instance, or null
      • setEntity

        public Search setEntity​(Entity entity)
        Parameters:
        entity - Entity, can be null
        Returns:
        this instance for method chaining
      • setAttribute

        public Search setAttribute​(Attribute attribute)
        Parameters:
        attribute - Attribute, can be null
        Returns:
        this instance for method chaining
      • getLimit

        public Integer getLimit()
        Returns:
        Integer instance, or null
      • setLimit

        public Search setLimit​(int limit)
        The number of search results you want the iTunes Store to return. For example: 25. The default is 50. Valid between 1 and 200.
        Parameters:
        limit - int between 1 (inclusive) and 200 (inclusive)
        Returns:
        this instance for method chaining
        Throws:
        IllegalArgumentException - if limit not valid
      • getLang

        public Lang getLang()
        Returns:
        Lang instance, or null
      • setLang

        public Search setLang​(Lang lang)
        Parameters:
        lang - Lang, can be null
        Returns:
        this instance for method chaining
      • getVersion

        public Integer getVersion()
        Returns:
        Integer instance, or null
      • setVersion

        public Search setVersion​(int version)
        The search result key version you want to receive back from your search. The default is 2. Valid are 1 or 2
        Parameters:
        version - int 1 or 2
        Returns:
        this instance for method chaining
        Throws:
        IllegalArgumentException - if version not valid
      • isExplicit

        public Boolean isExplicit()
        Returns:
        Boolean instance, or null
      • setExplicit

        public Search setExplicit​(boolean explicit)
        Parameters:
        explicit - boolean indicating whether or not to include explicit results
        Returns:
        this instance for method chaining