Class AssetChangeValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.AssetChangeValueBuilder
- All Implemented Interfaces:
Builder<AssetChangeValue>
AssetChangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssetChangeValue assetChangeValue = AssetChangeValue.builder()
.id("{id}")
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds AssetChangeValue with checking for non-null required valuesbuilds AssetChangeValue without checking for non-null required valuesgetId()idof the Asset.getName()Name of the Asset.idof the Asset.name(LocalizedString name) Name of the Asset.Name of the Asset.static AssetChangeValueBuilderof()factory method for an instance of AssetChangeValueBuilderstatic AssetChangeValueBuilderof(AssetChangeValue template) create builder for AssetChangeValue instanceName of the Asset.
-
Constructor Details
-
AssetChangeValueBuilder
public AssetChangeValueBuilder()
-
-
Method Details
-
id
idof the Asset.- Parameters:
id- value to be set- Returns:
- Builder
-
name
public AssetChangeValueBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the Asset.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
withName
Name of the Asset.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
name
Name of the Asset.
- Parameters:
name- value to be set- Returns:
- Builder
-
getId
idof the Asset.- Returns:
- id
-
getName
Name of the Asset.
- Returns:
- name
-
build
builds AssetChangeValue with checking for non-null required values- Specified by:
buildin interfaceBuilder<AssetChangeValue>- Returns:
- AssetChangeValue
-
buildUnchecked
builds AssetChangeValue without checking for non-null required values- Returns:
- AssetChangeValue
-
of
factory method for an instance of AssetChangeValueBuilder- Returns:
- builder
-
of
create builder for AssetChangeValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-