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