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