Class OrderSetCustomerIdActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetCustomerIdActionBuilder
- All Implemented Interfaces:
Builder<OrderSetCustomerIdAction>
public class OrderSetCustomerIdActionBuilder
extends Object
implements Builder<OrderSetCustomerIdAction>
OrderSetCustomerIdActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetCustomerIdAction orderSetCustomerIdAction = OrderSetCustomerIdAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetCustomerIdAction with checking for non-null required valuesbuilds OrderSetCustomerIdAction without checking for non-null required valuescustomerId
(String customerId) id
of an existing Customer.id
of an existing Customer.of()
factory method for an instance of OrderSetCustomerIdActionBuilderof
(OrderSetCustomerIdAction template) create builder for OrderSetCustomerIdAction instance
-
Constructor Details
-
OrderSetCustomerIdActionBuilder
public OrderSetCustomerIdActionBuilder()
-
-
Method Details
-
customerId
id
of an existing Customer. If empty, any existing value is removed.- Parameters:
customerId
- value to be set- Returns:
- Builder
-
getCustomerId
id
of an existing Customer. If empty, any existing value is removed.- Returns:
- customerId
-
build
builds OrderSetCustomerIdAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetCustomerIdAction>
- Returns:
- OrderSetCustomerIdAction
-
buildUnchecked
builds OrderSetCustomerIdAction without checking for non-null required values- Returns:
- OrderSetCustomerIdAction
-
of
factory method for an instance of OrderSetCustomerIdActionBuilder- Returns:
- builder
-
of
create builder for OrderSetCustomerIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-