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