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 valuesvalue of message}set the value to the messagestatic 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
set the value to the message- Parameters:
message
- value to be set- Returns:
- Builder
-
getMessage
value of message}- 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
-