Class SetAssetCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetAssetCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetAssetCustomFieldChange>
public class SetAssetCustomFieldChangeBuilder
extends Object
implements Builder<SetAssetCustomFieldChange>
SetAssetCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetAssetCustomFieldChange setAssetCustomFieldChange = SetAssetCustomFieldChange.builder()
.change("{change}")
.name("{name}")
.customTypeId("{customTypeId}")
.asset(assetBuilder -> assetBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasset(AssetChangeValue asset) Information about the updated Asset.Information about the updated Asset.build()builds SetAssetCustomFieldChange with checking for non-null required valuesbuilds SetAssetCustomFieldChange without checking for non-null required valuesset the value to the changecustomTypeId(String customTypeId) idof the referenced Type.getAsset()Information about the updated Asset.value of change}idof the referenced Type.getName()Name of the Custom Field.Value after the change.Value before the change.Name of the Custom Field.Value after the change.of()factory method for an instance of SetAssetCustomFieldChangeBuilderof(SetAssetCustomFieldChange template) create builder for SetAssetCustomFieldChange instancepreviousValue(Object previousValue) Value before the change.Information about the updated Asset.
-
Constructor Details
-
SetAssetCustomFieldChangeBuilder
public SetAssetCustomFieldChangeBuilder()
-
-
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
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
customTypeId
idof the referenced Type.- Parameters:
customTypeId- value to be set- Returns:
- Builder
-
asset
public SetAssetCustomFieldChangeBuilder asset(Function<AssetChangeValueBuilder, AssetChangeValueBuilder> builder) Information about the updated Asset.
- Parameters:
builder- function to build the asset value- Returns:
- Builder
-
withAsset
public SetAssetCustomFieldChangeBuilder 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
-
getName
Name of the Custom Field.
- Returns:
- name
-
getCustomTypeId
idof the referenced Type.- Returns:
- customTypeId
-
getAsset
Information about the updated Asset.
- Returns:
- asset
-
build
builds SetAssetCustomFieldChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetAssetCustomFieldChange>- Returns:
- SetAssetCustomFieldChange
-
buildUnchecked
builds SetAssetCustomFieldChange without checking for non-null required values- Returns:
- SetAssetCustomFieldChange
-
of
factory method for an instance of SetAssetCustomFieldChangeBuilder- Returns:
- builder
-
of
create builder for SetAssetCustomFieldChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-