Interface CustomObjectKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a CustomObject.
Example to create an instance using the builder pattern
CustomObjectKeyReference customObjectKeyReference = CustomObjectKeyReference.builder()
.key("{key}")
.container("{container}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomObjectKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomObjectKeyReferencebuilder(CustomObjectKeyReference template) create builder for CustomObjectKeyReference instancecopyDeep()static CustomObjectKeyReferencedeepCopy(CustomObjectKeyReference template) factory method to create a deep copy of CustomObjectKeyReference@NotNull StringThecontainerof the referenced CustomObject.@NotNull StringgetKey()User-defined unique identifier of the referenced CustomObject.static CustomObjectKeyReferenceof()factory methodstatic CustomObjectKeyReferenceof(CustomObjectKeyReference template) factory method to create a shallow copy CustomObjectKeyReferencevoidsetContainer(String container) Thecontainerof the referenced CustomObject.voidUser-defined unique identifier of the referenced CustomObject.static com.fasterxml.jackson.core.type.TypeReference<CustomObjectKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
KEY_VALUE_DOCUMENT
discriminator value for CustomObjectKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced CustomObject.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
getContainer
The
containerof the referenced CustomObject.- Returns:
- container
-
setKey
User-defined unique identifier of the referenced CustomObject.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
setContainer
The
containerof the referenced CustomObject.- Parameters:
container- value to be set
-
of
factory method- Returns:
- instance of CustomObjectKeyReference
-
of
factory method to create a shallow copy CustomObjectKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomObjectKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of CustomObjectKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomObjectKeyReference- Returns:
- builder
-
builder
create builder for CustomObjectKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomObjectKeyReference
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
-