Class CustomerReferenceImpl
java.lang.Object
com.commercetools.api.models.customer.CustomerReferenceImpl
- All Implemented Interfaces:
Reference
,ReferenceMixin
,CustomerReference
,Identifiable<Customer>
,IdentifiableObjHolder<Customer>
,io.vrap.rmf.base.client.ModelBase
public class CustomerReferenceImpl
extends Object
implements CustomerReference, io.vrap.rmf.base.client.ModelBase
Reference to a Customer.
-
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.customer.CustomerReference
CUSTOMER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Unique identifier of the referenced Customer.getObj()
Contains the representation of the expanded Customer.Type of referenced resource.int
hashCode()
void
Unique identifier of the referenced Customer.void
Contains the representation of the expanded Customer.toString()
Methods inherited from interface com.commercetools.api.models.customer.CustomerReference
withCustomerReference
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.common.Reference
withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Constructor Details
-
CustomerReferenceImpl
public CustomerReferenceImpl()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 Customer.
- Specified by:
getId
in interfaceCustomerReference
- Specified by:
getId
in interfaceIdentifiable<Customer>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
getObj
Contains the representation of the expanded Customer. Only present in responses to requests with Reference Expansion for Customers.
- Specified by:
getObj
in interfaceCustomerReference
- Specified by:
getObj
in interfaceIdentifiableObjHolder<Customer>
- Returns:
- obj
-
setId
Description copied from interface:CustomerReference
Unique identifier of the referenced Customer.
- Specified by:
setId
in interfaceCustomerReference
- Specified by:
setId
in interfaceReference
- Parameters:
id
- value to be set
-
setObj
Description copied from interface:CustomerReference
Contains the representation of the expanded Customer. Only present in responses to requests with Reference Expansion for Customers.
- Specified by:
setObj
in interfaceCustomerReference
- Parameters:
obj
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-