Class GraphQLExtensionPredicateEvaluationFailedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLExtensionPredicateEvaluationFailedErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLExtensionPredicateEvaluationFailedError>
public class GraphQLExtensionPredicateEvaluationFailedErrorBuilder
extends Object
implements Builder<GraphQLExtensionPredicateEvaluationFailedError>
GraphQLExtensionPredicateEvaluationFailedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLExtensionPredicateEvaluationFailedError graphQLExtensionPredicateEvaluationFailedError = GraphQLExtensionPredicateEvaluationFailedError.builder()
.errorByExtension(errorByExtensionBuilder -> errorByExtensionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLExtensionPredicateEvaluationFailedError with checking for non-null required valuesbuilds GraphQLExtensionPredicateEvaluationFailedError 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.Error-specific additional fields.of()
factory method for an instance of GraphQLExtensionPredicateEvaluationFailedErrorBuildercreate builder for GraphQLExtensionPredicateEvaluationFailedError instanceError-specific additional fields.Details about the API Extension that was involved in the error.
-
Constructor Details
-
GraphQLExtensionPredicateEvaluationFailedErrorBuilder
public GraphQLExtensionPredicateEvaluationFailedErrorBuilder()
-
-
Method Details
-
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 GraphQLExtensionPredicateEvaluationFailedErrorBuilder 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 GraphQLExtensionPredicateEvaluationFailedErrorBuilder 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 GraphQLExtensionPredicateEvaluationFailedErrorBuilder errorByExtension(ErrorByExtension errorByExtension) Details about the API Extension that was involved in the error.
- Parameters:
errorByExtension
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getErrorByExtension
Details about the API Extension that was involved in the error.
- Returns:
- errorByExtension
-
build
builds GraphQLExtensionPredicateEvaluationFailedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLExtensionPredicateEvaluationFailedError>
- Returns:
- GraphQLExtensionPredicateEvaluationFailedError
-
buildUnchecked
builds GraphQLExtensionPredicateEvaluationFailedError without checking for non-null required values- Returns:
- GraphQLExtensionPredicateEvaluationFailedError
-
of
factory method for an instance of GraphQLExtensionPredicateEvaluationFailedErrorBuilder- Returns:
- builder
-
of
public static GraphQLExtensionPredicateEvaluationFailedErrorBuilder of(GraphQLExtensionPredicateEvaluationFailedError template) create builder for GraphQLExtensionPredicateEvaluationFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-