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