Class BooleanAttributeBuilder
java.lang.Object
com.commercetools.importapi.models.productvariants.BooleanAttributeBuilder
- All Implemented Interfaces:
Builder<BooleanAttribute>
BooleanAttributeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BooleanAttribute booleanAttribute = BooleanAttribute.builder()
.value(true)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BooleanAttribute with checking for non-null required valuesbuilds BooleanAttribute without checking for non-null required valuesgetName()
Required if used for ProductVariantImport.getValue()
true
orfalse
Required if used for ProductVariantImport.static BooleanAttributeBuilder
of()
factory method for an instance of BooleanAttributeBuilderstatic BooleanAttributeBuilder
of
(BooleanAttribute template) create builder for BooleanAttribute instancetrue
orfalse
-
Constructor Details
-
BooleanAttributeBuilder
public BooleanAttributeBuilder()
-
-
Method Details
-
name
Required if used for ProductVariantImport. Must not be set if used for ProductVariantPatch.
Must match
name
of an AttributeDefinition of the Product Type.- Parameters:
name
- value to be set- Returns:
- Builder
-
value
true
orfalse
- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Required if used for ProductVariantImport. Must not be set if used for ProductVariantPatch.
Must match
name
of an AttributeDefinition of the Product Type.- Returns:
- name
-
getValue
true
orfalse
- Returns:
- value
-
build
builds BooleanAttribute with checking for non-null required values- Specified by:
build
in interfaceBuilder<BooleanAttribute>
- Returns:
- BooleanAttribute
-
buildUnchecked
builds BooleanAttribute without checking for non-null required values- Returns:
- BooleanAttribute
-
of
factory method for an instance of BooleanAttributeBuilder- Returns:
- builder
-
of
create builder for BooleanAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-