Class MaxCartDiscountsReachedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.MaxCartDiscountsReachedErrorBuilder
- All Implemented Interfaces:
Builder<MaxCartDiscountsReachedError>
public class MaxCartDiscountsReachedErrorBuilder
extends Object
implements Builder<MaxCartDiscountsReachedError>
MaxCartDiscountsReachedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MaxCartDiscountsReachedError maxCartDiscountsReachedError = MaxCartDiscountsReachedError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds MaxCartDiscountsReachedError with checking for non-null required valuesbuilds MaxCartDiscountsReachedError without checking for non-null required values"Maximum number of active cart discounts reached ($max)."
Error-specific additional fields."Maximum number of active cart discounts reached ($max)."
of()
factory method for an instance of MaxCartDiscountsReachedErrorBuilderof
(MaxCartDiscountsReachedError template) create builder for MaxCartDiscountsReachedError instanceError-specific additional fields.
-
Constructor Details
-
MaxCartDiscountsReachedErrorBuilder
public MaxCartDiscountsReachedErrorBuilder()
-
-
Method Details
-
message
"Maximum number of active cart discounts reached ($max)."
- 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
"Maximum number of active cart discounts reached ($max)."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds MaxCartDiscountsReachedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<MaxCartDiscountsReachedError>
- Returns:
- MaxCartDiscountsReachedError
-
buildUnchecked
builds MaxCartDiscountsReachedError without checking for non-null required values- Returns:
- MaxCartDiscountsReachedError
-
of
factory method for an instance of MaxCartDiscountsReachedErrorBuilder- Returns:
- builder
-
of
create builder for MaxCartDiscountsReachedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-