Class UpdateSyncInfoChangeBuilder
java.lang.Object
com.commercetools.history.models.change.UpdateSyncInfoChangeBuilder
- All Implemented Interfaces:
Builder<UpdateSyncInfoChange>
UpdateSyncInfoChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
UpdateSyncInfoChange updateSyncInfoChange = UpdateSyncInfoChange.builder()
.change("{change}")
.nextValue(nextValueBuilder -> nextValueBuilder)
.channelId("{channelId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds UpdateSyncInfoChange with checking for non-null required valuesbuilds UpdateSyncInfoChange without checking for non-null required valuesset the value to the changeid
of the updated Channel.value of change}id
of the updated Channel.Value after the change.Value after the change.nextValue
(Function<SyncInfoBuilder, SyncInfoBuilder> builder) Value after the change.static UpdateSyncInfoChangeBuilder
of()
factory method for an instance of UpdateSyncInfoChangeBuilderstatic UpdateSyncInfoChangeBuilder
of
(UpdateSyncInfoChange template) create builder for UpdateSyncInfoChange instancewithNextValue
(Function<SyncInfoBuilder, SyncInfo> builder) Value after the change.
-
Constructor Details
-
UpdateSyncInfoChangeBuilder
public UpdateSyncInfoChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
channelId
id
of the updated Channel.- Parameters:
channelId
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getChannelId
id
of the updated Channel.- Returns:
- channelId
-
build
builds UpdateSyncInfoChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<UpdateSyncInfoChange>
- Returns:
- UpdateSyncInfoChange
-
buildUnchecked
builds UpdateSyncInfoChange without checking for non-null required values- Returns:
- UpdateSyncInfoChange
-
of
factory method for an instance of UpdateSyncInfoChangeBuilder- Returns:
- builder
-
of
create builder for UpdateSyncInfoChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-