Class TypeChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.type.TypeChangeNameActionBuilder
- All Implemented Interfaces:
Builder<TypeChangeNameAction>
TypeChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeChangeNameAction typeChangeNameAction = TypeChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TypeChangeNameAction with checking for non-null required valuesbuilds TypeChangeNameAction without checking for non-null required valuesgetName()
New value to set.name
(LocalizedString name) New value to set.New value to set.static TypeChangeNameActionBuilder
of()
factory method for an instance of TypeChangeNameActionBuilderstatic TypeChangeNameActionBuilder
of
(TypeChangeNameAction template) create builder for TypeChangeNameAction instanceNew value to set.
-
Constructor Details
-
TypeChangeNameActionBuilder
public TypeChangeNameActionBuilder()
-
-
Method Details
-
name
public TypeChangeNameActionBuilder 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 TypeChangeNameActionBuilder 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 TypeChangeNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TypeChangeNameAction>
- Returns:
- TypeChangeNameAction
-
buildUnchecked
builds TypeChangeNameAction without checking for non-null required values- Returns:
- TypeChangeNameAction
-
of
factory method for an instance of TypeChangeNameActionBuilder- Returns:
- builder
-
of
create builder for TypeChangeNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-