Class NoMatchingProductDiscountFoundErrorBuilder
java.lang.Object
com.commercetools.api.models.error.NoMatchingProductDiscountFoundErrorBuilder
- All Implemented Interfaces:
Builder<NoMatchingProductDiscountFoundError>
public class NoMatchingProductDiscountFoundErrorBuilder
extends Object
implements Builder<NoMatchingProductDiscountFoundError>
NoMatchingProductDiscountFoundErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
NoMatchingProductDiscountFoundError noMatchingProductDiscountFoundError = NoMatchingProductDiscountFoundError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds NoMatchingProductDiscountFoundError with checking for non-null required valuesbuilds NoMatchingProductDiscountFoundError without checking for non-null required values"Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
Error-specific additional fields."Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
of()
factory method for an instance of NoMatchingProductDiscountFoundErrorBuilderof
(NoMatchingProductDiscountFoundError template) create builder for NoMatchingProductDiscountFoundError instanceError-specific additional fields.
-
Constructor Details
-
NoMatchingProductDiscountFoundErrorBuilder
public NoMatchingProductDiscountFoundErrorBuilder()
-
-
Method Details
-
message
"Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
- 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
-
getMessage
"Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds NoMatchingProductDiscountFoundError with checking for non-null required values- Specified by:
build
in interfaceBuilder<NoMatchingProductDiscountFoundError>
- Returns:
- NoMatchingProductDiscountFoundError
-
buildUnchecked
builds NoMatchingProductDiscountFoundError without checking for non-null required values- Returns:
- NoMatchingProductDiscountFoundError
-
of
factory method for an instance of NoMatchingProductDiscountFoundErrorBuilder- Returns:
- builder
-
of
public static NoMatchingProductDiscountFoundErrorBuilder of(NoMatchingProductDiscountFoundError template) create builder for NoMatchingProductDiscountFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-