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