Interface SyncInfo
public interface SyncInfo
Contains synchronization activity information of the Order (like export or import).
Example to create an instance using the builder pattern
SyncInfo syncInfo = SyncInfo.builder()
.channel(channelBuilder -> channelBuilder)
.syncedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SyncInfoBuilderbuilder()builder factory method for SyncInfostatic SyncInfoBuildercreate builder for SyncInfo instancecopyDeep()static SyncInfofactory method to create a deep copy of SyncInfo@NotNull @Valid ChannelReferenceConnection to a synchronization destination.Identifier of an external order instance, file, or other resource.@NotNull ZonedDateTimeDate and time (UTC) the information was synced.static SyncInfoof()factory methodstatic SyncInfofactory method to create a shallow copy SyncInfovoidsetChannel(ChannelReference channel) Connection to a synchronization destination.voidsetExternalId(String externalId) Identifier of an external order instance, file, or other resource.voidsetSyncedAt(ZonedDateTime syncedAt) Date and time (UTC) the information was synced.static com.fasterxml.jackson.core.type.TypeReference<SyncInfo>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithSyncInfo(Function<SyncInfo, T> helper) accessor map function
-
Method Details
-
getChannel
Connection to a synchronization destination.
- Returns:
- channel
-
getExternalId
String getExternalId()Identifier of an external order instance, file, or other resource.
- Returns:
- externalId
-
getSyncedAt
Date and time (UTC) the information was synced.
- Returns:
- syncedAt
-
setChannel
Connection to a synchronization destination.
- Parameters:
channel- value to be set
-
setExternalId
Identifier of an external order instance, file, or other resource.
- Parameters:
externalId- value to be set
-
setSyncedAt
Date and time (UTC) the information was synced.
- Parameters:
syncedAt- value to be set
-
of
factory method- Returns:
- instance of SyncInfo
-
of
factory method to create a shallow copy SyncInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
SyncInfo copyDeep() -
deepCopy
factory method to create a deep copy of SyncInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SyncInfo- Returns:
- builder
-
builder
create builder for SyncInfo instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withSyncInfo
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-