Class AttributeReferenceTypeBuilder
java.lang.Object
com.commercetools.api.models.product_type.AttributeReferenceTypeBuilder
- All Implemented Interfaces:
Builder<AttributeReferenceType>
public class AttributeReferenceTypeBuilder
extends Object
implements Builder<AttributeReferenceType>
AttributeReferenceTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeReferenceType attributeReferenceType = AttributeReferenceType.builder()
.referenceTypeId(AttributeReferenceTypeId.ASSOCIATE_ROLE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AttributeReferenceType with checking for non-null required valuesbuilds AttributeReferenceType without checking for non-null required valuesName of the resource type that the value should reference.of()
factory method for an instance of AttributeReferenceTypeBuilderof
(AttributeReferenceType template) create builder for AttributeReferenceType instancereferenceTypeId
(AttributeReferenceTypeId referenceTypeId) Name of the resource type that the value should reference.
-
Constructor Details
-
AttributeReferenceTypeBuilder
public AttributeReferenceTypeBuilder()
-
-
Method Details
-
referenceTypeId
Name of the resource type that the value should reference.
- Parameters:
referenceTypeId
- value to be set- Returns:
- Builder
-
getReferenceTypeId
Name of the resource type that the value should reference.
- Returns:
- referenceTypeId
-
build
builds AttributeReferenceType with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeReferenceType>
- Returns:
- AttributeReferenceType
-
buildUnchecked
builds AttributeReferenceType without checking for non-null required values- Returns:
- AttributeReferenceType
-
of
factory method for an instance of AttributeReferenceTypeBuilder- Returns:
- builder
-
of
create builder for AttributeReferenceType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-