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