Class ProductDiscountResourceIdentifierImpl
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountResourceIdentifierImpl
- All Implemented Interfaces:
ResourceIdentifier
,Identifiable<ProductDiscount>
,ProductDiscountResourceIdentifier
,WithKey
,io.vrap.rmf.base.client.ModelBase
public class ProductDiscountResourceIdentifierImpl
extends Object
implements ProductDiscountResourceIdentifier, io.vrap.rmf.base.client.ModelBase
ResourceIdentifier to a ProductDiscount.
-
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_discount.ProductDiscountResourceIdentifier
PRODUCT_DISCOUNT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Unique identifier of the referenced ProductDiscount.getKey()
User-defined unique identifier of the referenced ProductDiscount.Type of referenced resource.int
hashCode()
void
Unique identifier of the referenced ProductDiscount.void
User-defined unique identifier of the referenced ProductDiscount.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_discount.ProductDiscountResourceIdentifier
withProductDiscountResourceIdentifier
Methods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
withResourceIdentifier
-
Constructor Details
-
ProductDiscountResourceIdentifierImpl
public ProductDiscountResourceIdentifierImpl()create empty instance
-
-
Method Details
-
getTypeId
Type of referenced resource. If given, it must match the expected ReferenceTypeId of the referenced resource.
- Specified by:
getTypeId
in interfaceResourceIdentifier
- Returns:
- typeId
-
getId
Unique identifier of the referenced ProductDiscount. Either
id
orkey
is required.- Specified by:
getId
in interfaceIdentifiable<ProductDiscount>
- Specified by:
getId
in interfaceProductDiscountResourceIdentifier
- Specified by:
getId
in interfaceResourceIdentifier
- Returns:
- id
-
getKey
User-defined unique identifier of the referenced ProductDiscount. Either
id
orkey
is required.- Specified by:
getKey
in interfaceProductDiscountResourceIdentifier
- Specified by:
getKey
in interfaceResourceIdentifier
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setId
Description copied from interface:ProductDiscountResourceIdentifier
Unique identifier of the referenced ProductDiscount. Either
id
orkey
is required.- Specified by:
setId
in interfaceProductDiscountResourceIdentifier
- Specified by:
setId
in interfaceResourceIdentifier
- Parameters:
id
- value to be set
-
setKey
Description copied from interface:ProductDiscountResourceIdentifier
User-defined unique identifier of the referenced ProductDiscount. Either
id
orkey
is required.- Specified by:
setKey
in interfaceProductDiscountResourceIdentifier
- Specified by:
setKey
in interfaceResourceIdentifier
- Parameters:
key
- value to be set
-
equals
-
hashCode
public int hashCode()
-