Class SyncInfoBuilder
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SyncInfo with checking for non-null required valuesbuilds SyncInfo without checking for non-null required valueschannel(ChannelKeyReference channel) Maps toSyncInfo.channel.Maps toSyncInfo.channel.externalId(String externalId) Maps toSyncInfo.externalIdMaps toSyncInfo.channel.Maps toSyncInfo.externalIdMaps toSyncInfo.syncedAtstatic SyncInfoBuilderof()factory method for an instance of SyncInfoBuilderstatic SyncInfoBuildercreate builder for SyncInfo instancesyncedAt(ZonedDateTime syncedAt) Maps toSyncInfo.syncedAtMaps toSyncInfo.channel.
-
Constructor Details
-
SyncInfoBuilder
public SyncInfoBuilder()
-
-
Method Details
-
channel
public SyncInfoBuilder channel(Function<ChannelKeyReferenceBuilder, ChannelKeyReferenceBuilder> builder) Maps to
SyncInfo.channel. If the referenced Channel does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Channel is created.- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
withChannel
public SyncInfoBuilder withChannel(Function<ChannelKeyReferenceBuilder, ChannelKeyReference> builder) Maps to
SyncInfo.channel. If the referenced Channel does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Channel is created.- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
channel
Maps to
SyncInfo.channel. If the referenced Channel does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Channel is created.- Parameters:
channel- value to be set- Returns:
- Builder
-
externalId
Maps to
SyncInfo.externalId- Parameters:
externalId- value to be set- Returns:
- Builder
-
syncedAt
Maps to
SyncInfo.syncedAt- Parameters:
syncedAt- value to be set- Returns:
- Builder
-
getChannel
Maps to
SyncInfo.channel. If the referenced Channel does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Channel is created.- Returns:
- channel
-
getExternalId
Maps to
SyncInfo.externalId- Returns:
- externalId
-
getSyncedAt
Maps to
SyncInfo.syncedAt- Returns:
- syncedAt
-
build
builds SyncInfo with checking for non-null required values -
buildUnchecked
builds SyncInfo without checking for non-null required values- Returns:
- SyncInfo
-
of
factory method for an instance of SyncInfoBuilder- Returns:
- builder
-
of
create builder for SyncInfo instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-