Interface StagedOrderUpdateSyncInfoAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
StagedOrderUpdateSyncInfoAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderUpdateSyncInfoAction stagedOrderUpdateSyncInfoAction = StagedOrderUpdateSyncInfoAction.builder()
.channel(channelBuilder -> channelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderUpdateSyncInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderUpdateSyncInfoActionbuilder
(StagedOrderUpdateSyncInfoAction template) create builder for StagedOrderUpdateSyncInfoAction instancedeepCopy
(StagedOrderUpdateSyncInfoAction template) factory method to create a deep copy of StagedOrderUpdateSyncInfoAction@NotNull @Valid ChannelResourceIdentifier
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 methodof
(StagedOrderUpdateSyncInfoAction template) factory method to create a shallow copy StagedOrderUpdateSyncInfoActionvoid
setChannel
(ChannelResourceIdentifier channel) The synchronization destination to set.void
setExternalId
(String externalId) Set this to identify an external order instance, file, or other resource.void
setSyncedAt
(ZonedDateTime syncedAt) If not set, it defaults to the current date and time.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderUpdateSyncInfoAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
UPDATE_SYNC_INFO
discriminator value for StagedOrderUpdateSyncInfoAction- See Also:
-
-
Method Details
-
getExternalId
String 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
ZonedDateTime getSyncedAt()If not set, it defaults to the current date and time.
- Returns:
- syncedAt
-
setExternalId
Set this to identify an external order instance, file, or other resource.
- Parameters:
externalId
- value to be set
-
setChannel
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
-
setSyncedAt
If not set, it defaults to the current date and time.
- Parameters:
syncedAt
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderUpdateSyncInfoAction
-
of
factory method to create a shallow copy StagedOrderUpdateSyncInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderUpdateSyncInfoAction deepCopy(@Nullable StagedOrderUpdateSyncInfoAction template) factory method to create a deep copy of StagedOrderUpdateSyncInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderUpdateSyncInfoAction- Returns:
- builder
-
builder
create builder for StagedOrderUpdateSyncInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderUpdateSyncInfoAction
default <T> T withStagedOrderUpdateSyncInfoAction(Function<StagedOrderUpdateSyncInfoAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderUpdateSyncInfoAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-