Class SyncInfoBuilder
java.lang.Object
com.commercetools.importapi.models.orders.SyncInfoBuilder
SyncInfoBuilder
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()
-
Constructor Summary
-
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.externalId
Maps toSyncInfo.channel
Maps toSyncInfo.externalId
Maps toSyncInfo.syncedAt
static SyncInfoBuilder
of()
factory method for an instance of SyncInfoBuilderstatic SyncInfoBuilder
create builder for SyncInfo instancesyncedAt
(ZonedDateTime syncedAt) Maps toSyncInfo.syncedAt
Maps toSyncInfo.channel
-
Constructor Details
-
SyncInfoBuilder
public SyncInfoBuilder()
-
-
Method Details
-
channel
public SyncInfoBuilder channel(Function<ChannelKeyReferenceBuilder, ChannelKeyReferenceBuilder> builder) Maps to
SyncInfo.channel
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
public SyncInfoBuilder withChannel(Function<ChannelKeyReferenceBuilder, ChannelKeyReference> builder) Maps to
SyncInfo.channel
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
channel
Maps to
SyncInfo.channel
- 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
- 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
-