Interface CustomerResourceIdentifier
- All Superinterfaces:
Identifiable<Customer>
,ResourceIdentifier
,WithKey
ResourceIdentifier to a Customer. Either id
or key
is required. If both are set, an InvalidJsonInput error is returned.
Example to create an instance using the builder pattern
CustomerResourceIdentifier customerResourceIdentifier = CustomerResourceIdentifier.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerResourceIdentifierbuilder
(CustomerResourceIdentifier template) create builder for CustomerResourceIdentifier instancestatic CustomerResourceIdentifier
deepCopy
(CustomerResourceIdentifier template) factory method to create a deep copy of CustomerResourceIdentifiergetId()
Unique identifier of the referenced Customer.getKey()
User-defined unique identifier of the referenced Customer.static CustomerResourceIdentifier
of()
factory methodstatic CustomerResourceIdentifier
of
(CustomerResourceIdentifier template) factory method to create a shallow copy CustomerResourceIdentifiervoid
Unique identifier of the referenced Customer.void
User-defined unique identifier of the referenced Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerResourceIdentifier>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
getTypeId, withResourceIdentifier
-
Field Details
-
CUSTOMER
discriminator value for CustomerResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced Customer. Required if
key
is absent.- Specified by:
getId
in interfaceIdentifiable<Customer>
- Specified by:
getId
in interfaceResourceIdentifier
- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced Customer. Required if
id
is absent.- Specified by:
getKey
in interfaceResourceIdentifier
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setId
Unique identifier of the referenced Customer. Required if
key
is absent.- Specified by:
setId
in interfaceResourceIdentifier
- Parameters:
id
- value to be set
-
setKey
User-defined unique identifier of the referenced Customer. Required if
id
is absent.- Specified by:
setKey
in interfaceResourceIdentifier
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of CustomerResourceIdentifier
-
of
factory method to create a shallow copy CustomerResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerResourceIdentifier- Returns:
- builder
-
builder
create builder for CustomerResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerResourceIdentifier
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
-