Class SavedTrack.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • setAddedAt

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

      public SavedTrack.Builder setTrack(Track track)
      Set the full track object of the saved track to be built.
      Parameters:
      track - Information about the track.
      Returns:
      A SavedTrack.Builder.
    • build

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