Class SavedAlbum.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.SavedAlbum.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
SavedAlbum
Builder class for building
SavedAlbum
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setAddedAt
(Date addedAt) Set the "added at" date of the saved album to be built.Set the full album object of the saved album to be built.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAddedAt
Set the "added at" date of the saved album to be built.- Parameters:
addedAt
- The date and time the album was saved.- Returns:
- A
SavedAlbum.Builder
.
-
setAlbum
Set the full album object of the saved album to be built.- Parameters:
album
- Information about the album.- Returns:
- A
SavedAlbum.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.
-