Class OrderEditPreviewSuccessBuilder
- All Implemented Interfaces:
Builder<OrderEditPreviewSuccess>
Example to create an instance using the builder pattern
OrderEditPreviewSuccess orderEditPreviewSuccess = OrderEditPreviewSuccess.builder()
.preview(previewBuilder -> previewBuilder)
.plusMessagePayloads(messagePayloadsBuilder -> messagePayloadsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEditPreviewSuccess with checking for non-null required valuesbuilds OrderEditPreviewSuccess without checking for non-null required valuesMessages that will be generated if the edit is applied.A preview of the edited Order as it will be after allstagedActions
(incl.messagePayloads
(MessagePayload... messagePayloads) Messages that will be generated if the edit is applied.messagePayloads
(List<MessagePayload> messagePayloads) Messages that will be generated if the edit is applied.of()
factory method for an instance of OrderEditPreviewSuccessBuilderof
(OrderEditPreviewSuccess template) create builder for OrderEditPreviewSuccess instanceplusMessagePayloads
(MessagePayload... messagePayloads) Messages that will be generated if the edit is applied.plusMessagePayloads
(Function<MessagePayloadBuilder, Builder<? extends MessagePayload>> builder) Messages that will be generated if the edit is applied.preview
(StagedOrder preview) A preview of the edited Order as it will be after allstagedActions
(incl.preview
(Function<StagedOrderBuilder, StagedOrderBuilder> builder) A preview of the edited Order as it will be after allstagedActions
(incl.withMessagePayloads
(Function<MessagePayloadBuilder, Builder<? extends MessagePayload>> builder) Messages that will be generated if the edit is applied.withPreview
(Function<StagedOrderBuilder, StagedOrder> builder) A preview of the edited Order as it will be after allstagedActions
(incl.
-
Constructor Details
-
OrderEditPreviewSuccessBuilder
public OrderEditPreviewSuccessBuilder()
-
-
Method Details
-
preview
public OrderEditPreviewSuccessBuilder preview(Function<StagedOrderBuilder, StagedOrderBuilder> builder) A preview of the edited Order as it will be after all
stagedActions
(incl. optional Order API Extensions) are applied.- Parameters:
builder
- function to build the preview value- Returns:
- Builder
-
withPreview
A preview of the edited Order as it will be after all
stagedActions
(incl. optional Order API Extensions) are applied.- Parameters:
builder
- function to build the preview value- Returns:
- Builder
-
preview
A preview of the edited Order as it will be after all
stagedActions
(incl. optional Order API Extensions) are applied.- Parameters:
preview
- value to be set- Returns:
- Builder
-
messagePayloads
Messages that will be generated if the edit is applied.
- Parameters:
messagePayloads
- value to be set- Returns:
- Builder
-
messagePayloads
Messages that will be generated if the edit is applied.
- Parameters:
messagePayloads
- value to be set- Returns:
- Builder
-
plusMessagePayloads
Messages that will be generated if the edit is applied.
- Parameters:
messagePayloads
- value to be set- Returns:
- Builder
-
plusMessagePayloads
public OrderEditPreviewSuccessBuilder plusMessagePayloads(Function<MessagePayloadBuilder, Builder<? extends MessagePayload>> builder) Messages that will be generated if the edit is applied.
- Parameters:
builder
- function to build the messagePayloads value- Returns:
- Builder
-
withMessagePayloads
public OrderEditPreviewSuccessBuilder withMessagePayloads(Function<MessagePayloadBuilder, Builder<? extends MessagePayload>> builder) Messages that will be generated if the edit is applied.
- Parameters:
builder
- function to build the messagePayloads value- Returns:
- Builder
-
getPreview
A preview of the edited Order as it will be after all
stagedActions
(incl. optional Order API Extensions) are applied.- Returns:
- preview
-
getMessagePayloads
Messages that will be generated if the edit is applied.
- Returns:
- messagePayloads
-
build
builds OrderEditPreviewSuccess with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditPreviewSuccess>
- Returns:
- OrderEditPreviewSuccess
-
buildUnchecked
builds OrderEditPreviewSuccess without checking for non-null required values- Returns:
- OrderEditPreviewSuccess
-
of
factory method for an instance of OrderEditPreviewSuccessBuilder- Returns:
- builder
-
of
create builder for OrderEditPreviewSuccess instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-