Class SetProductVariantKeyChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetProductVariantKeyChangeBuilder
- All Implemented Interfaces:
Builder<SetProductVariantKeyChange>
public class SetProductVariantKeyChangeBuilder
extends Object
implements Builder<SetProductVariantKeyChange>
SetProductVariantKeyChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetProductVariantKeyChange setProductVariantKeyChange = SetProductVariantKeyChange.builder()
.change("{change}")
.previousValue("{previousValue}")
.nextValue("{nextValue}")
.catalogData("{catalogData}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SetProductVariantKeyChange with checking for non-null required valuesbuilds SetProductVariantKeyChange 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.of()factory method for an instance of SetProductVariantKeyChangeBuilderof(SetProductVariantKeyChange template) create builder for SetProductVariantKeyChange instancepreviousValue(String previousValue) Value before the change.
-
Constructor Details
-
SetProductVariantKeyChangeBuilder
public SetProductVariantKeyChangeBuilder()
-
-
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 SetProductVariantKeyChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetProductVariantKeyChange>- Returns:
- SetProductVariantKeyChange
-
buildUnchecked
builds SetProductVariantKeyChange without checking for non-null required values- Returns:
- SetProductVariantKeyChange
-
of
factory method for an instance of SetProductVariantKeyChangeBuilder- Returns:
- builder
-
of
create builder for SetProductVariantKeyChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-