Interface CustomerKeyReference
- All Superinterfaces:
KeyReference
References a customer by key.
Example to create an instance using the builder pattern
CustomerKeyReference customerKeyReference = CustomerKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerKeyReferenceBuilder
builder()
builder factory method for CustomerKeyReferencestatic CustomerKeyReferenceBuilder
builder
(CustomerKeyReference template) create builder for CustomerKeyReference instancestatic CustomerKeyReference
deepCopy
(CustomerKeyReference template) factory method to create a deep copy of CustomerKeyReferencestatic CustomerKeyReference
of()
factory methodstatic CustomerKeyReference
of
(CustomerKeyReference template) factory method to create a shallow copy CustomerKeyReferencestatic 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
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
CUSTOMER
discriminator value for CustomerKeyReference- See Also:
-
-
Method Details
-
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
-
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
-