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 String
discriminator value for CustomObjectKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomObjectKeyReferencebuilder
(CustomObjectKeyReference template) create builder for CustomObjectKeyReference instancecopyDeep()
static CustomObjectKeyReference
deepCopy
(CustomObjectKeyReference template) factory method to create a deep copy of CustomObjectKeyReference@NotNull String
Thecontainer
of the referenced CustomObject.@NotNull String
getKey()
User-defined unique identifier of the referenced CustomObject.static CustomObjectKeyReference
of()
factory methodstatic CustomObjectKeyReference
of
(CustomObjectKeyReference template) factory method to create a shallow copy CustomObjectKeyReferencevoid
setContainer
(String container) Thecontainer
of the referenced CustomObject.void
User-defined unique identifier of the referenced CustomObject.static 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
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:
getKey
in interfaceKeyReference
- Returns:
- key
-
getContainer
The
container
of the referenced CustomObject.- Returns:
- container
-
setKey
User-defined unique identifier of the referenced CustomObject.
- Specified by:
setKey
in interfaceKeyReference
- Parameters:
key
- value to be set
-
setContainer
The
container
of 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:
copyDeep
in 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
-