Interface AttributeReferenceType
- All Superinterfaces:
AttributeType
AttributeReferenceType
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()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AttributeReferenceTypebuilder
(AttributeReferenceType template) create builder for AttributeReferenceType instancestatic AttributeReferenceType
deepCopy
(AttributeReferenceType template) factory method to create a deep copy of AttributeReferenceType@NotNull AttributeReferenceTypeId
Name of the resource type that the value should reference.static AttributeReferenceType
of()
factory methodstatic AttributeReferenceType
of
(AttributeReferenceType template) factory method to create a shallow copy AttributeReferenceTypevoid
setReferenceTypeId
(AttributeReferenceTypeId referenceTypeId) Name of the resource type that the value should reference.static com.fasterxml.jackson.core.type.TypeReference<AttributeReferenceType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.AttributeType
getName, withAttributeType
-
Field Details
-
REFERENCE
discriminator value for AttributeReferenceType- See Also:
-
-
Method Details
-
getReferenceTypeId
Name of the resource type that the value should reference.
- Returns:
- referenceTypeId
-
setReferenceTypeId
Name of the resource type that the value should reference.
- Parameters:
referenceTypeId
- value to be set
-
of
factory method- Returns:
- instance of AttributeReferenceType
-
of
factory method to create a shallow copy AttributeReferenceType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AttributeReferenceType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeReferenceType- Returns:
- builder
-
builder
create builder for AttributeReferenceType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeReferenceType
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-