Class SavedAlbum.Builder
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject.Builder
-
- com.wrapper.spotify.model_objects.specification.SavedAlbum.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- SavedAlbum
public static final class SavedAlbum.Builder extends AbstractModelObject.Builder
Builder class for buildingSavedAlbuminstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SavedAlbumbuild()Build a model object with the information set in the builder object.SavedAlbum.BuildersetAddedAt(Date addedAt)Set the "added at" date of the saved album to be built.SavedAlbum.BuildersetAlbum(Album album)Set the full album object of the saved album to be built.
-
-
-
Method Detail
-
setAddedAt
public SavedAlbum.Builder setAddedAt(Date addedAt)
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
public SavedAlbum.Builder setAlbum(Album album)
Set the full album object of the saved album to be built.- Parameters:
album- Information about the album.- Returns:
- A
SavedAlbum.Builder.
-
build
public SavedAlbum build()
Description copied from interface:IModelObject.BuilderBuild 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.
-
-