Class GraphQLDuplicatePriceKeyErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicatePriceKeyErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLDuplicatePriceKeyError>
public class GraphQLDuplicatePriceKeyErrorBuilder
extends Object
implements Builder<GraphQLDuplicatePriceKeyError>
GraphQLDuplicatePriceKeyErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLDuplicatePriceKeyError graphQLDuplicatePriceKeyError = GraphQLDuplicatePriceKeyError.builder()
.conflictingPrice(conflictingPriceBuilder -> conflictingPriceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLDuplicatePriceKeyError with checking for non-null required valuesbuilds GraphQLDuplicatePriceKeyError without checking for non-null required valuesconflictingPrice
(Price conflictingPrice) Conflicting Embedded Price.conflictingPrice
(Function<PriceBuilder, PriceBuilder> builder) Conflicting Embedded Price.Conflicting Embedded Price.Error-specific additional fields.of()
factory method for an instance of GraphQLDuplicatePriceKeyErrorBuilderof
(GraphQLDuplicatePriceKeyError template) create builder for GraphQLDuplicatePriceKeyError instanceError-specific additional fields.withConflictingPrice
(Function<PriceBuilder, Price> builder) Conflicting Embedded Price.
-
Constructor Details
-
GraphQLDuplicatePriceKeyErrorBuilder
public GraphQLDuplicatePriceKeyErrorBuilder()
-
-
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
-
conflictingPrice
public GraphQLDuplicatePriceKeyErrorBuilder conflictingPrice(Function<PriceBuilder, PriceBuilder> builder) Conflicting Embedded Price.
- Parameters:
builder
- function to build the conflictingPrice value- Returns:
- Builder
-
withConflictingPrice
public GraphQLDuplicatePriceKeyErrorBuilder withConflictingPrice(Function<PriceBuilder, Price> builder) Conflicting Embedded Price.
- Parameters:
builder
- function to build the conflictingPrice value- Returns:
- Builder
-
conflictingPrice
Conflicting Embedded Price.
- Parameters:
conflictingPrice
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getConflictingPrice
Conflicting Embedded Price.
- Returns:
- conflictingPrice
-
build
builds GraphQLDuplicatePriceKeyError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLDuplicatePriceKeyError>
- Returns:
- GraphQLDuplicatePriceKeyError
-
buildUnchecked
builds GraphQLDuplicatePriceKeyError without checking for non-null required values- Returns:
- GraphQLDuplicatePriceKeyError
-
of
factory method for an instance of GraphQLDuplicatePriceKeyErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLDuplicatePriceKeyError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-