Interface CustomObjectKeyReference
- All Superinterfaces:
KeyReference
References a key value document by key.
Example to create an instance using the builder pattern
CustomObjectKeyReference customObjectKeyReference = CustomObjectKeyReference.builder()
.key("{key}")
.container("{container}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomObjectKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomObjectKeyReferencebuilder
(CustomObjectKeyReference template) create builder for CustomObjectKeyReference instancestatic CustomObjectKeyReference
deepCopy
(CustomObjectKeyReference template) factory method to create a deep copy of CustomObjectKeyReference@NotNull String
static CustomObjectKeyReference
of()
factory methodstatic CustomObjectKeyReference
of
(CustomObjectKeyReference template) factory method to create a shallow copy CustomObjectKeyReferencevoid
setContainer
(String container) set containerstatic com.fasterxml.jackson.core.type.TypeReference<CustomObjectKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
KEY_VALUE_DOCUMENT
discriminator value for CustomObjectKeyReference- See Also:
-
-
Method Details
-
getContainer
- Returns:
- container
-
setContainer
set container- 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
-
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
-