Class ShippingMethodChangeTaxCategoryActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodChangeTaxCategoryActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodChangeTaxCategoryAction>
public class ShippingMethodChangeTaxCategoryActionBuilder
extends Object
implements Builder<ShippingMethodChangeTaxCategoryAction>
ShippingMethodChangeTaxCategoryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodChangeTaxCategoryAction shippingMethodChangeTaxCategoryAction = ShippingMethodChangeTaxCategoryAction.builder()
.taxCategory(taxCategoryBuilder -> taxCategoryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodChangeTaxCategoryAction with checking for non-null required valuesbuilds ShippingMethodChangeTaxCategoryAction without checking for non-null required valuesValue to set.of()
factory method for an instance of ShippingMethodChangeTaxCategoryActionBuilderof
(ShippingMethodChangeTaxCategoryAction template) create builder for ShippingMethodChangeTaxCategoryAction instancetaxCategory
(TaxCategoryResourceIdentifier taxCategory) Value to set.taxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) Value to set.withTaxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) Value to set.
-
Constructor Details
-
ShippingMethodChangeTaxCategoryActionBuilder
public ShippingMethodChangeTaxCategoryActionBuilder()
-
-
Method Details
-
taxCategory
public ShippingMethodChangeTaxCategoryActionBuilder taxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) Value to set.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public ShippingMethodChangeTaxCategoryActionBuilder withTaxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) Value to set.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
public ShippingMethodChangeTaxCategoryActionBuilder taxCategory(TaxCategoryResourceIdentifier taxCategory) Value to set.
- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
getTaxCategory
Value to set.
- Returns:
- taxCategory
-
build
builds ShippingMethodChangeTaxCategoryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodChangeTaxCategoryAction>
- Returns:
- ShippingMethodChangeTaxCategoryAction
-
buildUnchecked
builds ShippingMethodChangeTaxCategoryAction without checking for non-null required values- Returns:
- ShippingMethodChangeTaxCategoryAction
-
of
factory method for an instance of ShippingMethodChangeTaxCategoryActionBuilder- Returns:
- builder
-
of
public static ShippingMethodChangeTaxCategoryActionBuilder of(ShippingMethodChangeTaxCategoryAction template) create builder for ShippingMethodChangeTaxCategoryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-