Class InvalidJsonInputErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InvalidJsonInputErrorBuilder
- All Implemented Interfaces:
Builder<InvalidJsonInputError>
InvalidJsonInputErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidJsonInputError invalidJsonInputError = InvalidJsonInputError.builder()
.message("{message}")
.detailedErrorMessage("{detailedErrorMessage}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds InvalidJsonInputError with checking for non-null required valuesbuilds InvalidJsonInputError without checking for non-null required valuesdetailedErrorMessage
(String detailedErrorMessage) Further explanation about why the JSON is invalid.Further explanation about why the JSON is invalid."Request body does not contain valid JSON."
Error-specific additional fields."Request body does not contain valid JSON."
static InvalidJsonInputErrorBuilder
of()
factory method for an instance of InvalidJsonInputErrorBuilderstatic InvalidJsonInputErrorBuilder
of
(InvalidJsonInputError template) create builder for InvalidJsonInputError instanceError-specific additional fields.
-
Constructor Details
-
InvalidJsonInputErrorBuilder
public InvalidJsonInputErrorBuilder()
-
-
Method Details
-
message
"Request body does not contain valid JSON."
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
detailedErrorMessage
Further explanation about why the JSON is invalid.
- Parameters:
detailedErrorMessage
- value to be set- Returns:
- Builder
-
getMessage
"Request body does not contain valid JSON."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getDetailedErrorMessage
Further explanation about why the JSON is invalid.
- Returns:
- detailedErrorMessage
-
build
builds InvalidJsonInputError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidJsonInputError>
- Returns:
- InvalidJsonInputError
-
buildUnchecked
builds InvalidJsonInputError without checking for non-null required values- Returns:
- InvalidJsonInputError
-
of
factory method for an instance of InvalidJsonInputErrorBuilder- Returns:
- builder
-
of
create builder for InvalidJsonInputError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-