Class CategoryChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategoryChangeNameActionBuilder
- All Implemented Interfaces:
Builder<CategoryChangeNameAction>
public class CategoryChangeNameActionBuilder
extends Object
implements Builder<CategoryChangeNameAction>
CategoryChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryChangeNameAction categoryChangeNameAction = CategoryChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CategoryChangeNameAction with checking for non-null required valuesbuilds CategoryChangeNameAction without checking for non-null required valuesgetName()
New value to set.name
(LocalizedString name) New value to set.New value to set.of()
factory method for an instance of CategoryChangeNameActionBuilderof
(CategoryChangeNameAction template) create builder for CategoryChangeNameAction instanceNew value to set.
-
Constructor Details
-
CategoryChangeNameActionBuilder
public CategoryChangeNameActionBuilder()
-
-
Method Details
-
name
public CategoryChangeNameActionBuilder 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 CategoryChangeNameActionBuilder 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
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
build
builds CategoryChangeNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryChangeNameAction>
- Returns:
- CategoryChangeNameAction
-
buildUnchecked
builds CategoryChangeNameAction without checking for non-null required values- Returns:
- CategoryChangeNameAction
-
of
factory method for an instance of CategoryChangeNameActionBuilder- Returns:
- builder
-
of
create builder for CategoryChangeNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-