Class InvalidInputErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InvalidInputErrorBuilder
- All Implemented Interfaces:
Builder<InvalidInputError>
InvalidInputErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidInputError invalidInputError = InvalidInputError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds InvalidInputError with checking for non-null required valuesbuilds InvalidInputError without checking for non-null required valuesDescription of the constraints that are not met by the request.Error-specific additional fields.Description of the constraints that are not met by the request.static InvalidInputErrorBuilder
of()
factory method for an instance of InvalidInputErrorBuilderstatic InvalidInputErrorBuilder
of
(InvalidInputError template) create builder for InvalidInputError instanceError-specific additional fields.
-
Constructor Details
-
InvalidInputErrorBuilder
public InvalidInputErrorBuilder()
-
-
Method Details
-
message
Description of the constraints that are not met by the request. For example,
"Invalid $propertyName. It may be a non-empty string up to $maxLength"
.- 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
-
getMessage
Description of the constraints that are not met by the request. For example,
"Invalid $propertyName. It may be a non-empty string up to $maxLength"
.- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds InvalidInputError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidInputError>
- Returns:
- InvalidInputError
-
buildUnchecked
builds InvalidInputError without checking for non-null required values- Returns:
- InvalidInputError
-
of
factory method for an instance of InvalidInputErrorBuilder- Returns:
- builder
-
of
create builder for InvalidInputError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-