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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerSetKeyAction with checking for non-null required valuesbuilds CustomerSetKeyAction without checking for non-null required valuesgetKey()
Ifkey
is absent ornull
, the existing key, if any, will be removed.Ifkey
is absent ornull
, the existing key, if any, will be removed.static CustomerSetKeyActionBuilder
of()
factory method for an instance of CustomerSetKeyActionBuilderstatic CustomerSetKeyActionBuilder
of
(CustomerSetKeyAction template) create builder for CustomerSetKeyAction instance
-
Constructor Details
-
CustomerSetKeyActionBuilder
public CustomerSetKeyActionBuilder()
-
-
Method Details
-
key
If
key
is absent ornull
, the existing key, if any, will be removed.- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
If
key
is absent ornull
, the existing key, if any, will be removed.- Returns:
- key
-
build
builds CustomerSetKeyAction with checking for non-null required values- Specified by:
build
in 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
-