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