Class OrderSetStoreActionBuilder
- All Implemented Interfaces:
Builder<OrderSetStoreAction>
Example to create an instance using the builder pattern
OrderSetStoreAction orderSetStoreAction = OrderSetStoreAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetStoreAction with checking for non-null required valuesbuilds OrderSetStoreAction without checking for non-null required valuesgetStore()
Value to set.static OrderSetStoreActionBuilder
of()
factory method for an instance of OrderSetStoreActionBuilderstatic OrderSetStoreActionBuilder
of
(OrderSetStoreAction template) create builder for OrderSetStoreAction instancestore
(StoreResourceIdentifier store) Value to set.Value to set.Value to set.
-
Constructor Details
-
OrderSetStoreActionBuilder
public OrderSetStoreActionBuilder()
-
-
Method Details
-
store
public OrderSetStoreActionBuilder store(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Value to set. If empty, any existing value is removed.
If
store
references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400
error is returned.- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public OrderSetStoreActionBuilder withStore(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Value to set. If empty, any existing value is removed.
If
store
references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400
error is returned.- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
Value to set. If empty, any existing value is removed.
If
store
references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400
error is returned.- Parameters:
store
- value to be set- Returns:
- Builder
-
getStore
Value to set. If empty, any existing value is removed.
If
store
references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400
error is returned.- Returns:
- store
-
build
builds OrderSetStoreAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetStoreAction>
- Returns:
- OrderSetStoreAction
-
buildUnchecked
builds OrderSetStoreAction without checking for non-null required values- Returns:
- OrderSetStoreAction
-
of
factory method for an instance of OrderSetStoreActionBuilder- Returns:
- builder
-
of
create builder for OrderSetStoreAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-