Class GraphQLStoreCartDiscountsLimitReachedErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLStoreCartDiscountsLimitReachedError>
Example to create an instance using the builder pattern
GraphQLStoreCartDiscountsLimitReachedError graphQLStoreCartDiscountsLimitReachedError = GraphQLStoreCartDiscountsLimitReachedError.builder()
.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 GraphQLStoreCartDiscountsLimitReachedError with checking for non-null required valuesbuilds GraphQLStoreCartDiscountsLimitReachedError without checking for non-null required valuesStores for which the limit for active Cart Discounts that can exist has been reached.Error-specific additional fields.of()
factory method for an instance of GraphQLStoreCartDiscountsLimitReachedErrorBuilderof
(GraphQLStoreCartDiscountsLimitReachedError template) create builder for GraphQLStoreCartDiscountsLimitReachedError 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
-
GraphQLStoreCartDiscountsLimitReachedErrorBuilder
public GraphQLStoreCartDiscountsLimitReachedErrorBuilder()
-
-
Method Details
-
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 GraphQLStoreCartDiscountsLimitReachedErrorBuilder 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 GraphQLStoreCartDiscountsLimitReachedErrorBuilder 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 GraphQLStoreCartDiscountsLimitReachedErrorBuilder 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 GraphQLStoreCartDiscountsLimitReachedErrorBuilder 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
-
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 GraphQLStoreCartDiscountsLimitReachedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLStoreCartDiscountsLimitReachedError>
- Returns:
- GraphQLStoreCartDiscountsLimitReachedError
-
buildUnchecked
builds GraphQLStoreCartDiscountsLimitReachedError without checking for non-null required values- Returns:
- GraphQLStoreCartDiscountsLimitReachedError
-
of
factory method for an instance of GraphQLStoreCartDiscountsLimitReachedErrorBuilder- Returns:
- builder
-
of
public static GraphQLStoreCartDiscountsLimitReachedErrorBuilder of(GraphQLStoreCartDiscountsLimitReachedError template) create builder for GraphQLStoreCartDiscountsLimitReachedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-