Class ContentionErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.ContentionErrorBuilder
- All Implemented Interfaces:
Builder<ContentionError>
ContentionErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ContentionError contentionError = ContentionError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ContentionError with checking for non-null required valuesbuilds ContentionError 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 ContentionErrorBuilder
of()
factory method for an instance of ContentionErrorBuilderstatic ContentionErrorBuilder
of
(ContentionError template) create builder for ContentionError instance
-
Constructor Details
-
ContentionErrorBuilder
public ContentionErrorBuilder()
-
-
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 ContentionError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ContentionError>
- Returns:
- ContentionError
-
buildUnchecked
builds ContentionError without checking for non-null required values- Returns:
- ContentionError
-
of
factory method for an instance of ContentionErrorBuilder- Returns:
- builder
-
of
create builder for ContentionError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-