Class CustomerGroupSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.customer_group.CustomerGroupSetKeyActionBuilder
- All Implemented Interfaces:
Builder<CustomerGroupSetKeyAction>
public class CustomerGroupSetKeyActionBuilder
extends Object
implements Builder<CustomerGroupSetKeyAction>
CustomerGroupSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerGroupSetKeyAction customerGroupSetKeyAction = CustomerGroupSetKeyAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomerGroupSetKeyAction with checking for non-null required valuesbuilds CustomerGroupSetKeyAction 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.of()factory method for an instance of CustomerGroupSetKeyActionBuilderof(CustomerGroupSetKeyAction template) create builder for CustomerGroupSetKeyAction instance
-
Constructor Details
-
CustomerGroupSetKeyActionBuilder
public CustomerGroupSetKeyActionBuilder()
-
-
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 CustomerGroupSetKeyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomerGroupSetKeyAction>- Returns:
- CustomerGroupSetKeyAction
-
buildUnchecked
builds CustomerGroupSetKeyAction without checking for non-null required values- Returns:
- CustomerGroupSetKeyAction
-
of
factory method for an instance of CustomerGroupSetKeyActionBuilder- Returns:
- builder
-
of
create builder for CustomerGroupSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-