Class ShoppingListStoreSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ShoppingListStoreSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ShoppingListStoreSetMessagePayload>
public class ShoppingListStoreSetMessagePayloadBuilder
extends Object
implements Builder<ShoppingListStoreSetMessagePayload>
ShoppingListStoreSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListStoreSetMessagePayload shoppingListStoreSetMessagePayload = ShoppingListStoreSetMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListStoreSetMessagePayload with checking for non-null required valuesbuilds ShoppingListStoreSetMessagePayload without checking for non-null required valuesgetStore()
KeyReference to a Store.of()
factory method for an instance of ShoppingListStoreSetMessagePayloadBuilderof
(ShoppingListStoreSetMessagePayload template) create builder for ShoppingListStoreSetMessagePayload instancestore
(StoreKeyReference store) KeyReference to a Store.KeyReference to a Store.KeyReference to a Store.
-
Constructor Details
-
ShoppingListStoreSetMessagePayloadBuilder
public ShoppingListStoreSetMessagePayloadBuilder()
-
-
Method Details
-
store
public ShoppingListStoreSetMessagePayloadBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) KeyReference to a Store.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public ShoppingListStoreSetMessagePayloadBuilder withStore(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) KeyReference to a Store.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
KeyReference to a Store.
- Parameters:
store
- value to be set- Returns:
- Builder
-
getStore
KeyReference to a Store.
- Returns:
- store
-
build
builds ShoppingListStoreSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListStoreSetMessagePayload>
- Returns:
- ShoppingListStoreSetMessagePayload
-
buildUnchecked
builds ShoppingListStoreSetMessagePayload without checking for non-null required values- Returns:
- ShoppingListStoreSetMessagePayload
-
of
factory method for an instance of ShoppingListStoreSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ShoppingListStoreSetMessagePayloadBuilder of(ShoppingListStoreSetMessagePayload template) create builder for ShoppingListStoreSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-