Class CategoryChangeAssetNameActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategoryChangeAssetNameActionBuilder
- All Implemented Interfaces:
Builder<CategoryChangeAssetNameAction>
public class CategoryChangeAssetNameActionBuilder
extends Object
implements Builder<CategoryChangeAssetNameAction>
CategoryChangeAssetNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryChangeAssetNameAction categoryChangeAssetNameAction = CategoryChangeAssetNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNew value to set.New value to set.build()
builds CategoryChangeAssetNameAction with checking for non-null required valuesbuilds CategoryChangeAssetNameAction without checking for non-null required valuesNew value to set.New value to set.getName()
New value to set.name
(LocalizedString name) New value to set.New value to set.of()
factory method for an instance of CategoryChangeAssetNameActionBuilderof
(CategoryChangeAssetNameAction template) create builder for CategoryChangeAssetNameAction instanceNew value to set.
-
Constructor Details
-
CategoryChangeAssetNameActionBuilder
public CategoryChangeAssetNameActionBuilder()
-
-
Method Details
-
assetId
New value to set. Either
assetId
orassetKey
is required.- Parameters:
assetId
- value to be set- Returns:
- Builder
-
assetKey
New value to set. Either
assetId
orassetKey
is required.- Parameters:
assetKey
- value to be set- Returns:
- Builder
-
name
public CategoryChangeAssetNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public CategoryChangeAssetNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
New value to set. Must not be empty.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getAssetId
New value to set. Either
assetId
orassetKey
is required.- Returns:
- assetId
-
getAssetKey
New value to set. Either
assetId
orassetKey
is required.- Returns:
- assetKey
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
build
builds CategoryChangeAssetNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryChangeAssetNameAction>
- Returns:
- CategoryChangeAssetNameAction
-
buildUnchecked
builds CategoryChangeAssetNameAction without checking for non-null required values- Returns:
- CategoryChangeAssetNameAction
-
of
factory method for an instance of CategoryChangeAssetNameActionBuilder- Returns:
- builder
-
of
create builder for CategoryChangeAssetNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-