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