Class StagedOrderSetStoreActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetStoreAction>
Example to create an instance using the builder pattern
StagedOrderSetStoreAction stagedOrderSetStoreAction = StagedOrderSetStoreAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetStoreAction with checking for non-null required valuesbuilds StagedOrderSetStoreAction without checking for non-null required valuesgetStore()
Value to set.of()
factory method for an instance of StagedOrderSetStoreActionBuilderof
(StagedOrderSetStoreAction template) create builder for StagedOrderSetStoreAction instancestore
(StoreResourceIdentifier store) Value to set.Value to set.Value to set.
-
Constructor Details
-
StagedOrderSetStoreActionBuilder
public StagedOrderSetStoreActionBuilder()
-
-
Method Details
-
store
public StagedOrderSetStoreActionBuilder store(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Value to set. If empty, any existing value will be 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 StagedOrderSetStoreActionBuilder withStore(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Value to set. If empty, any existing value will be 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 will be 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 will be 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 StagedOrderSetStoreAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetStoreAction>
- Returns:
- StagedOrderSetStoreAction
-
buildUnchecked
builds StagedOrderSetStoreAction without checking for non-null required values- Returns:
- StagedOrderSetStoreAction
-
of
factory method for an instance of StagedOrderSetStoreActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderSetStoreAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-