Interface CustomFieldReferenceType
- All Superinterfaces:
FieldType
Field type for Reference values.
Example to create an instance using the builder pattern
CustomFieldReferenceType customFieldReferenceType = CustomFieldReferenceType.builder()
.referenceTypeId(CustomFieldReferenceValue.APPROVAL_FLOW)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomFieldReferenceTypebuilder
(CustomFieldReferenceType template) create builder for CustomFieldReferenceType instancestatic CustomFieldReferenceType
deepCopy
(CustomFieldReferenceType template) factory method to create a deep copy of CustomFieldReferenceType@NotNull CustomFieldReferenceValue
Resource type the Custom Field can reference.static CustomFieldReferenceType
of()
factory methodstatic CustomFieldReferenceType
of
(CustomFieldReferenceType template) factory method to create a shallow copy CustomFieldReferenceTypevoid
setReferenceTypeId
(CustomFieldReferenceValue referenceTypeId) Resource type the Custom Field can reference.static com.fasterxml.jackson.core.type.TypeReference<CustomFieldReferenceType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.type.FieldType
getName, withFieldType
-
Field Details
-
REFERENCE
discriminator value for CustomFieldReferenceType- See Also:
-
-
Method Details
-
getReferenceTypeId
Resource type the Custom Field can reference.
- Returns:
- referenceTypeId
-
setReferenceTypeId
Resource type the Custom Field can reference.
- Parameters:
referenceTypeId
- value to be set
-
of
factory method- Returns:
- instance of CustomFieldReferenceType
-
of
factory method to create a shallow copy CustomFieldReferenceType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomFieldReferenceType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFieldReferenceType- Returns:
- builder
-
builder
create builder for CustomFieldReferenceType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFieldReferenceType
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
-