Class AuthenticationError.Builder
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject.Builder
-
- com.wrapper.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 buildingAuthenticationErrorinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationErrorbuild()Build a model object with the information set in the builder object.AuthenticationError.BuildersetError(String error)The error setter.AuthenticationError.BuildersetError_description(String error_description)The error description setter.
-
-
-
Method Detail
-
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.BuilderBuild 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.
-
-