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