Interface StateKeyReference
- All Superinterfaces:
KeyReference
References a state by key.
Example to create an instance using the builder pattern
StateKeyReference stateKeyReference = StateKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StateKeyReferenceBuilder
builder()
builder factory method for StateKeyReferencestatic StateKeyReferenceBuilder
builder
(StateKeyReference template) create builder for StateKeyReference instancestatic StateKeyReference
deepCopy
(StateKeyReference template) factory method to create a deep copy of StateKeyReferencestatic StateKeyReference
of()
factory methodstatic StateKeyReference
of
(StateKeyReference template) factory method to create a shallow copy StateKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<StateKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStateKeyReference
(Function<StateKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
STATE
discriminator value for StateKeyReference- See Also:
-
-
Method Details
-
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
-
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
-