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