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