java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.Category.Builder
All Implemented Interfaces:
IModelObject.Builder
Enclosing class:
Category

public static final class Category.Builder extends AbstractModelObject.Builder
Builder class for building Category instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setHref

      public Category.Builder setHref(String href)
      The category href setter.
      Parameters:
      href - A link to the Spotify Web API endpoint returning full details of the category.
      Returns:
      A Category builder.
    • setIcons

      public Category.Builder setIcons(Image... icons)
      The category icon setter.
      Parameters:
      icons - The category icon, in various sizes.
      Returns:
      A Category builder.
    • setId

      public Category.Builder setId(String id)
      The category ID setter.
      Parameters:
      id - The Spotify category ID of the category.
      Returns:
      A Category builder.
    • setName

      public Category.Builder setName(String name)
      The category name setter.
      Parameters:
      name - The name of the category.
      Returns:
      A Category builder.
    • build

      public Category 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.