Class BusinessUnitStoresSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitStoresSetMessagePayload>
public class BusinessUnitStoresSetMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitStoresSetMessagePayload>
BusinessUnitStoresSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitStoresSetMessagePayload businessUnitStoresSetMessagePayload = BusinessUnitStoresSetMessagePayload.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStores of the Business Unit after the Set Stores update action.build()
builds BusinessUnitStoresSetMessagePayload with checking for non-null required valuesbuilds BusinessUnitStoresSetMessagePayload without checking for non-null required valuesStores of the Business Unit after the Set Stores update action.of()
factory method for an instance of BusinessUnitStoresSetMessagePayloadBuilderof
(BusinessUnitStoresSetMessagePayload template) create builder for BusinessUnitStoresSetMessagePayload instanceplusStores
(StoreKeyReference... stores) Stores of the Business Unit after the Set Stores update action.Stores of the Business Unit after the Set Stores update action.Stores of the Business Unit after the Set Stores update action.stores
(StoreKeyReference... stores) Stores of the Business Unit after the Set Stores update action.stores
(List<StoreKeyReference> stores) Stores of the Business Unit after the Set Stores update action.Stores of the Business Unit after the Set Stores update action.
-
Constructor Details
-
BusinessUnitStoresSetMessagePayloadBuilder
public BusinessUnitStoresSetMessagePayloadBuilder()
-
-
Method Details
-
stores
Stores of the Business Unit after the Set Stores update action.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
stores
Stores of the Business Unit after the Set Stores update action.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
Stores of the Business Unit after the Set Stores update action.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
public BusinessUnitStoresSetMessagePayloadBuilder plusStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) Stores of the Business Unit after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
withStores
public BusinessUnitStoresSetMessagePayloadBuilder withStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) Stores of the Business Unit after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
addStores
public BusinessUnitStoresSetMessagePayloadBuilder addStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) Stores of the Business Unit after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
setStores
public BusinessUnitStoresSetMessagePayloadBuilder setStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) Stores of the Business Unit after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
getStores
Stores of the Business Unit after the Set Stores update action.
- Returns:
- stores
-
build
builds BusinessUnitStoresSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitStoresSetMessagePayload>
- Returns:
- BusinessUnitStoresSetMessagePayload
-
buildUnchecked
builds BusinessUnitStoresSetMessagePayload without checking for non-null required values- Returns:
- BusinessUnitStoresSetMessagePayload
-
of
factory method for an instance of BusinessUnitStoresSetMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitStoresSetMessagePayloadBuilder of(BusinessUnitStoresSetMessagePayload template) create builder for BusinessUnitStoresSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-