Class StagedOrderUpdateSyncInfoActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderUpdateSyncInfoAction>
Example to create an instance using the builder pattern
StagedOrderUpdateSyncInfoAction stagedOrderUpdateSyncInfoAction = StagedOrderUpdateSyncInfoAction.builder()
.channel(channelBuilder -> channelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderUpdateSyncInfoAction with checking for non-null required valuesbuilds StagedOrderUpdateSyncInfoAction 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 StagedOrderUpdateSyncInfoActionBuilderof
(StagedOrderUpdateSyncInfoAction template) create builder for StagedOrderUpdateSyncInfoAction instancesyncedAt
(ZonedDateTime syncedAt) If not set, it defaults to the current date and time.The synchronization destination to set.
-
Constructor Details
-
StagedOrderUpdateSyncInfoActionBuilder
public StagedOrderUpdateSyncInfoActionBuilder()
-
-
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 StagedOrderUpdateSyncInfoActionBuilder 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 StagedOrderUpdateSyncInfoActionBuilder 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 StagedOrderUpdateSyncInfoAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderUpdateSyncInfoAction>
- Returns:
- StagedOrderUpdateSyncInfoAction
-
buildUnchecked
builds StagedOrderUpdateSyncInfoAction without checking for non-null required values- Returns:
- StagedOrderUpdateSyncInfoAction
-
of
factory method for an instance of StagedOrderUpdateSyncInfoActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderUpdateSyncInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-