Class PlaylistTracksInformation.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.PlaylistTracksInformation.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
PlaylistTracksInformation
Builder class for building
PlaylistTracksInformation
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.Set href of Spotify Web API endpoint of the playlist tracks information object to be built.Set the total amount of tracks in the playlist.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setHref
Set href of Spotify Web API endpoint of the playlist tracks information object to be built.- Parameters:
href
- Spotify Web API endpoint URL.- Returns:
- A
PlaylistTracksInformation.Builder
.
-
setTotal
Set the total amount of tracks in the playlist.- Parameters:
total
- Total amount of tracks.- Returns:
- A
PlaylistTracksInformation.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.
-