Class InvalidTokenErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.InvalidTokenErrorBuilder
- All Implemented Interfaces:
Builder<InvalidTokenError>
InvalidTokenErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidTokenError invalidTokenError = InvalidTokenError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InvalidTokenError with checking for non-null required valuesbuilds InvalidTokenError without checking for non-null required valuesA plain language description of the cause of an error.A plain language description of the cause of an error.static InvalidTokenErrorBuilder
of()
factory method for an instance of InvalidTokenErrorBuilderstatic InvalidTokenErrorBuilder
of
(InvalidTokenError template) create builder for InvalidTokenError instance
-
Constructor Details
-
InvalidTokenErrorBuilder
public InvalidTokenErrorBuilder()
-
-
Method Details
-
message
A plain language description of the cause of an error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
getMessage
A plain language description of the cause of an error.
- Returns:
- message
-
build
builds InvalidTokenError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidTokenError>
- Returns:
- InvalidTokenError
-
buildUnchecked
builds InvalidTokenError without checking for non-null required values- Returns:
- InvalidTokenError
-
of
factory method for an instance of InvalidTokenErrorBuilder- Returns:
- builder
-
of
create builder for InvalidTokenError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-