Class OrderEditDraftBuilder
- All Implemented Interfaces:
Builder<OrderEditDraft>
Example to create an instance using the builder pattern
OrderEditDraft orderEditDraft = OrderEditDraft.builder()
.resource(resourceBuilder -> resourceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEditDraft with checking for non-null required valuesbuilds OrderEditDraft without checking for non-null required valuesUser-defined description regarding the Order Edit.custom
(CustomFieldsDraft custom) Custom Fields for the Order Edit.Custom Fields for the Order Edit.Set totrue
if you want to peview the edited Order first without persisting it (dry run).User-defined description regarding the Order Edit.Custom Fields for the Order Edit.Set totrue
if you want to peview the edited Order first without persisting it (dry run).getKey()
User-defined unique identifier for the Order Edit.Reference to the Order updated with this edit.Update actions to apply to the Order referenced inresource
.User-defined unique identifier for the Order Edit.static OrderEditDraftBuilder
of()
factory method for an instance of OrderEditDraftBuilderstatic OrderEditDraftBuilder
of
(OrderEditDraft template) create builder for OrderEditDraft instanceplusStagedActions
(StagedOrderUpdateAction... stagedActions) Update actions to apply to the Order referenced inresource
.plusStagedActions
(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions to apply to the Order referenced inresource
.resource
(OrderReference resource) Reference to the Order updated with this edit.Reference to the Order updated with this edit.stagedActions
(StagedOrderUpdateAction... stagedActions) Update actions to apply to the Order referenced inresource
.stagedActions
(List<StagedOrderUpdateAction> stagedActions) Update actions to apply to the Order referenced inresource
.Custom Fields for the Order Edit.Reference to the Order updated with this edit.withStagedActions
(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions to apply to the Order referenced inresource
.
-
Constructor Details
-
OrderEditDraftBuilder
public OrderEditDraftBuilder()
-
-
Method Details
-
key
User-defined unique identifier for the Order Edit.
- Parameters:
key
- value to be set- Returns:
- Builder
-
resource
public OrderEditDraftBuilder resource(Function<OrderReferenceBuilder, OrderReferenceBuilder> builder) Reference to the Order updated with this edit.
- Parameters:
builder
- function to build the resource value- Returns:
- Builder
-
withResource
Reference to the Order updated with this edit.
- Parameters:
builder
- function to build the resource value- Returns:
- Builder
-
resource
Reference to the Order updated with this edit.
- Parameters:
resource
- value to be set- Returns:
- Builder
-
stagedActions
Update actions to apply to the Order referenced in
resource
. Cannot be updated if the edit has been applied.- Parameters:
stagedActions
- value to be set- Returns:
- Builder
-
stagedActions
Update actions to apply to the Order referenced in
resource
. Cannot be updated if the edit has been applied.- Parameters:
stagedActions
- value to be set- Returns:
- Builder
-
plusStagedActions
Update actions to apply to the Order referenced in
resource
. Cannot be updated if the edit has been applied.- Parameters:
stagedActions
- value to be set- Returns:
- Builder
-
plusStagedActions
public OrderEditDraftBuilder plusStagedActions(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions to apply to the Order referenced in
resource
. Cannot be updated if the edit has been applied.- Parameters:
builder
- function to build the stagedActions value- Returns:
- Builder
-
withStagedActions
public OrderEditDraftBuilder withStagedActions(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions to apply to the Order referenced in
resource
. Cannot be updated if the edit has been applied.- Parameters:
builder
- function to build the stagedActions value- Returns:
- Builder
-
custom
public OrderEditDraftBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields for the Order Edit.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public OrderEditDraftBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) Custom Fields for the Order Edit.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields for the Order Edit.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
comment
User-defined description regarding the Order Edit.
- Parameters:
comment
- value to be set- Returns:
- Builder
-
dryRun
Set to
true
if you want to peview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply thestagedActions
.Order API Extensions, if any, are also called in dry runs.
- Parameters:
dryRun
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier for the Order Edit.
- Returns:
- key
-
getResource
Reference to the Order updated with this edit.
- Returns:
- resource
-
getStagedActions
Update actions to apply to the Order referenced in
resource
. Cannot be updated if the edit has been applied.- Returns:
- stagedActions
-
getCustom
Custom Fields for the Order Edit.
- Returns:
- custom
-
getComment
User-defined description regarding the Order Edit.
- Returns:
- comment
-
getDryRun
Set to
true
if you want to peview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply thestagedActions
.Order API Extensions, if any, are also called in dry runs.
- Returns:
- dryRun
-
build
builds OrderEditDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditDraft>
- Returns:
- OrderEditDraft
-
buildUnchecked
builds OrderEditDraft without checking for non-null required values- Returns:
- OrderEditDraft
-
of
factory method for an instance of OrderEditDraftBuilder- Returns:
- builder
-
of
create builder for OrderEditDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-