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