Class ProductReferenceImpl
java.lang.Object
com.commercetools.api.models.product.ProductReferenceImpl
- All Implemented Interfaces:
Reference
,ReferenceMixin
,Identifiable<Product>
,ProductReference
,ProductReferenceMixin
,io.vrap.rmf.base.client.ModelBase
public class ProductReferenceImpl
extends Object
implements ProductReference, io.vrap.rmf.base.client.ModelBase
Reference to a Product.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.product.ProductReference
PRODUCT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Unique identifier of the referenced Product.getObj()
Contains the representation of the expanded Product.Type of referenced resource.int
hashCode()
void
Unique identifier of the referenced Product.void
Contains the representation of the expanded Product.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductReference
withProductReference
Methods inherited from interface com.commercetools.api.models.product.ProductReferenceMixin
toResourceIdentifier
Methods inherited from interface com.commercetools.api.models.common.Reference
withReference
-
Constructor Details
-
ProductReferenceImpl
public ProductReferenceImpl()create empty instance
-
-
Method Details
-
getTypeId
Type of referenced resource.
- Specified by:
getTypeId
in interfaceReference
- Specified by:
getTypeId
in interfaceReferenceMixin
- Returns:
- typeId
-
getId
Unique identifier of the referenced Product.
- Specified by:
getId
in interfaceIdentifiable<Product>
- Specified by:
getId
in interfaceProductReference
- Specified by:
getId
in interfaceProductReferenceMixin
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
getObj
Contains the representation of the expanded Product. Only present in responses to requests with Reference Expansion for Products.
- Specified by:
getObj
in interfaceProductReference
- Returns:
- obj
-
setId
Description copied from interface:ProductReference
Unique identifier of the referenced Product.
- Specified by:
setId
in interfaceProductReference
- Specified by:
setId
in interfaceReference
- Parameters:
id
- value to be set
-
setObj
Description copied from interface:ProductReference
Contains the representation of the expanded Product. Only present in responses to requests with Reference Expansion for Products.
- Specified by:
setObj
in interfaceProductReference
- Parameters:
obj
- value to be set
-
equals
-
hashCode
-