Class CategorySetAssetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategorySetAssetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<CategorySetAssetDescriptionAction>
public class CategorySetAssetDescriptionActionBuilder
extends Object
implements Builder<CategorySetAssetDescriptionAction>
CategorySetAssetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetAssetDescriptionAction categorySetAssetDescriptionAction = CategorySetAssetDescriptionAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNew value to set.New value to set.build()
builds CategorySetAssetDescriptionAction with checking for non-null required valuesbuilds CategorySetAssetDescriptionAction without checking for non-null required valuesdescription
(LocalizedString description) Value to set.Value to set.New value to set.New value to set.Value to set.of()
factory method for an instance of CategorySetAssetDescriptionActionBuilderof
(CategorySetAssetDescriptionAction template) create builder for CategorySetAssetDescriptionAction instanceValue to set.
-
Constructor Details
-
CategorySetAssetDescriptionActionBuilder
public CategorySetAssetDescriptionActionBuilder()
-
-
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
-
description
public CategorySetAssetDescriptionActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public CategorySetAssetDescriptionActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Value to set. If empty, any existing value will be removed.
- Parameters:
description
- 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
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
build
builds CategorySetAssetDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategorySetAssetDescriptionAction>
- Returns:
- CategorySetAssetDescriptionAction
-
buildUnchecked
builds CategorySetAssetDescriptionAction without checking for non-null required values- Returns:
- CategorySetAssetDescriptionAction
-
of
factory method for an instance of CategorySetAssetDescriptionActionBuilder- Returns:
- builder
-
of
public static CategorySetAssetDescriptionActionBuilder of(CategorySetAssetDescriptionAction template) create builder for CategorySetAssetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-