Interface StateKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a State.
Example to create an instance using the builder pattern
StateKeyReference stateKeyReference = StateKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StateKeyReferenceBuilderbuilder()builder factory method for StateKeyReferencestatic StateKeyReferenceBuilderbuilder(StateKeyReference template) create builder for StateKeyReference instancecopyDeep()static StateKeyReferencedeepCopy(StateKeyReference template) factory method to create a deep copy of StateKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced State.static StateKeyReferenceof()factory methodstatic StateKeyReferenceof(StateKeyReference template) factory method to create a shallow copy StateKeyReferencevoidUser-defined unique identifier of the referenced State.static com.fasterxml.jackson.core.type.TypeReference<StateKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStateKeyReference(Function<StateKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
STATE
discriminator value for StateKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced State.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced State.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of StateKeyReference
-
of
factory method to create a shallow copy StateKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StateKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of StateKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateKeyReference- Returns:
- builder
-
builder
create builder for StateKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStateKeyReference
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
-