Class QuoteReferenceBuilder
java.lang.Object
com.commercetools.api.models.quote.QuoteReferenceBuilder
- All Implemented Interfaces:
Builder<QuoteReference>
QuoteReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteReference quoteReference = QuoteReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds QuoteReference with checking for non-null required valuesbuilds QuoteReference without checking for non-null required valuesgetId()Unique ID of the referenced resource.getObj()Contains the representation of the expanded Quote.Unique ID of the referenced resource.Contains the representation of the expanded Quote.obj(Function<QuoteBuilder, QuoteBuilder> builder) Contains the representation of the expanded Quote.static QuoteReferenceBuilderof()factory method for an instance of QuoteReferenceBuilderstatic QuoteReferenceBuilderof(QuoteReference template) create builder for QuoteReference instancewithObj(Function<QuoteBuilder, Quote> builder) Contains the representation of the expanded Quote.
-
Constructor Details
-
QuoteReferenceBuilder
public QuoteReferenceBuilder()
-
-
Method Details
-
id
Unique ID of the referenced resource.
- Parameters:
id- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Quote. Only present in responses to requests with Reference Expansion for Quote.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Quote. Only present in responses to requests with Reference Expansion for Quote.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Quote. Only present in responses to requests with Reference Expansion for Quote.
- Parameters:
obj- value to be set- Returns:
- Builder
-
getId
Unique ID of the referenced resource.
- Returns:
- id
-
getObj
Contains the representation of the expanded Quote. Only present in responses to requests with Reference Expansion for Quote.
- Returns:
- obj
-
build
builds QuoteReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<QuoteReference>- Returns:
- QuoteReference
-
buildUnchecked
builds QuoteReference without checking for non-null required values- Returns:
- QuoteReference
-
of
factory method for an instance of QuoteReferenceBuilder- Returns:
- builder
-
of
create builder for QuoteReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-