Class SavedEpisode.Builder

java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.SavedEpisode.Builder
All Implemented Interfaces:
IModelObject.Builder
Enclosing class:
SavedEpisode

public static final class SavedEpisode.Builder extends AbstractModelObject.Builder
Builder class for building SavedEpisode instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setAddedAt

      public SavedEpisode.Builder setAddedAt(Date addedAt)
      Set the "added at" date of the saved episode to be built.
      Parameters:
      addedAt - The date and time the episode was saved.
      Returns:
      A SavedEpisode.Builder.
    • setEpisode

      public SavedEpisode.Builder setEpisode(Episode episode)
      Set the full episode object of the saved episode to be built.
      Parameters:
      episode - Information about the episode.
      Returns:
      A SavedEpisode.Builder.
    • build

      public SavedEpisode 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.