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