Class Category.Builder
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
Builder class for building
Category
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.The category href setter.The category icon setter.The category ID setter.The category name setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setHref
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
The category icon setter.- Parameters:
icons
- The category icon, in various sizes.- Returns:
- A Category builder.
-
setId
The category ID setter.- Parameters:
id
- The Spotify category ID of the category.- Returns:
- A Category builder.
-
setName
The category name setter.- Parameters:
name
- The name of the category.- Returns:
- A Category builder.
-
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.
-