Class SavedShow.Builder
- java.lang.Object
-
- se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
-
- se.michaelthelin.spotify.model_objects.specification.SavedShow.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- SavedShow
public static final class SavedShow.Builder extends AbstractModelObject.Builder
Builder class for buildingSavedShowinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SavedShowbuild()Build a model object with the information set in the builder object.SavedShow.BuildersetAddedAt(Date addedAt)Set the "added at" date of the saved show to be built.SavedShow.BuildersetShow(ShowSimplified show)Set the full show object of the saved show to be built.
-
-
-
Method Detail
-
setAddedAt
public SavedShow.Builder setAddedAt(Date addedAt)
Set the "added at" date of the saved show to be built.- Parameters:
addedAt- The date and time the show was saved.- Returns:
- A
SavedShow.Builder.
-
setShow
public SavedShow.Builder setShow(ShowSimplified show)
Set the full show object of the saved show to be built.- Parameters:
show- Information about the show.- Returns:
- A
SavedShow.Builder.
-
build
public SavedShow 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.
-
-