Class QuoteRequestLabelBuilder
java.lang.Object
com.commercetools.history.models.label.QuoteRequestLabelBuilder
- All Implemented Interfaces:
Builder<QuoteRequestLabel>
QuoteRequestLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteRequestLabel quoteRequestLabel = QuoteRequestLabel.builder()
.key("{key}")
.customer(customerBuilder -> customerBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteRequestLabel with checking for non-null required valuesbuilds QuoteRequestLabel without checking for non-null required valuesThe Buyer who raised the Quote Request.customer
(Function<ReferenceBuilder, ReferenceBuilder> builder) The Buyer who raised the Quote Request.The Buyer who raised the Quote Request.getKey()
User-defined unique identifier of the Quote Request.User-defined unique identifier of the Quote Request.static QuoteRequestLabelBuilder
of()
factory method for an instance of QuoteRequestLabelBuilderstatic QuoteRequestLabelBuilder
of
(QuoteRequestLabel template) create builder for QuoteRequestLabel instancewithCustomer
(Function<ReferenceBuilder, Reference> builder) The Buyer who raised the Quote Request.
-
Constructor Details
-
QuoteRequestLabelBuilder
public QuoteRequestLabelBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Quote Request.
- Parameters:
key
- value to be set- Returns:
- Builder
-
customer
The Buyer who raised the Quote Request.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
The Buyer who raised the Quote Request.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Buyer who raised the Quote Request.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Quote Request.
- Returns:
- key
-
getCustomer
The Buyer who raised the Quote Request.
- Returns:
- customer
-
build
builds QuoteRequestLabel with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteRequestLabel>
- Returns:
- QuoteRequestLabel
-
buildUnchecked
builds QuoteRequestLabel without checking for non-null required values- Returns:
- QuoteRequestLabel
-
of
factory method for an instance of QuoteRequestLabelBuilder- Returns:
- builder
-
of
create builder for QuoteRequestLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-