Class OrderUpdateSyncInfoActionBuilder
- All Implemented Interfaces:
Builder<OrderUpdateSyncInfoAction>
Example to create an instance using the builder pattern
OrderUpdateSyncInfoAction orderUpdateSyncInfoAction = OrderUpdateSyncInfoAction.builder()
.channel(channelBuilder -> channelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderUpdateSyncInfoAction with checking for non-null required valuesbuilds OrderUpdateSyncInfoAction without checking for non-null required valueschannel
(ChannelResourceIdentifier channel) The synchronization destination to set.The synchronization destination to set.externalId
(String externalId) Set this to identify an external order instance, file, or other resource.The synchronization destination to set.Set this to identify an external order instance, file, or other resource.If not set, it defaults to the current date and time.of()
factory method for an instance of OrderUpdateSyncInfoActionBuilderof
(OrderUpdateSyncInfoAction template) create builder for OrderUpdateSyncInfoAction instancesyncedAt
(ZonedDateTime syncedAt) If not set, it defaults to the current date and time.The synchronization destination to set.
-
Constructor Details
-
OrderUpdateSyncInfoActionBuilder
public OrderUpdateSyncInfoActionBuilder()
-
-
Method Details
-
externalId
Set this to identify an external order instance, file, or other resource.
- Parameters:
externalId
- value to be set- Returns:
- Builder
-
channel
public OrderUpdateSyncInfoActionBuilder channel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role
OrderExport
orOrderImport
. Otherwise this update action returns an InvalidInput error.- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
public OrderUpdateSyncInfoActionBuilder withChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role
OrderExport
orOrderImport
. Otherwise this update action returns an InvalidInput error.- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
channel
The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role
OrderExport
orOrderImport
. Otherwise this update action returns an InvalidInput error.- Parameters:
channel
- value to be set- Returns:
- Builder
-
syncedAt
If not set, it defaults to the current date and time.
- Parameters:
syncedAt
- value to be set- Returns:
- Builder
-
getExternalId
Set this to identify an external order instance, file, or other resource.
- Returns:
- externalId
-
getChannel
The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role
OrderExport
orOrderImport
. Otherwise this update action returns an InvalidInput error.- Returns:
- channel
-
getSyncedAt
If not set, it defaults to the current date and time.
- Returns:
- syncedAt
-
build
builds OrderUpdateSyncInfoAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderUpdateSyncInfoAction>
- Returns:
- OrderUpdateSyncInfoAction
-
buildUnchecked
builds OrderUpdateSyncInfoAction without checking for non-null required values- Returns:
- OrderUpdateSyncInfoAction
-
of
factory method for an instance of OrderUpdateSyncInfoActionBuilder- Returns:
- builder
-
of
create builder for OrderUpdateSyncInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-