Class ChannelChangeDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelChangeDescriptionActionBuilder
- All Implemented Interfaces:
Builder<ChannelChangeDescriptionAction>
public class ChannelChangeDescriptionActionBuilder
extends Object
implements Builder<ChannelChangeDescriptionAction>
ChannelChangeDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelChangeDescriptionAction channelChangeDescriptionAction = ChannelChangeDescriptionAction.builder()
.description(descriptionBuilder -> descriptionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChannelChangeDescriptionAction with checking for non-null required valuesbuilds ChannelChangeDescriptionAction without checking for non-null required valuesdescription
(LocalizedString description) New value to set.New value to set.New value to set.of()
factory method for an instance of ChannelChangeDescriptionActionBuilderof
(ChannelChangeDescriptionAction template) create builder for ChannelChangeDescriptionAction instanceNew value to set.
-
Constructor Details
-
ChannelChangeDescriptionActionBuilder
public ChannelChangeDescriptionActionBuilder()
-
-
Method Details
-
description
public ChannelChangeDescriptionActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ChannelChangeDescriptionActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
New value to set. Must not be empty.
- Parameters:
description
- value to be set- Returns:
- Builder
-
getDescription
New value to set. Must not be empty.
- Returns:
- description
-
build
builds ChannelChangeDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelChangeDescriptionAction>
- Returns:
- ChannelChangeDescriptionAction
-
buildUnchecked
builds ChannelChangeDescriptionAction without checking for non-null required values- Returns:
- ChannelChangeDescriptionAction
-
of
factory method for an instance of ChannelChangeDescriptionActionBuilder- Returns:
- builder
-
of
create builder for ChannelChangeDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-