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