Class TaxCategoryAddTaxRateActionBuilder
java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryAddTaxRateActionBuilder
- All Implemented Interfaces:
Builder<TaxCategoryAddTaxRateAction>
public class TaxCategoryAddTaxRateActionBuilder
extends Object
implements Builder<TaxCategoryAddTaxRateAction>
TaxCategoryAddTaxRateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryAddTaxRateAction taxCategoryAddTaxRateAction = TaxCategoryAddTaxRateAction.builder()
.taxRate(taxRateBuilder -> taxRateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TaxCategoryAddTaxRateAction with checking for non-null required valuesbuilds TaxCategoryAddTaxRateAction without checking for non-null required valuesValue to append to therates
array.of()
factory method for an instance of TaxCategoryAddTaxRateActionBuilderof
(TaxCategoryAddTaxRateAction template) create builder for TaxCategoryAddTaxRateAction instancetaxRate
(TaxRateDraft taxRate) Value to append to therates
array.Value to append to therates
array.withTaxRate
(Function<TaxRateDraftBuilder, TaxRateDraft> builder) Value to append to therates
array.
-
Constructor Details
-
TaxCategoryAddTaxRateActionBuilder
public TaxCategoryAddTaxRateActionBuilder()
-
-
Method Details
-
taxRate
public TaxCategoryAddTaxRateActionBuilder taxRate(Function<TaxRateDraftBuilder, TaxRateDraftBuilder> builder) Value to append to the
rates
array.- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
withTaxRate
public TaxCategoryAddTaxRateActionBuilder withTaxRate(Function<TaxRateDraftBuilder, TaxRateDraft> builder) Value to append to the
rates
array.- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
taxRate
Value to append to the
rates
array.- Parameters:
taxRate
- value to be set- Returns:
- Builder
-
getTaxRate
Value to append to the
rates
array.- Returns:
- taxRate
-
build
builds TaxCategoryAddTaxRateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TaxCategoryAddTaxRateAction>
- Returns:
- TaxCategoryAddTaxRateAction
-
buildUnchecked
builds TaxCategoryAddTaxRateAction without checking for non-null required values- Returns:
- TaxCategoryAddTaxRateAction
-
of
factory method for an instance of TaxCategoryAddTaxRateActionBuilder- Returns:
- builder
-
of
create builder for TaxCategoryAddTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-