Class DuplicatePriceScopeErrorBuilder
java.lang.Object
com.commercetools.api.models.error.DuplicatePriceScopeErrorBuilder
- All Implemented Interfaces:
Builder<DuplicatePriceScopeError>
public class DuplicatePriceScopeErrorBuilder
extends Object
implements Builder<DuplicatePriceScopeError>
DuplicatePriceScopeErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DuplicatePriceScopeError duplicatePriceScopeError = DuplicatePriceScopeError.builder()
.message("{message}")
.conflictingPrice(conflictingPriceBuilder -> conflictingPriceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds DuplicatePriceScopeError with checking for non-null required valuesbuilds DuplicatePriceScopeError without checking for non-null required valuesconflictingPrice
(Price conflictingPrice) Conflicting Embedded Price.conflictingPrice
(Function<PriceBuilder, PriceBuilder> builder) Conflicting Embedded Price.Conflicting Embedded Price."Duplicate price scope: $priceScope.
Error-specific additional fields."Duplicate price scope: $priceScope.
of()
factory method for an instance of DuplicatePriceScopeErrorBuilderof
(DuplicatePriceScopeError template) create builder for DuplicatePriceScopeError instanceError-specific additional fields.withConflictingPrice
(Function<PriceBuilder, Price> builder) Conflicting Embedded Price.
-
Constructor Details
-
DuplicatePriceScopeErrorBuilder
public DuplicatePriceScopeErrorBuilder()
-
-
Method Details
-
message
"Duplicate price scope: $priceScope. The combination of currency, country, customerGroup and channel must be unique for each price of a product variant."
- Parameters:
message
- value to be set- Returns:
- Builder
-
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 DuplicatePriceScopeErrorBuilder conflictingPrice(Function<PriceBuilder, PriceBuilder> builder) Conflicting Embedded Price.
- Parameters:
builder
- function to build the conflictingPrice value- Returns:
- Builder
-
withConflictingPrice
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
-
getMessage
"Duplicate price scope: $priceScope. The combination of currency, country, customerGroup and channel must be unique for each price of a product variant."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getConflictingPrice
Conflicting Embedded Price.
- Returns:
- conflictingPrice
-
build
builds DuplicatePriceScopeError with checking for non-null required values- Specified by:
build
in interfaceBuilder<DuplicatePriceScopeError>
- Returns:
- DuplicatePriceScopeError
-
buildUnchecked
builds DuplicatePriceScopeError without checking for non-null required values- Returns:
- DuplicatePriceScopeError
-
of
factory method for an instance of DuplicatePriceScopeErrorBuilder- Returns:
- builder
-
of
create builder for DuplicatePriceScopeError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-