Class SyncInfoBuilder
java.lang.Object
com.commercetools.api.models.order.SyncInfoBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<SyncInfo>
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
Constructors -
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 particular synchronization destination.Connection to a particular synchronization destination.externalId
(String externalId) Can be used to reference an external order instance, file etc.Connection to a particular synchronization destination.Can be used to reference an external order instance, file etc.value of syncedAt}static SyncInfoBuilder
of()
factory method for an instance of SyncInfoBuilderstatic SyncInfoBuilder
create builder for SyncInfo instancesyncedAt
(ZonedDateTime syncedAt) set the value to the syncedAtConnection to a particular synchronization destination.
-
Constructor Details
-
SyncInfoBuilder
public SyncInfoBuilder()
-
-
Method Details
-
channel
Connection to a particular synchronization destination.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
Connection to a particular synchronization destination.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
channel
Connection to a particular synchronization destination.
- Parameters:
channel
- value to be set- Returns:
- Builder
-
externalId
Can be used to reference an external order instance, file etc.
- Parameters:
externalId
- value to be set- Returns:
- Builder
-
syncedAt
set the value to the syncedAt- Parameters:
syncedAt
- value to be set- Returns:
- Builder
-
getChannel
Connection to a particular synchronization destination.
- Returns:
- channel
-
getExternalId
Can be used to reference an external order instance, file etc.
- Returns:
- externalId
-
getSyncedAt
value of syncedAt}- Returns:
- syncedAt
-
build
builds SyncInfo with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<SyncInfo>
- Returns:
- SyncInfo
-
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
-