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