Class CartSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetKeyActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CartSetKeyAction>
public class CartSetKeyActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<CartSetKeyAction>
CartSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetKeyAction cartSetKeyAction = CartSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetKeyAction with checking for non-null required valuesbuilds CartSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.static CartSetKeyActionBuilder
of()
factory method for an instance of CartSetKeyActionBuilderstatic CartSetKeyActionBuilder
of
(CartSetKeyAction template) create builder for CartSetKeyAction instance
-
Constructor Details
-
CartSetKeyActionBuilder
public CartSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing key will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing key will be removed.
- Returns:
- key
-
build
builds CartSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<CartSetKeyAction>
- Returns:
- CartSetKeyAction
-
buildUnchecked
builds CartSetKeyAction without checking for non-null required values- Returns:
- CartSetKeyAction
-
of
factory method for an instance of CartSetKeyActionBuilder- Returns:
- builder
-
of
create builder for CartSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-