Class QuoteCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.QuoteCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<QuoteCreatedMessagePayload>
public class QuoteCreatedMessagePayloadBuilder
extends Object
implements Builder<QuoteCreatedMessagePayload>
QuoteCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteCreatedMessagePayload quoteCreatedMessagePayload = QuoteCreatedMessagePayload.builder()
.quote(quoteBuilder -> quoteBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteCreatedMessagePayload with checking for non-null required valuesbuilds QuoteCreatedMessagePayload without checking for non-null required valuesgetQuote()
Quote that was created.of()
factory method for an instance of QuoteCreatedMessagePayloadBuilderof
(QuoteCreatedMessagePayload template) create builder for QuoteCreatedMessagePayload instanceQuote that was created.quote
(Function<QuoteBuilder, QuoteBuilder> builder) Quote that was created.withQuote
(Function<QuoteBuilder, Quote> builder) Quote that was created.
-
Constructor Details
-
QuoteCreatedMessagePayloadBuilder
public QuoteCreatedMessagePayloadBuilder()
-
-
Method Details
-
quote
Quote that was created.
- Parameters:
builder
- function to build the quote value- Returns:
- Builder
-
withQuote
Quote that was created.
- Parameters:
builder
- function to build the quote value- Returns:
- Builder
-
quote
Quote that was created.
- Parameters:
quote
- value to be set- Returns:
- Builder
-
getQuote
Quote that was created.
- Returns:
- quote
-
build
builds QuoteCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteCreatedMessagePayload>
- Returns:
- QuoteCreatedMessagePayload
-
buildUnchecked
builds QuoteCreatedMessagePayload without checking for non-null required values- Returns:
- QuoteCreatedMessagePayload
-
of
factory method for an instance of QuoteCreatedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for QuoteCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-