Class TaxCategoryReplaceTaxRateActionBuilder
java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryReplaceTaxRateActionBuilder
- All Implemented Interfaces:
Builder<TaxCategoryReplaceTaxRateAction>
public class TaxCategoryReplaceTaxRateActionBuilder
extends Object
implements Builder<TaxCategoryReplaceTaxRateAction>
TaxCategoryReplaceTaxRateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryReplaceTaxRateAction taxCategoryReplaceTaxRateAction = TaxCategoryReplaceTaxRateAction.builder()
.taxRate(taxRateBuilder -> taxRateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TaxCategoryReplaceTaxRateAction with checking for non-null required valuesbuilds TaxCategoryReplaceTaxRateAction without checking for non-null required valuesNew TaxRate to replace with.ID of the TaxRate to replace.Key of the TaxRate to replace.of()
factory method for an instance of TaxCategoryReplaceTaxRateActionBuilderof
(TaxCategoryReplaceTaxRateAction template) create builder for TaxCategoryReplaceTaxRateAction instancetaxRate
(TaxRateDraft taxRate) New TaxRate to replace with.New TaxRate to replace with.ID of the TaxRate to replace.taxRateKey
(String taxRateKey) Key of the TaxRate to replace.withTaxRate
(Function<TaxRateDraftBuilder, TaxRateDraft> builder) New TaxRate to replace with.
-
Constructor Details
-
TaxCategoryReplaceTaxRateActionBuilder
public TaxCategoryReplaceTaxRateActionBuilder()
-
-
Method Details
-
taxRateId
ID of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Parameters:
taxRateId
- value to be set- Returns:
- Builder
-
taxRateKey
Key of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Parameters:
taxRateKey
- value to be set- Returns:
- Builder
-
taxRate
public TaxCategoryReplaceTaxRateActionBuilder taxRate(Function<TaxRateDraftBuilder, TaxRateDraftBuilder> builder) New TaxRate to replace with.
- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
withTaxRate
public TaxCategoryReplaceTaxRateActionBuilder withTaxRate(Function<TaxRateDraftBuilder, TaxRateDraft> builder) New TaxRate to replace with.
- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
taxRate
New TaxRate to replace with.
- Parameters:
taxRate
- value to be set- Returns:
- Builder
-
getTaxRateId
ID of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Returns:
- taxRateId
-
getTaxRateKey
Key of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Returns:
- taxRateKey
-
getTaxRate
New TaxRate to replace with.
- Returns:
- taxRate
-
build
builds TaxCategoryReplaceTaxRateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TaxCategoryReplaceTaxRateAction>
- Returns:
- TaxCategoryReplaceTaxRateAction
-
buildUnchecked
builds TaxCategoryReplaceTaxRateAction without checking for non-null required values- Returns:
- TaxCategoryReplaceTaxRateAction
-
of
factory method for an instance of TaxCategoryReplaceTaxRateActionBuilder- Returns:
- builder
-
of
create builder for TaxCategoryReplaceTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-