Class AttributeGroupAddAttributeActionBuilder
java.lang.Object
com.commercetools.api.models.attribute_group.AttributeGroupAddAttributeActionBuilder
- All Implemented Interfaces:
Builder<AttributeGroupAddAttributeAction>
public class AttributeGroupAddAttributeActionBuilder
extends Object
implements Builder<AttributeGroupAddAttributeAction>
AttributeGroupAddAttributeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeGroupAddAttributeAction attributeGroupAddAttributeAction = AttributeGroupAddAttributeAction.builder()
.attribute(attributeBuilder -> attributeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattribute
(AttributeReference attribute) Value to add.Value to add.build()
builds AttributeGroupAddAttributeAction with checking for non-null required valuesbuilds AttributeGroupAddAttributeAction without checking for non-null required valuesValue to add.of()
factory method for an instance of AttributeGroupAddAttributeActionBuilderof
(AttributeGroupAddAttributeAction template) create builder for AttributeGroupAddAttributeAction instanceValue to add.
-
Constructor Details
-
AttributeGroupAddAttributeActionBuilder
public AttributeGroupAddAttributeActionBuilder()
-
-
Method Details
-
attribute
public AttributeGroupAddAttributeActionBuilder attribute(Function<AttributeReferenceBuilder, AttributeReferenceBuilder> builder) Value to add.
- Parameters:
builder
- function to build the attribute value- Returns:
- Builder
-
withAttribute
public AttributeGroupAddAttributeActionBuilder withAttribute(Function<AttributeReferenceBuilder, AttributeReference> builder) Value to add.
- Parameters:
builder
- function to build the attribute value- Returns:
- Builder
-
attribute
Value to add.
- Parameters:
attribute
- value to be set- Returns:
- Builder
-
getAttribute
Value to add.
- Returns:
- attribute
-
build
builds AttributeGroupAddAttributeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeGroupAddAttributeAction>
- Returns:
- AttributeGroupAddAttributeAction
-
buildUnchecked
builds AttributeGroupAddAttributeAction without checking for non-null required values- Returns:
- AttributeGroupAddAttributeAction
-
of
factory method for an instance of AttributeGroupAddAttributeActionBuilder- Returns:
- builder
-
of
create builder for AttributeGroupAddAttributeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-