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

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

    • Builder

      public Builder()
  • Method Details

    • setStatus

      public Error.Builder setStatus(Integer status)
      The error HTTP status code setter.
      Parameters:
      status - The HTTP status code.
      Returns:
      A Error.Builder.
    • setMessage

      public Error.Builder setMessage(String message)
      The error message setter.
      Parameters:
      message - A short description of the cause of the error.
      Returns:
      A Error.Builder.
    • build

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