Class StateSetNameActionBuilder
java.lang.Object
com.commercetools.api.models.state.StateSetNameActionBuilder
- All Implemented Interfaces:
Builder<StateSetNameAction>
StateSetNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateSetNameAction stateSetNameAction = StateSetNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StateSetNameAction with checking for non-null required valuesbuilds StateSetNameAction without checking for non-null required valuesgetName()
Value to set.name
(LocalizedString name) Value to set.Value to set.static StateSetNameActionBuilder
of()
factory method for an instance of StateSetNameActionBuilderstatic StateSetNameActionBuilder
of
(StateSetNameAction template) create builder for StateSetNameAction instanceValue to set.
-
Constructor Details
-
StateSetNameActionBuilder
public StateSetNameActionBuilder()
-
-
Method Details
-
name
public StateSetNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Value to set. If empty, any existing value will be removed.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getName
Value to set. If empty, any existing value will be removed.
- Returns:
- name
-
build
builds StateSetNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StateSetNameAction>
- Returns:
- StateSetNameAction
-
buildUnchecked
builds StateSetNameAction without checking for non-null required values- Returns:
- StateSetNameAction
-
of
factory method for an instance of StateSetNameActionBuilder- Returns:
- builder
-
of
create builder for StateSetNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-