Class QuoteChangeCustomerActionBuilder
java.lang.Object
com.commercetools.api.models.quote.QuoteChangeCustomerActionBuilder
- All Implemented Interfaces:
Builder<QuoteChangeCustomerAction>
public class QuoteChangeCustomerActionBuilder
extends Object
implements Builder<QuoteChangeCustomerAction>
QuoteChangeCustomerActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteChangeCustomerAction quoteChangeCustomerAction = QuoteChangeCustomerAction.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteChangeCustomerAction with checking for non-null required valuesbuilds QuoteChangeCustomerAction without checking for non-null required valuescustomer
(CustomerResourceIdentifier customer) New Customer to own the Quote.New Customer to own the Quote.New Customer to own the Quote.of()
factory method for an instance of QuoteChangeCustomerActionBuilderof
(QuoteChangeCustomerAction template) create builder for QuoteChangeCustomerAction instanceNew Customer to own the Quote.
-
Constructor Details
-
QuoteChangeCustomerActionBuilder
public QuoteChangeCustomerActionBuilder()
-
-
Method Details
-
customer
public QuoteChangeCustomerActionBuilder customer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifierBuilder> builder) New Customer to own the Quote.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public QuoteChangeCustomerActionBuilder withCustomer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifier> builder) New Customer to own the Quote.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
New Customer to own the Quote.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
getCustomer
New Customer to own the Quote.
- Returns:
- customer
-
build
builds QuoteChangeCustomerAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteChangeCustomerAction>
- Returns:
- QuoteChangeCustomerAction
-
buildUnchecked
builds QuoteChangeCustomerAction without checking for non-null required values- Returns:
- QuoteChangeCustomerAction
-
of
factory method for an instance of QuoteChangeCustomerActionBuilder- Returns:
- builder
-
of
create builder for QuoteChangeCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-