Class AuthenticationError.Builder

java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.credentials.error.AuthenticationError.Builder
All Implemented Interfaces:
IModelObject.Builder
Enclosing class:
AuthenticationError

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

    • Builder

      public Builder()
  • Method Details

    • setError

      public AuthenticationError.Builder setError(String error)
      The error setter.
      Parameters:
      error - A high level description of the error as specified in RFC 6749 Section 5.2.
      Returns:
      An AuthenticationError.Builder.
    • setError_description

      public AuthenticationError.Builder setError_description(String error_description)
      The error description setter.
      Parameters:
      error_description - A more detailed description of the error as specified in RFC 6749 Section 4.1.2.1.
      Returns:
      An AuthenticationError.Builder.
    • build

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