Interface OrderEditReference
- All Superinterfaces:
Identifiable<OrderEdit>
,IdentifiableObjHolder<OrderEdit>
,Reference
,ReferenceMixin
public interface OrderEditReference
extends Reference, Identifiable<OrderEdit>, IdentifiableObjHolder<OrderEdit>
Reference to an OrderEdit.
Example to create an instance using the builder pattern
OrderEditReference orderEditReference = OrderEditReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderEditReferenceBuilder
builder()
builder factory method for OrderEditReferencestatic OrderEditReferenceBuilder
builder
(OrderEditReference template) create builder for OrderEditReference instancestatic OrderEditReference
deepCopy
(OrderEditReference template) factory method to create a deep copy of OrderEditReference@NotNull String
getId()
Unique identifier of the referenced OrderEdit.@Valid OrderEdit
getObj()
Contains the representation of the expanded Order Edit.static OrderEditReference
of()
factory methodstatic OrderEditReference
of
(OrderEditReference template) factory method to create a shallow copy OrderEditReferencevoid
Unique identifier of the referenced OrderEdit.void
Contains the representation of the expanded Order Edit.static com.fasterxml.jackson.core.type.TypeReference<OrderEditReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderEditReference
(Function<OrderEditReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
ORDER_EDIT
discriminator value for OrderEditReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<OrderEdit>
- Returns:
- obj
-
getId
Unique identifier of the referenced OrderEdit.
- Specified by:
getId
in interfaceIdentifiable<OrderEdit>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced OrderEdit.
-
of
factory method- Returns:
- instance of OrderEditReference
-
of
factory method to create a shallow copy OrderEditReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderEditReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderEditReference- Returns:
- builder
-
builder
create builder for OrderEditReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderEditReference
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
-