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