Class Artist.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setGenres

        public Artist.Builder setGenres​(java.lang.String... genres)
        Set the genres of the artist to be built.
        Parameters:
        genres - Genre names.
        Returns:
        A Artist.Builder.
      • setHref

        public Artist.Builder setHref​(java.lang.String href)
        Set href of Spotify Web API endpoint of the artist to be built.
        Parameters:
        href - Spotify Web API endpoint URL.
        Returns:
        A Artist.Builder.
      • setImages

        public Artist.Builder setImages​(Image... images)
        Set the images of the artist to be built, like the header image.
        Parameters:
        images - Image objects.
        Returns:
        A Artist.Builder.
      • setName

        public Artist.Builder setName​(java.lang.String name)
        Set the name of the artist to be built.
        Parameters:
        name - The artist name.
        Returns:
        A Artist.Builder.
      • setPopularity

        public Artist.Builder setPopularity​(java.lang.Integer popularity)
        Set the popularity of the artist to be built.
        Parameters:
        popularity - The popularity of the artist between 0 and 100.
        Returns:
        A Artist.Builder.
      • build

        public Artist build()
        Description copied from interface: IModelObject.Builder
        Build a model object with the information set in the builder object.
        The type of the model object and its methods depend on its corresponding implementation.
        Returns:
        A model object.