Class QuoteRequestCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.QuoteRequestCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<QuoteRequestCreatedMessagePayload>
public class QuoteRequestCreatedMessagePayloadBuilder
extends Object
implements Builder<QuoteRequestCreatedMessagePayload>
QuoteRequestCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteRequestCreatedMessagePayload quoteRequestCreatedMessagePayload = QuoteRequestCreatedMessagePayload.builder()
.quoteRequest(quoteRequestBuilder -> quoteRequestBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteRequestCreatedMessagePayload with checking for non-null required valuesbuilds QuoteRequestCreatedMessagePayload without checking for non-null required valuesQuote Request that was created.of()
factory method for an instance of QuoteRequestCreatedMessagePayloadBuilderof
(QuoteRequestCreatedMessagePayload template) create builder for QuoteRequestCreatedMessagePayload instancequoteRequest
(QuoteRequest quoteRequest) Quote Request that was created.Quote Request that was created.Quote Request that was created.
-
Constructor Details
-
QuoteRequestCreatedMessagePayloadBuilder
public QuoteRequestCreatedMessagePayloadBuilder()
-
-
Method Details
-
quoteRequest
public QuoteRequestCreatedMessagePayloadBuilder quoteRequest(Function<QuoteRequestBuilder, QuoteRequestBuilder> builder) Quote Request that was created.
- Parameters:
builder
- function to build the quoteRequest value- Returns:
- Builder
-
withQuoteRequest
public QuoteRequestCreatedMessagePayloadBuilder withQuoteRequest(Function<QuoteRequestBuilder, QuoteRequest> builder) Quote Request that was created.
- Parameters:
builder
- function to build the quoteRequest value- Returns:
- Builder
-
quoteRequest
Quote Request that was created.
- Parameters:
quoteRequest
- value to be set- Returns:
- Builder
-
getQuoteRequest
Quote Request that was created.
- Returns:
- quoteRequest
-
build
builds QuoteRequestCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteRequestCreatedMessagePayload>
- Returns:
- QuoteRequestCreatedMessagePayload
-
buildUnchecked
builds QuoteRequestCreatedMessagePayload without checking for non-null required values- Returns:
- QuoteRequestCreatedMessagePayload
-
of
factory method for an instance of QuoteRequestCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static QuoteRequestCreatedMessagePayloadBuilder of(QuoteRequestCreatedMessagePayload template) create builder for QuoteRequestCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-