Interface CustomerKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a Customer.
Example to create an instance using the builder pattern
CustomerKeyReference customerKeyReference = CustomerKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerKeyReferenceBuilder
builder()
builder factory method for CustomerKeyReferencestatic CustomerKeyReferenceBuilder
builder
(CustomerKeyReference template) create builder for CustomerKeyReference instancecopyDeep()
static CustomerKeyReference
deepCopy
(CustomerKeyReference template) factory method to create a deep copy of CustomerKeyReference@NotNull String
getKey()
User-defined unique identifier of the referenced Customer.static CustomerKeyReference
of()
factory methodstatic CustomerKeyReference
of
(CustomerKeyReference template) factory method to create a shallow copy CustomerKeyReferencevoid
User-defined unique identifier of the referenced Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerKeyReference
(Function<CustomerKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
CUSTOMER
discriminator value for CustomerKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced Customer.
- Specified by:
getKey
in interfaceKeyReference
- Returns:
- key
-
setKey
User-defined unique identifier of the referenced Customer.
- Specified by:
setKey
in interfaceKeyReference
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of CustomerKeyReference
-
of
factory method to create a shallow copy CustomerKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerKeyReference copyDeep()- Specified by:
copyDeep
in interfaceKeyReference
-
deepCopy
factory method to create a deep copy of CustomerKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerKeyReference- Returns:
- builder
-
builder
create builder for CustomerKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerKeyReference
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
-