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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssetChangeValue with checking for non-null required valuesbuilds AssetChangeValue without checking for non-null required valuesgetId()
id
of the Asset.getName()
Name of the Asset.id
of the Asset.name
(LocalizedString name) Name of the Asset.Name of the Asset.static AssetChangeValueBuilder
of()
factory method for an instance of AssetChangeValueBuilderstatic AssetChangeValueBuilder
of
(AssetChangeValue template) create builder for AssetChangeValue instanceName of the Asset.
-
Constructor Details
-
AssetChangeValueBuilder
public AssetChangeValueBuilder()
-
-
Method Details
-
id
id
of 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
id
of the Asset.- Returns:
- id
-
getName
Name of the Asset.
- Returns:
- name
-
build
builds AssetChangeValue with checking for non-null required values- Specified by:
build
in 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
-