Class RecommendationsSeed.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.RecommendationsSeed.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
RecommendationsSeed
Builder class for building
RecommendationsSeed
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setAfterFilteringSize
(Integer afterFilteringSize) The after filtering size setter.setAfterRelinkingSize
(Integer afterRelinkingSize) The after relinking size setter.The href setter.The ID setter.setInitialPoolSize
(Integer initialPoolSize) The initial pool size setter.setType
(ModelObjectType type) The model object type setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAfterFilteringSize
The after filtering size setter.- Parameters:
afterFilteringSize
- The number of tracks available aftermin_*
andmax_*
filters have been applied.- Returns:
- A
RecommendationsSeed.Builder
.
-
setAfterRelinkingSize
The after relinking size setter.- Parameters:
afterRelinkingSize
- The number of tracks available after relinking for regional availability.- Returns:
- A
RecommendationsSeed.Builder
.
-
setHref
The href setter.- Parameters:
href
- A link to the full track or artist data for this seed. For tracks this will be a link to aTrack
object. For artists a link to anArtist
Object. For genre seeds, this value will benull
.- Returns:
- A
RecommendationsSeed.Builder
.
-
setId
The ID setter.- Parameters:
id
- The ID used to select this seed. This will be the same as the string used in theseed_artists
,seed_tracks
orseed_genres
request parameter.- Returns:
- A
RecommendationsSeed.Builder
.
-
setInitialPoolSize
The initial pool size setter.- Parameters:
initialPoolSize
- The number of recommended tracks available for this seed.- Returns:
- A
RecommendationsSeed.Builder
.
-
setType
The model object type setter.- Parameters:
type
- The model object type of this seed. One ofartist
,track
orgenre
.- Returns:
- A
RecommendationsSeed.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.
-