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