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