Class AttributeSetTypeBuilder
java.lang.Object
com.commercetools.importapi.models.producttypes.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) set the value to the elementTypeelementType
(Function<AttributeTypeBuilder, Builder<? extends AttributeType>> builder) set the value to the elementType using the builder functionvalue of elementType}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
set the value to the elementType- Parameters:
elementType
- value to be set- Returns:
- Builder
-
elementType
public AttributeSetTypeBuilder elementType(Function<AttributeTypeBuilder, Builder<? extends AttributeType>> builder) set the value to the elementType using the builder function- Parameters:
builder
- function to build the elementType value- Returns:
- Builder
-
getElementType
value of elementType}- 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
-