Class CartSetCustomLineItemTaxAmountActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetCustomLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CartSetCustomLineItemTaxAmountAction>
public class CartSetCustomLineItemTaxAmountActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<CartSetCustomLineItemTaxAmountAction>
CartSetCustomLineItemTaxAmountActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetCustomLineItemTaxAmountAction cartSetCustomLineItemTaxAmountAction = CartSetCustomLineItemTaxAmountAction.builder()
.customLineItemId("{customLineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetCustomLineItemTaxAmountAction with checking for non-null required valuesbuilds CartSetCustomLineItemTaxAmountAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.externalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.Value to set.id
of the CustomLineItem to update.Value to set.of()
factory method for an instance of CartSetCustomLineItemTaxAmountActionBuilderof
(CartSetCustomLineItemTaxAmountAction template) create builder for CartSetCustomLineItemTaxAmountAction instanceValue to set.
-
Constructor Details
-
CartSetCustomLineItemTaxAmountActionBuilder
-
-
Method Details
-
customLineItemId
id
of the CustomLineItem to update.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
externalTaxAmount
public CartSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraftBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
withExternalTaxAmount
public CartSetCustomLineItemTaxAmountActionBuilder withExternalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraft> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
externalTaxAmount
public CartSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(@Nullable ExternalTaxAmountDraft externalTaxAmount) Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxAmount
- value to be set- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update.- Returns:
- customLineItemId
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
build
builds CartSetCustomLineItemTaxAmountAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<CartSetCustomLineItemTaxAmountAction>
- Returns:
- CartSetCustomLineItemTaxAmountAction
-
buildUnchecked
builds CartSetCustomLineItemTaxAmountAction without checking for non-null required values- Returns:
- CartSetCustomLineItemTaxAmountAction
-
of
factory method for an instance of CartSetCustomLineItemTaxAmountActionBuilder- Returns:
- builder
-
of
public static CartSetCustomLineItemTaxAmountActionBuilder of(CartSetCustomLineItemTaxAmountAction template) create builder for CartSetCustomLineItemTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-