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