Class CartSetShippingMethodTaxAmountActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetShippingMethodTaxAmountActionBuilder
- All Implemented Interfaces:
Builder<CartSetShippingMethodTaxAmountAction>
public class CartSetShippingMethodTaxAmountActionBuilder
extends Object
implements Builder<CartSetShippingMethodTaxAmountAction>
CartSetShippingMethodTaxAmountActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetShippingMethodTaxAmountAction cartSetShippingMethodTaxAmountAction = CartSetShippingMethodTaxAmountAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetShippingMethodTaxAmountAction with checking for non-null required valuesbuilds CartSetShippingMethodTaxAmountAction without checking for non-null required valuesexternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.Value to set.Value to set.key
of the ShippingMethod to update.of()
factory method for an instance of CartSetShippingMethodTaxAmountActionBuilderof
(CartSetShippingMethodTaxAmountAction template) create builder for CartSetShippingMethodTaxAmountAction instanceshippingKey
(String shippingKey) key
of the ShippingMethod to update.Value to set.
-
Constructor Details
-
CartSetShippingMethodTaxAmountActionBuilder
public CartSetShippingMethodTaxAmountActionBuilder()
-
-
Method Details
-
shippingKey
key
of the ShippingMethod to update. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
externalTaxAmount
public CartSetShippingMethodTaxAmountActionBuilder 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 CartSetShippingMethodTaxAmountActionBuilder 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 CartSetShippingMethodTaxAmountActionBuilder externalTaxAmount(@Nullable ExternalTaxAmountDraft externalTaxAmount) Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxAmount
- value to be set- Returns:
- Builder
-
getShippingKey
key
of the ShippingMethod to update. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
build
builds CartSetShippingMethodTaxAmountAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetShippingMethodTaxAmountAction>
- Returns:
- CartSetShippingMethodTaxAmountAction
-
buildUnchecked
builds CartSetShippingMethodTaxAmountAction without checking for non-null required values- Returns:
- CartSetShippingMethodTaxAmountAction
-
of
factory method for an instance of CartSetShippingMethodTaxAmountActionBuilder- Returns:
- builder
-
of
public static CartSetShippingMethodTaxAmountActionBuilder of(CartSetShippingMethodTaxAmountAction template) create builder for CartSetShippingMethodTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-