Class StoreCartDiscountsLimitReachedErrorBuilder
- All Implemented Interfaces:
Builder<StoreCartDiscountsLimitReachedError>
Example to create an instance using the builder pattern
StoreCartDiscountsLimitReachedError storeCartDiscountsLimitReachedError = StoreCartDiscountsLimitReachedError.builder()
.message("{message}")
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStores for which the limit for active Cart Discounts that can exist has been reached.Error-specific additional fields.build()
builds StoreCartDiscountsLimitReachedError with checking for non-null required valuesbuilds StoreCartDiscountsLimitReachedError without checking for non-null required values"Maximum number of active cart discounts reached for $stores."
Stores for which the limit for active Cart Discounts that can exist has been reached.Error-specific additional fields."Maximum number of active cart discounts reached for $stores."
of()
factory method for an instance of StoreCartDiscountsLimitReachedErrorBuilderof
(StoreCartDiscountsLimitReachedError template) create builder for StoreCartDiscountsLimitReachedError instanceplusStores
(StoreKeyReference... stores) Stores for which the limit for active Cart Discounts that can exist has been reached.Stores for which the limit for active Cart Discounts that can exist has been reached.Stores for which the limit for active Cart Discounts that can exist has been reached.stores
(StoreKeyReference... stores) Stores for which the limit for active Cart Discounts that can exist has been reached.stores
(List<StoreKeyReference> stores) Stores for which the limit for active Cart Discounts that can exist has been reached.Error-specific additional fields.Stores for which the limit for active Cart Discounts that can exist has been reached.
-
Constructor Details
-
StoreCartDiscountsLimitReachedErrorBuilder
public StoreCartDiscountsLimitReachedErrorBuilder()
-
-
Method Details
-
message
"Maximum number of active cart discounts reached for $stores."
- 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
-
stores
Stores for which the limit for active Cart Discounts that can exist has been reached.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
stores
Stores for which the limit for active Cart Discounts that can exist has been reached.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
Stores for which the limit for active Cart Discounts that can exist has been reached.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
public StoreCartDiscountsLimitReachedErrorBuilder plusStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) Stores for which the limit for active Cart Discounts that can exist has been reached.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
withStores
public StoreCartDiscountsLimitReachedErrorBuilder withStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) Stores for which the limit for active Cart Discounts that can exist has been reached.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
addStores
public StoreCartDiscountsLimitReachedErrorBuilder addStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) Stores for which the limit for active Cart Discounts that can exist has been reached.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
setStores
public StoreCartDiscountsLimitReachedErrorBuilder setStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) Stores for which the limit for active Cart Discounts that can exist has been reached.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
getMessage
"Maximum number of active cart discounts reached for $stores."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getStores
Stores for which the limit for active Cart Discounts that can exist has been reached.
- Returns:
- stores
-
build
builds StoreCartDiscountsLimitReachedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreCartDiscountsLimitReachedError>
- Returns:
- StoreCartDiscountsLimitReachedError
-
buildUnchecked
builds StoreCartDiscountsLimitReachedError without checking for non-null required values- Returns:
- StoreCartDiscountsLimitReachedError
-
of
factory method for an instance of StoreCartDiscountsLimitReachedErrorBuilder- Returns:
- builder
-
of
public static StoreCartDiscountsLimitReachedErrorBuilder of(StoreCartDiscountsLimitReachedError template) create builder for StoreCartDiscountsLimitReachedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-