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