Class GraphQLGeneralErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLGeneralErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLGeneralError>
GraphQLGeneralErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLGeneralError graphQLGeneralError = GraphQLGeneralError.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLGeneralError with checking for non-null required valuesbuilds GraphQLGeneralError without checking for non-null required valuesError-specific additional fields.static GraphQLGeneralErrorBuilder
of()
factory method for an instance of GraphQLGeneralErrorBuilderstatic GraphQLGeneralErrorBuilder
of
(GraphQLGeneralError template) create builder for GraphQLGeneralError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLGeneralErrorBuilder
public GraphQLGeneralErrorBuilder()
-
-
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
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds GraphQLGeneralError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLGeneralError>
- Returns:
- GraphQLGeneralError
-
buildUnchecked
builds GraphQLGeneralError without checking for non-null required values- Returns:
- GraphQLGeneralError
-
of
factory method for an instance of GraphQLGeneralErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLGeneralError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-