Class AttributeNestedTypeBuilder
java.lang.Object
com.commercetools.api.models.product_type.AttributeNestedTypeBuilder
- All Implemented Interfaces:
Builder<AttributeNestedType>
AttributeNestedTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeNestedType attributeNestedType = AttributeNestedType.builder()
.typeReference(typeReferenceBuilder -> typeReferenceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AttributeNestedType with checking for non-null required valuesbuilds AttributeNestedType without checking for non-null required valuesAttributes that can be stored as nested Attributes of the current Attribute.static AttributeNestedTypeBuilder
of()
factory method for an instance of AttributeNestedTypeBuilderstatic AttributeNestedTypeBuilder
of
(AttributeNestedType template) create builder for AttributeNestedType instancetypeReference
(ProductTypeReference typeReference) Attributes that can be stored as nested Attributes of the current Attribute.Attributes that can be stored as nested Attributes of the current Attribute.Attributes that can be stored as nested Attributes of the current Attribute.
-
Constructor Details
-
AttributeNestedTypeBuilder
public AttributeNestedTypeBuilder()
-
-
Method Details
-
typeReference
public AttributeNestedTypeBuilder typeReference(Function<ProductTypeReferenceBuilder, ProductTypeReferenceBuilder> builder) Attributes that can be stored as nested Attributes of the current Attribute.
- Parameters:
builder
- function to build the typeReference value- Returns:
- Builder
-
withTypeReference
public AttributeNestedTypeBuilder withTypeReference(Function<ProductTypeReferenceBuilder, ProductTypeReference> builder) Attributes that can be stored as nested Attributes of the current Attribute.
- Parameters:
builder
- function to build the typeReference value- Returns:
- Builder
-
typeReference
Attributes that can be stored as nested Attributes of the current Attribute.
- Parameters:
typeReference
- value to be set- Returns:
- Builder
-
getTypeReference
Attributes that can be stored as nested Attributes of the current Attribute.
- Returns:
- typeReference
-
build
builds AttributeNestedType with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeNestedType>
- Returns:
- AttributeNestedType
-
buildUnchecked
builds AttributeNestedType without checking for non-null required values- Returns:
- AttributeNestedType
-
of
factory method for an instance of AttributeNestedTypeBuilder- Returns:
- builder
-
of
create builder for AttributeNestedType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-