Class CustomerSetMiddleNameActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerSetMiddleNameActionBuilder
- All Implemented Interfaces:
Builder<CustomerSetMiddleNameAction>
public class CustomerSetMiddleNameActionBuilder
extends Object
implements Builder<CustomerSetMiddleNameAction>
CustomerSetMiddleNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSetMiddleNameAction customerSetMiddleNameAction = CustomerSetMiddleNameAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerSetMiddleNameAction with checking for non-null required valuesbuilds CustomerSetMiddleNameAction without checking for non-null required valuesValue to set.middleName
(String middleName) Value to set.of()
factory method for an instance of CustomerSetMiddleNameActionBuilderof
(CustomerSetMiddleNameAction template) create builder for CustomerSetMiddleNameAction instance
-
Constructor Details
-
CustomerSetMiddleNameActionBuilder
public CustomerSetMiddleNameActionBuilder()
-
-
Method Details
-
middleName
Value to set. If empty, any existing value is removed.
- Parameters:
middleName
- value to be set- Returns:
- Builder
-
getMiddleName
Value to set. If empty, any existing value is removed.
- Returns:
- middleName
-
build
builds CustomerSetMiddleNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSetMiddleNameAction>
- Returns:
- CustomerSetMiddleNameAction
-
buildUnchecked
builds CustomerSetMiddleNameAction without checking for non-null required values- Returns:
- CustomerSetMiddleNameAction
-
of
factory method for an instance of CustomerSetMiddleNameActionBuilder- Returns:
- builder
-
of
create builder for CustomerSetMiddleNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-