Class SyncInfoBuilder
java.lang.Object
com.commercetools.api.models.order.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
(ChannelReference channel) Connection to a synchronization destination.Connection to a synchronization destination.externalId
(String externalId) Identifier of an external order instance, file, or other resource.Connection to a synchronization destination.Identifier of an external order instance, file, or other resource.Date and time (UTC) the information was synced.static SyncInfoBuilder
of()
factory method for an instance of SyncInfoBuilderstatic SyncInfoBuilder
create builder for SyncInfo instancesyncedAt
(ZonedDateTime syncedAt) Date and time (UTC) the information was synced.Connection to a synchronization destination.
-
Constructor Details
-
SyncInfoBuilder
public SyncInfoBuilder()
-
-
Method Details
-
channel
Connection to a synchronization destination.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
Connection to a synchronization destination.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
channel
Connection to a synchronization destination.
- Parameters:
channel
- value to be set- Returns:
- Builder
-
externalId
Identifier of an external order instance, file, or other resource.
- Parameters:
externalId
- value to be set- Returns:
- Builder
-
syncedAt
Date and time (UTC) the information was synced.
- Parameters:
syncedAt
- value to be set- Returns:
- Builder
-
getChannel
Connection to a synchronization destination.
- Returns:
- channel
-
getExternalId
Identifier of an external order instance, file, or other resource.
- Returns:
- externalId
-
getSyncedAt
Date and time (UTC) the information was synced.
- 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
-