Interface StateReference
- All Superinterfaces:
Reference
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StateReferenceBuilderbuilder()builder factory method for StateReferencestatic StateReferenceBuilderbuilder(StateReference template) create builder for StateReference instancecopyDeep()static StateReferencedeepCopy(StateReference template) factory method to create a deep copy of StateReference@NotNull StringgetId()Unique identifier of the referenced State.static StateReferenceof()factory methodstatic StateReferenceof(StateReference template) factory method to create a shallow copy StateReferencevoidUnique identifier of the referenced State.static com.fasterxml.jackson.core.type.TypeReference<StateReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStateReference(Function<StateReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.history.models.common.Reference
getTypeId, withReference
-
Field Details
-
STATE
discriminator value for StateReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced State.
-
setId
Unique identifier of the referenced State.
-
of
factory method- Returns:
- instance of StateReference
-
of
factory method to create a shallow copy StateReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StateReference copyDeep() -
deepCopy
factory method to create a deep copy of StateReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateReference- Returns:
- builder
-
builder
create builder for StateReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStateReference
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
-