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 CustomerKeyReferenceBuilderbuilder()builder factory method for CustomerKeyReferencestatic CustomerKeyReferenceBuilderbuilder(CustomerKeyReference template) create builder for CustomerKeyReference instancecopyDeep()static CustomerKeyReferencedeepCopy(CustomerKeyReference template) factory method to create a deep copy of CustomerKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced Customer.static CustomerKeyReferenceof()factory methodstatic CustomerKeyReferenceof(CustomerKeyReference template) factory method to create a shallow copy CustomerKeyReferencevoidUser-defined unique identifier of the referenced Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerKeyReference(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:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced Customer.
- Specified by:
setKeyin 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:
copyDeepin 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
-