Interface StateReference
- All Superinterfaces:
Identifiable<State>,IdentifiableObjHolder<State>,Reference,ReferenceMixin
public interface StateReference
extends Reference, Identifiable<State>, IdentifiableObjHolder<State>
-
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.@Valid StategetObj()Contains the representation of the expanded State.static StateReferenceof()factory methodstatic StateReferenceof(StateReference template) factory method to create a shallow copy StateReferencevoidUnique identifier of the referenced State.voidContains the representation of the expanded 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.api.models.common.Reference
getTypeId, withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
STATE
discriminator value for StateReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded State. Only present in responses to requests with Reference Expansion for States.
- Specified by:
getObjin interfaceIdentifiableObjHolder<State>- Returns:
- obj
-
getId
Unique identifier of the referenced State.
- Specified by:
getIdin interfaceIdentifiable<State>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded State. Only present in responses to requests with Reference Expansion for States.
- Parameters:
obj- value to be set
-
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
-