Class QuoteRequestCustomerChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.QuoteRequestCustomerChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<QuoteRequestCustomerChangedMessagePayload>
public class QuoteRequestCustomerChangedMessagePayloadBuilder
extends Object
implements Builder<QuoteRequestCustomerChangedMessagePayload>
QuoteRequestCustomerChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteRequestCustomerChangedMessagePayload quoteRequestCustomerChangedMessagePayload = QuoteRequestCustomerChangedMessagePayload.builder()
.customer(customerBuilder -> customerBuilder)
.previousCustomer(previousCustomerBuilder -> previousCustomerBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteRequestCustomerChangedMessagePayload with checking for non-null required valuesbuilds QuoteRequestCustomerChangedMessagePayload without checking for non-null required valuescustomer
(CustomerReference customer) The Buyer who now owns the Quote Request.The Buyer who now owns the Quote Request.The Buyer who now owns the Quote Request.The previous Buyer.of()
factory method for an instance of QuoteRequestCustomerChangedMessagePayloadBuilderof
(QuoteRequestCustomerChangedMessagePayload template) create builder for QuoteRequestCustomerChangedMessagePayload instancepreviousCustomer
(CustomerReference previousCustomer) The previous Buyer.The previous Buyer.The Buyer who now owns the Quote Request.The previous Buyer.
-
Constructor Details
-
QuoteRequestCustomerChangedMessagePayloadBuilder
public QuoteRequestCustomerChangedMessagePayloadBuilder()
-
-
Method Details
-
customer
public QuoteRequestCustomerChangedMessagePayloadBuilder customer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) The Buyer who now owns the Quote Request.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public QuoteRequestCustomerChangedMessagePayloadBuilder withCustomer(Function<CustomerReferenceBuilder, CustomerReference> builder) The Buyer who now owns the Quote Request.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Buyer who now owns the Quote Request.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
previousCustomer
public QuoteRequestCustomerChangedMessagePayloadBuilder previousCustomer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) The previous Buyer.
- Parameters:
builder
- function to build the previousCustomer value- Returns:
- Builder
-
withPreviousCustomer
public QuoteRequestCustomerChangedMessagePayloadBuilder withPreviousCustomer(Function<CustomerReferenceBuilder, CustomerReference> builder) The previous Buyer.
- Parameters:
builder
- function to build the previousCustomer value- Returns:
- Builder
-
previousCustomer
public QuoteRequestCustomerChangedMessagePayloadBuilder previousCustomer(CustomerReference previousCustomer) The previous Buyer.
- Parameters:
previousCustomer
- value to be set- Returns:
- Builder
-
getCustomer
The Buyer who now owns the Quote Request.
- Returns:
- customer
-
getPreviousCustomer
The previous Buyer.
- Returns:
- previousCustomer
-
build
builds QuoteRequestCustomerChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteRequestCustomerChangedMessagePayload>
- Returns:
- QuoteRequestCustomerChangedMessagePayload
-
buildUnchecked
builds QuoteRequestCustomerChangedMessagePayload without checking for non-null required values- Returns:
- QuoteRequestCustomerChangedMessagePayload
-
of
factory method for an instance of QuoteRequestCustomerChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static QuoteRequestCustomerChangedMessagePayloadBuilder of(QuoteRequestCustomerChangedMessagePayload template) create builder for QuoteRequestCustomerChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-