Class DuplicatePriceKeyErrorBuilder
java.lang.Object
com.commercetools.api.models.error.DuplicatePriceKeyErrorBuilder
- All Implemented Interfaces:
Builder<DuplicatePriceKeyError>
public class DuplicatePriceKeyErrorBuilder
extends Object
implements Builder<DuplicatePriceKeyError>
DuplicatePriceKeyErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DuplicatePriceKeyError duplicatePriceKeyError = DuplicatePriceKeyError.builder()
.message("{message}")
.conflictingPrice(conflictingPriceBuilder -> conflictingPriceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds DuplicatePriceKeyError with checking for non-null required valuesbuilds DuplicatePriceKeyError 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 key: $priceKey.
Error-specific additional fields."Duplicate price key: $priceKey.
of()
factory method for an instance of DuplicatePriceKeyErrorBuilderof
(DuplicatePriceKeyError template) create builder for DuplicatePriceKeyError instanceError-specific additional fields.withConflictingPrice
(Function<PriceBuilder, Price> builder) Conflicting Embedded Price.
-
Constructor Details
-
DuplicatePriceKeyErrorBuilder
public DuplicatePriceKeyErrorBuilder()
-
-
Method Details
-
message
"Duplicate price key: $priceKey. The price key must be unique per 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
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 key: $priceKey. The price key must be unique per variant."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getConflictingPrice
Conflicting Embedded Price.
- Returns:
- conflictingPrice
-
build
builds DuplicatePriceKeyError with checking for non-null required values- Specified by:
build
in interfaceBuilder<DuplicatePriceKeyError>
- Returns:
- DuplicatePriceKeyError
-
buildUnchecked
builds DuplicatePriceKeyError without checking for non-null required values- Returns:
- DuplicatePriceKeyError
-
of
factory method for an instance of DuplicatePriceKeyErrorBuilder- Returns:
- builder
-
of
create builder for DuplicatePriceKeyError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-