Interface SyncInfo
public interface SyncInfo
SyncInfo
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SyncInfo syncInfo = SyncInfo.builder()
.channel(channelBuilder -> channelBuilder)
.externalId("{externalId}")
.syncedAt("{syncedAt}")
.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 Reference@NotNull StringCan be used to reference an external order instance, file etc.@NotNull Stringstatic SyncInfoof()factory methodstatic SyncInfofactory method to create a shallow copy SyncInfovoidsetChannel(Reference channel) set channelvoidsetExternalId(String externalId) Can be used to reference an external order instance, file etc.voidsetSyncedAt(String syncedAt) set syncedAtstatic 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
- Returns:
- channel
-
getExternalId
Can be used to reference an external order instance, file etc.
- Returns:
- externalId
-
getSyncedAt
- Returns:
- syncedAt
-
setChannel
set channel- Parameters:
channel- value to be set
-
setExternalId
Can be used to reference an external order instance, file etc.
- Parameters:
externalId- value to be set
-
setSyncedAt
set syncedAt- 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
-