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