Class CustomerStoresSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerStoresSetMessagePayload>
Example to create an instance using the builder pattern
CustomerStoresSetMessagePayload customerStoresSetMessagePayload = CustomerStoresSetMessagePayload.builder()
.plusStores(storesBuilder -> storesBuilder)
.plusOldStores(oldStoresBuilder -> oldStoresBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomerStoresSetMessagePayload with checking for non-null required valuesbuilds CustomerStoresSetMessagePayload without checking for non-null required valuesof()factory method for an instance of CustomerStoresSetMessagePayloadBuilderof(CustomerStoresSetMessagePayload template) create builder for CustomerStoresSetMessagePayload instanceoldStores(StoreKeyReference... oldStores) oldStores(List<StoreKeyReference> oldStores) plusOldStores(StoreKeyReference... oldStores) plusStores(StoreKeyReference... stores) stores(StoreKeyReference... stores) stores(List<StoreKeyReference> stores)
-
Constructor Details
-
CustomerStoresSetMessagePayloadBuilder
public CustomerStoresSetMessagePayloadBuilder()
-
-
Method Details
-
stores
The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
stores- value to be set- Returns:
- Builder
-
stores
The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
stores- value to be set- Returns:
- Builder
-
plusStores
The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
stores- value to be set- Returns:
- Builder
-
plusStores
public CustomerStoresSetMessagePayloadBuilder plusStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
withStores
public CustomerStoresSetMessagePayloadBuilder withStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
addStores
public CustomerStoresSetMessagePayloadBuilder addStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
setStores
public CustomerStoresSetMessagePayloadBuilder setStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
oldStores
The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
oldStores- value to be set- Returns:
- Builder
-
oldStores
The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
oldStores- value to be set- Returns:
- Builder
-
plusOldStores
The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
oldStores- value to be set- Returns:
- Builder
-
plusOldStores
public CustomerStoresSetMessagePayloadBuilder plusOldStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
builder- function to build the oldStores value- Returns:
- Builder
-
withOldStores
public CustomerStoresSetMessagePayloadBuilder withOldStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
builder- function to build the oldStores value- Returns:
- Builder
-
addOldStores
public CustomerStoresSetMessagePayloadBuilder addOldStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
builder- function to build the oldStores value- Returns:
- Builder
-
setOldStores
public CustomerStoresSetMessagePayloadBuilder setOldStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
builder- function to build the oldStores value- Returns:
- Builder
-
getStores
The Stores the Customer is associated with after the Set Stores update action.
- Returns:
- stores
-
getOldStores
The Stores the Customer was associated with before the Set Stores update action.
- Returns:
- oldStores
-
build
builds CustomerStoresSetMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomerStoresSetMessagePayload>- Returns:
- CustomerStoresSetMessagePayload
-
buildUnchecked
builds CustomerStoresSetMessagePayload without checking for non-null required values- Returns:
- CustomerStoresSetMessagePayload
-
of
factory method for an instance of CustomerStoresSetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for CustomerStoresSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-