Class CustomerSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerSetKeyActionBuilder
- All Implemented Interfaces:
Builder<CustomerSetKeyAction>
CustomerSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSetKeyAction customerSetKeyAction = CustomerSetKeyAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomerSetKeyAction with checking for non-null required valuesbuilds CustomerSetKeyAction without checking for non-null required valuesgetKey()Ifkeyis absent ornull, the existing key, if any, will be removed.Ifkeyis absent ornull, the existing key, if any, will be removed.static CustomerSetKeyActionBuilderof()factory method for an instance of CustomerSetKeyActionBuilderstatic CustomerSetKeyActionBuilderof(CustomerSetKeyAction template) create builder for CustomerSetKeyAction instance
-
Constructor Details
-
CustomerSetKeyActionBuilder
public CustomerSetKeyActionBuilder()
-
-
Method Details
-
key
If
keyis absent ornull, the existing key, if any, will be removed.- Parameters:
key- value to be set- Returns:
- Builder
-
getKey
If
keyis absent ornull, the existing key, if any, will be removed.- Returns:
- key
-
build
builds CustomerSetKeyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomerSetKeyAction>- Returns:
- CustomerSetKeyAction
-
buildUnchecked
builds CustomerSetKeyAction without checking for non-null required values- Returns:
- CustomerSetKeyAction
-
of
factory method for an instance of CustomerSetKeyActionBuilder- Returns:
- builder
-
of
create builder for CustomerSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-