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