Class ExternalOAuthFailedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ExternalOAuthFailedErrorBuilder
- All Implemented Interfaces:
Builder<ExternalOAuthFailedError>
public class ExternalOAuthFailedErrorBuilder
extends Object
implements Builder<ExternalOAuthFailedError>
ExternalOAuthFailedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExternalOAuthFailedError externalOAuthFailedError = ExternalOAuthFailedError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ExternalOAuthFailedError with checking for non-null required valuesbuilds ExternalOAuthFailedError without checking for non-null required valuesPlain text description detailing the external OAuth error.Error-specific additional fields.Plain text description detailing the external OAuth error.of()
factory method for an instance of ExternalOAuthFailedErrorBuilderof
(ExternalOAuthFailedError template) create builder for ExternalOAuthFailedError instanceError-specific additional fields.
-
Constructor Details
-
ExternalOAuthFailedErrorBuilder
public ExternalOAuthFailedErrorBuilder()
-
-
Method Details
-
message
Plain text description detailing the external OAuth error. For example,
"External OAuth did not respond in time."
.- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getMessage
Plain text description detailing the external OAuth error. For example,
"External OAuth did not respond in time."
.- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds ExternalOAuthFailedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ExternalOAuthFailedError>
- Returns:
- ExternalOAuthFailedError
-
buildUnchecked
builds ExternalOAuthFailedError without checking for non-null required values- Returns:
- ExternalOAuthFailedError
-
of
factory method for an instance of ExternalOAuthFailedErrorBuilder- Returns:
- builder
-
of
create builder for ExternalOAuthFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-