Class SetAssetKeyChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetAssetKeyChangeBuilder
- All Implemented Interfaces:
Builder<SetAssetKeyChange>
SetAssetKeyChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetAssetKeyChange setAssetKeyChange = SetAssetKeyChange.builder()
.change("{change}")
.previousValue("{previousValue}")
.nextValue("{nextValue}")
.asset(assetBuilder -> assetBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasset
(AssetChangeValue asset) Information about the updated Asset.Information about the updated Asset.build()
builds SetAssetKeyChange with checking for non-null required valuesbuilds SetAssetKeyChange without checking for non-null required valuesset the value to the changegetAsset()
Information about the updated Asset.value of change}Value after the change.Value before the change.Value after the change.static SetAssetKeyChangeBuilder
of()
factory method for an instance of SetAssetKeyChangeBuilderstatic SetAssetKeyChangeBuilder
of
(SetAssetKeyChange template) create builder for SetAssetKeyChange instancepreviousValue
(String previousValue) Value before the change.Information about the updated Asset.
-
Constructor Details
-
SetAssetKeyChangeBuilder
public SetAssetKeyChangeBuilder()
-
-
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
-
asset
public SetAssetKeyChangeBuilder asset(Function<AssetChangeValueBuilder, AssetChangeValueBuilder> builder) Information about the updated Asset.
- Parameters:
builder
- function to build the asset value- Returns:
- Builder
-
withAsset
public SetAssetKeyChangeBuilder withAsset(Function<AssetChangeValueBuilder, AssetChangeValue> builder) Information about the updated Asset.
- Parameters:
builder
- function to build the asset value- Returns:
- Builder
-
asset
Information about the updated Asset.
- Parameters:
asset
- 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
-
getAsset
Information about the updated Asset.
- Returns:
- asset
-
build
builds SetAssetKeyChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetAssetKeyChange>
- Returns:
- SetAssetKeyChange
-
buildUnchecked
builds SetAssetKeyChange without checking for non-null required values- Returns:
- SetAssetKeyChange
-
of
factory method for an instance of SetAssetKeyChangeBuilder- Returns:
- builder
-
of
create builder for SetAssetKeyChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-