Class AttributeReferenceTypeBuilder
java.lang.Object
com.commercetools.importapi.models.producttypes.AttributeReferenceTypeBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<AttributeReferenceType>
public class AttributeReferenceTypeBuilder
extends Object
implements io.vrap.rmf.base.client.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.CART)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AttributeReferenceType with checking for non-null required valuesbuilds AttributeReferenceType without checking for non-null required valuesThe type of the referenced resource.of()
factory method for an instance of AttributeReferenceTypeBuilderof
(AttributeReferenceType template) create builder for AttributeReferenceType instancereferenceTypeId
(ReferenceType referenceTypeId) The type of the referenced resource.
-
Constructor Details
-
AttributeReferenceTypeBuilder
public AttributeReferenceTypeBuilder()
-
-
Method Details
-
referenceTypeId
The type of the referenced resource.
- Parameters:
referenceTypeId
- value to be set- Returns:
- Builder
-
getReferenceTypeId
The type of the referenced resource.
- Returns:
- referenceTypeId
-
build
builds AttributeReferenceType with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-