Class SetSkuChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetSkuChangeBuilder
- All Implemented Interfaces:
Builder<SetSkuChange>
SetSkuChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetSkuChange setSkuChange = SetSkuChange.builder()
.change("{change}")
.previousValue("{previousValue}")
.nextValue("{nextValue}")
.catalogData("{catalogData}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetSkuChange with checking for non-null required valuesbuilds SetSkuChange without checking for non-null required valuescatalogData
(String catalogData) staged
, if the staged ProductCatalogData was updated.current
, if the current ProductCatalogData was updated.set the value to the changestaged
, if the staged ProductCatalogData was updated.current
, if the current ProductCatalogData was updated.value of change}Value after the change.Value before the change.Value after the change.static SetSkuChangeBuilder
of()
factory method for an instance of SetSkuChangeBuilderstatic SetSkuChangeBuilder
of
(SetSkuChange template) create builder for SetSkuChange instancepreviousValue
(String previousValue) Value before the change.
-
Constructor Details
-
SetSkuChangeBuilder
public SetSkuChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
catalogData
staged
, if the staged ProductCatalogData was updated.current
, if the current ProductCatalogData was updated.
- Parameters:
catalogData
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getCatalogData
staged
, if the staged ProductCatalogData was updated.current
, if the current ProductCatalogData was updated.
- Returns:
- catalogData
-
build
builds SetSkuChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetSkuChange>
- Returns:
- SetSkuChange
-
buildUnchecked
builds SetSkuChange without checking for non-null required values- Returns:
- SetSkuChange
-
of
factory method for an instance of SetSkuChangeBuilder- Returns:
- builder
-
of
create builder for SetSkuChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-