Class Restrictions.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • setReason

      public Restrictions.Builder setReason(String reason)
      The restriction reason setter.
      Parameters:
      reason - The track restriction reason.
      Returns:
      A Restrictions.Builder.
    • build

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