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