Class GraphQLRequiredFieldErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLRequiredFieldErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLRequiredFieldError>
public class GraphQLRequiredFieldErrorBuilder
extends Object
implements Builder<GraphQLRequiredFieldError>
GraphQLRequiredFieldErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLRequiredFieldError graphQLRequiredFieldError = GraphQLRequiredFieldError.builder()
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLRequiredFieldError with checking for non-null required valuesbuilds GraphQLRequiredFieldError without checking for non-null required valuesName of the field missing the value.getField()
Name of the field missing the value.Error-specific additional fields.of()
factory method for an instance of GraphQLRequiredFieldErrorBuilderof
(GraphQLRequiredFieldError template) create builder for GraphQLRequiredFieldError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLRequiredFieldErrorBuilder
public GraphQLRequiredFieldErrorBuilder()
-
-
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
-
field
Name of the field missing the value.
- Parameters:
field
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getField
Name of the field missing the value.
- Returns:
- field
-
build
builds GraphQLRequiredFieldError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLRequiredFieldError>
- Returns:
- GraphQLRequiredFieldError
-
buildUnchecked
builds GraphQLRequiredFieldError without checking for non-null required values- Returns:
- GraphQLRequiredFieldError
-
of
factory method for an instance of GraphQLRequiredFieldErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLRequiredFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-