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)
.syncedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SyncInfoBuilder
builder()
builder factory method for SyncInfostatic SyncInfoBuilder
create builder for SyncInfo instancestatic SyncInfo
factory method to create a deep copy of SyncInfo@NotNull @Valid ChannelKeyReference
Maps toSyncInfo.channel
Maps toSyncInfo.externalId
@NotNull ZonedDateTime
Maps toSyncInfo.syncedAt
static SyncInfo
of()
factory methodstatic SyncInfo
factory method to create a shallow copy SyncInfovoid
setChannel
(ChannelKeyReference channel) Maps toSyncInfo.channel
void
setExternalId
(String externalId) Maps toSyncInfo.externalId
void
setSyncedAt
(ZonedDateTime syncedAt) Maps toSyncInfo.syncedAt
static com.fasterxml.jackson.core.type.TypeReference<SyncInfo>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSyncInfo
(Function<SyncInfo, T> helper) accessor map function
-
Method Details
-
getChannel
Maps to
SyncInfo.channel
- Returns:
- channel
-
getExternalId
String getExternalId()Maps to
SyncInfo.externalId
- Returns:
- externalId
-
getSyncedAt
Maps to
SyncInfo.syncedAt
- Returns:
- syncedAt
-
setChannel
Maps to
SyncInfo.channel
- Parameters:
channel
- value to be set
-
setExternalId
Maps to
SyncInfo.externalId
- Parameters:
externalId
- value to be set
-
setSyncedAt
Maps to
SyncInfo.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
-
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
-