Class CustomerResourceIdentifierImpl
java.lang.Object
com.commercetools.api.models.customer.CustomerResourceIdentifierImpl
- All Implemented Interfaces:
ResourceIdentifier
,CustomerResourceIdentifier
,Identifiable<Customer>
,WithKey
,io.vrap.rmf.base.client.ModelBase
public class CustomerResourceIdentifierImpl
extends Object
implements CustomerResourceIdentifier, io.vrap.rmf.base.client.ModelBase
ResourceIdentifier to a Customer. Either id
or key
is required.
-
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.CustomerResourceIdentifier
CUSTOMER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Unique identifier of the referenced Customer.getKey()
User-defined unique identifier of the referenced Customer.Type of referenced resource.int
hashCode()
void
Unique identifier of the referenced Customer.void
User-defined unique identifier of the referenced Customer.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.customer.CustomerResourceIdentifier
withCustomerResourceIdentifier
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
withResourceIdentifier
-
Constructor Details
-
CustomerResourceIdentifierImpl
public CustomerResourceIdentifierImpl()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 Customer.
- Specified by:
getId
in interfaceCustomerResourceIdentifier
- Specified by:
getId
in interfaceIdentifiable<Customer>
- Specified by:
getId
in interfaceResourceIdentifier
- Returns:
- id
-
getKey
User-defined unique identifier of the referenced Customer.
- Specified by:
getKey
in interfaceCustomerResourceIdentifier
- Specified by:
getKey
in interfaceResourceIdentifier
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setId
Description copied from interface:CustomerResourceIdentifier
Unique identifier of the referenced Customer.
- Specified by:
setId
in interfaceCustomerResourceIdentifier
- Specified by:
setId
in interfaceResourceIdentifier
- Parameters:
id
- value to be set
-
setKey
Description copied from interface:CustomerResourceIdentifier
User-defined unique identifier of the referenced Customer.
- Specified by:
setKey
in interfaceCustomerResourceIdentifier
- Specified by:
setKey
in interfaceResourceIdentifier
- Parameters:
key
- value to be set
-
equals
-
hashCode
-