Class ExtensionPredicateEvaluationFailedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ExtensionPredicateEvaluationFailedErrorBuilder
- All Implemented Interfaces:
Builder<ExtensionPredicateEvaluationFailedError>
public class ExtensionPredicateEvaluationFailedErrorBuilder
extends Object
implements Builder<ExtensionPredicateEvaluationFailedError>
ExtensionPredicateEvaluationFailedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionPredicateEvaluationFailedError extensionPredicateEvaluationFailedError = ExtensionPredicateEvaluationFailedError.builder()
.message("{message}")
.errorByExtension(errorByExtensionBuilder -> errorByExtensionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ExtensionPredicateEvaluationFailedError with checking for non-null required valuesbuilds ExtensionPredicateEvaluationFailedError without checking for non-null required valueserrorByExtension
(ErrorByExtension errorByExtension) Details about the API Extension that was involved in the error.Details about the API Extension that was involved in the error.Details about the API Extension that was involved in the error."The compared field $fieldName is not present."
Error-specific additional fields."The compared field $fieldName is not present."
of()
factory method for an instance of ExtensionPredicateEvaluationFailedErrorBuilderof
(ExtensionPredicateEvaluationFailedError template) create builder for ExtensionPredicateEvaluationFailedError instanceError-specific additional fields.Details about the API Extension that was involved in the error.
-
Constructor Details
-
ExtensionPredicateEvaluationFailedErrorBuilder
public ExtensionPredicateEvaluationFailedErrorBuilder()
-
-
Method Details
-
message
"The compared field $fieldName is not present."
- 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
-
errorByExtension
public ExtensionPredicateEvaluationFailedErrorBuilder errorByExtension(Function<ErrorByExtensionBuilder, ErrorByExtensionBuilder> builder) Details about the API Extension that was involved in the error.
- Parameters:
builder
- function to build the errorByExtension value- Returns:
- Builder
-
withErrorByExtension
public ExtensionPredicateEvaluationFailedErrorBuilder withErrorByExtension(Function<ErrorByExtensionBuilder, ErrorByExtension> builder) Details about the API Extension that was involved in the error.
- Parameters:
builder
- function to build the errorByExtension value- Returns:
- Builder
-
errorByExtension
public ExtensionPredicateEvaluationFailedErrorBuilder errorByExtension(ErrorByExtension errorByExtension) Details about the API Extension that was involved in the error.
- Parameters:
errorByExtension
- value to be set- Returns:
- Builder
-
getMessage
"The compared field $fieldName is not present."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getErrorByExtension
Details about the API Extension that was involved in the error.
- Returns:
- errorByExtension
-
build
builds ExtensionPredicateEvaluationFailedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ExtensionPredicateEvaluationFailedError>
- Returns:
- ExtensionPredicateEvaluationFailedError
-
buildUnchecked
builds ExtensionPredicateEvaluationFailedError without checking for non-null required values- Returns:
- ExtensionPredicateEvaluationFailedError
-
of
factory method for an instance of ExtensionPredicateEvaluationFailedErrorBuilder- Returns:
- builder
-
of
public static ExtensionPredicateEvaluationFailedErrorBuilder of(ExtensionPredicateEvaluationFailedError template) create builder for ExtensionPredicateEvaluationFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-