Interface ProductReference
- All Superinterfaces:
Identifiable<Product>,IdentifiableObjHolder<Product>,ProductReferenceMixin,Reference,ReferenceMixin
public interface ProductReference
extends Reference, Identifiable<Product>, ProductReferenceMixin, IdentifiableObjHolder<Product>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductReferenceBuilderbuilder()builder factory method for ProductReferencestatic ProductReferenceBuilderbuilder(ProductReference template) create builder for ProductReference instancecopyDeep()static ProductReferencedeepCopy(ProductReference template) factory method to create a deep copy of ProductReference@NotNull StringgetId()Unique identifier of the referenced Product.@Valid ProductgetObj()Contains the representation of the expanded Product.static ProductReferenceof()factory methodstatic ProductReferenceof(ProductReference template) factory method to create a shallow copy ProductReferencevoidUnique identifier of the referenced Product.voidContains the representation of the expanded Product.static com.fasterxml.jackson.core.type.TypeReference<ProductReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductReference(Function<ProductReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductReferenceMixin
toResourceIdentifierMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
-
Field Details
-
PRODUCT
discriminator value for ProductReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Product. Only present in responses to requests with Reference Expansion for Products.
- Specified by:
getObjin interfaceIdentifiableObjHolder<Product>- Returns:
- obj
-
getId
Unique identifier of the referenced Product.
- Specified by:
getIdin interfaceIdentifiable<Product>- Specified by:
getIdin interfaceProductReferenceMixin- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded Product. Only present in responses to requests with Reference Expansion for Products.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced Product.
-
of
factory method- Returns:
- instance of ProductReference
-
of
factory method to create a shallow copy ProductReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductReference copyDeep() -
deepCopy
factory method to create a deep copy of ProductReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductReference- Returns:
- builder
-
builder
create builder for ProductReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductReference
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
-