Interface ProductTypeReference
- All Superinterfaces:
Identifiable<ProductType>
,IdentifiableObjHolder<ProductType>
,Reference
,ReferenceMixin
public interface ProductTypeReference
extends Reference, Identifiable<ProductType>, IdentifiableObjHolder<ProductType>
Reference to a ProductType.
Example to create an instance using the builder pattern
ProductTypeReference productTypeReference = ProductTypeReference.builder()
.id("{id}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeReference -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductTypeReferenceBuilder
builder()
builder factory method for ProductTypeReferencestatic ProductTypeReferenceBuilder
builder
(ProductTypeReference template) create builder for ProductTypeReference instancestatic ProductTypeReference
deepCopy
(ProductTypeReference template) factory method to create a deep copy of ProductTypeReference@NotNull String
getId()
Unique identifier of the referenced ProductType.@Valid ProductType
getObj()
Contains the representation of the expanded ProductType.static ProductTypeReference
of()
factory methodstatic ProductTypeReference
of
(ProductTypeReference template) factory method to create a shallow copy ProductTypeReferencevoid
Unique identifier of the referenced ProductType.void
setObj
(ProductType obj) Contains the representation of the expanded ProductType.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTypeReference
(Function<ProductTypeReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
PRODUCT_TYPE
discriminator value for ProductTypeReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded ProductType. Only present in responses to requests with Reference Expansion for ProductTypes.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<ProductType>
- Returns:
- obj
-
getId
Unique identifier of the referenced ProductType.
- Specified by:
getId
in interfaceIdentifiable<ProductType>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded ProductType. Only present in responses to requests with Reference Expansion for ProductTypes.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced ProductType.
-
of
factory method- Returns:
- instance of ProductTypeReference
-
of
factory method to create a shallow copy ProductTypeReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductTypeReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeReference- Returns:
- builder
-
builder
create builder for ProductTypeReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeReference
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
-