Class AttributeSetTypeBuilder
java.lang.Object
com.commercetools.api.models.product_type.AttributeSetTypeBuilder
- All Implemented Interfaces:
Builder<AttributeSetType>
AttributeSetTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeSetType attributeSetType = AttributeSetType.builder()
.elementType(elementTypeBuilder -> elementTypeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AttributeSetType with checking for non-null required valuesbuilds AttributeSetType without checking for non-null required valueselementType
(AttributeType elementType) Attribute type of the elements in the set.elementType
(Function<AttributeTypeBuilder, Builder<? extends AttributeType>> builder) Attribute type of the elements in the set.Attribute type of the elements in the set.static AttributeSetTypeBuilder
of()
factory method for an instance of AttributeSetTypeBuilderstatic AttributeSetTypeBuilder
of
(AttributeSetType template) create builder for AttributeSetType instance
-
Constructor Details
-
AttributeSetTypeBuilder
public AttributeSetTypeBuilder()
-
-
Method Details
-
elementType
Attribute type of the elements in the set.
- Parameters:
elementType
- value to be set- Returns:
- Builder
-
elementType
public AttributeSetTypeBuilder elementType(Function<AttributeTypeBuilder, Builder<? extends AttributeType>> builder) Attribute type of the elements in the set.
- Parameters:
builder
- function to build the elementType value- Returns:
- Builder
-
getElementType
Attribute type of the elements in the set.
- Returns:
- elementType
-
build
builds AttributeSetType with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeSetType>
- Returns:
- AttributeSetType
-
buildUnchecked
builds AttributeSetType without checking for non-null required values- Returns:
- AttributeSetType
-
of
factory method for an instance of AttributeSetTypeBuilder- Returns:
- builder
-
of
create builder for AttributeSetType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-