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