Class GraphQLDuplicateEnumValuesErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateEnumValuesErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLDuplicateEnumValuesError>
public class GraphQLDuplicateEnumValuesErrorBuilder
extends Object
implements Builder<GraphQLDuplicateEnumValuesError>
GraphQLDuplicateEnumValuesErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLDuplicateEnumValuesError graphQLDuplicateEnumValuesError = GraphQLDuplicateEnumValuesError.builder()
.plusDuplicates(duplicatesBuilder -> duplicatesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLDuplicateEnumValuesError with checking for non-null required valuesbuilds GraphQLDuplicateEnumValuesError without checking for non-null required valuesduplicates
(String... duplicates) Duplicate keys.duplicates
(List<String> duplicates) Duplicate keys.Duplicate keys.Error-specific additional fields.of()
factory method for an instance of GraphQLDuplicateEnumValuesErrorBuilderof
(GraphQLDuplicateEnumValuesError template) create builder for GraphQLDuplicateEnumValuesError instanceplusDuplicates
(String... duplicates) Duplicate keys.Error-specific additional fields.
-
Constructor Details
-
GraphQLDuplicateEnumValuesErrorBuilder
public GraphQLDuplicateEnumValuesErrorBuilder()
-
-
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
-
duplicates
Duplicate keys.
- Parameters:
duplicates
- value to be set- Returns:
- Builder
-
duplicates
Duplicate keys.
- Parameters:
duplicates
- value to be set- Returns:
- Builder
-
plusDuplicates
Duplicate keys.
- Parameters:
duplicates
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getDuplicates
Duplicate keys.
- Returns:
- duplicates
-
build
builds GraphQLDuplicateEnumValuesError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLDuplicateEnumValuesError>
- Returns:
- GraphQLDuplicateEnumValuesError
-
buildUnchecked
builds GraphQLDuplicateEnumValuesError without checking for non-null required values- Returns:
- GraphQLDuplicateEnumValuesError
-
of
factory method for an instance of GraphQLDuplicateEnumValuesErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLDuplicateEnumValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-