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
Builder class for building
AuthenticationError
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.The error setter.setError_description
(String error_description) The error description setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setError
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
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
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.
-