Class CartChangeCustomLineItemPriceModeActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartChangeCustomLineItemPriceModeActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CartChangeCustomLineItemPriceModeAction>
public class CartChangeCustomLineItemPriceModeActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<CartChangeCustomLineItemPriceModeAction>
CartChangeCustomLineItemPriceModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeCustomLineItemPriceModeAction cartChangeCustomLineItemPriceModeAction = CartChangeCustomLineItemPriceModeAction.builder()
.mode(CustomLineItemPriceMode.STANDARD)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartChangeCustomLineItemPriceModeAction with checking for non-null required valuesbuilds CartChangeCustomLineItemPriceModeAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.id
of the CustomLineItem to update.key
of the CustomLineItem to update.getMode()
New value to set.mode
(CustomLineItemPriceMode mode) New value to set.of()
factory method for an instance of CartChangeCustomLineItemPriceModeActionBuilderof
(CartChangeCustomLineItemPriceModeAction template) create builder for CartChangeCustomLineItemPriceModeAction instance
-
Constructor Details
-
CartChangeCustomLineItemPriceModeActionBuilder
public CartChangeCustomLineItemPriceModeActionBuilder()
-
-
Method Details
-
customLineItemId
public CartChangeCustomLineItemPriceModeActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public CartChangeCustomLineItemPriceModeActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
mode
New value to set. Must not be empty.
- Parameters:
mode
- value to be set- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getMode
New value to set. Must not be empty.
- Returns:
- mode
-
build
builds CartChangeCustomLineItemPriceModeAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<CartChangeCustomLineItemPriceModeAction>
- Returns:
- CartChangeCustomLineItemPriceModeAction
-
buildUnchecked
builds CartChangeCustomLineItemPriceModeAction without checking for non-null required values- Returns:
- CartChangeCustomLineItemPriceModeAction
-
of
factory method for an instance of CartChangeCustomLineItemPriceModeActionBuilder- Returns:
- builder
-
of
public static CartChangeCustomLineItemPriceModeActionBuilder of(CartChangeCustomLineItemPriceModeAction template) create builder for CartChangeCustomLineItemPriceModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-