Class AttributeReferenceTypeBuilder
java.lang.Object
com.commercetools.importapi.models.producttypes.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(ReferenceType.ASSOCIATE_ROLE)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds AttributeReferenceType with checking for non-null required valuesbuilds AttributeReferenceType without checking for non-null required valuesType of referenced resource.of()factory method for an instance of AttributeReferenceTypeBuilderof(AttributeReferenceType template) create builder for AttributeReferenceType instancereferenceTypeId(ReferenceType referenceTypeId) Type of referenced resource.
-
Constructor Details
-
AttributeReferenceTypeBuilder
public AttributeReferenceTypeBuilder()
-
-
Method Details
-
referenceTypeId
Type of referenced resource.
- Parameters:
referenceTypeId- value to be set- Returns:
- Builder
-
getReferenceTypeId
Type of referenced resource.
- Returns:
- referenceTypeId
-
build
builds AttributeReferenceType with checking for non-null required values- Specified by:
buildin 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
-