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