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