Class ProductSetTaxCategoryActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetTaxCategoryActionBuilder
- All Implemented Interfaces:
Builder<ProductSetTaxCategoryAction>
public class ProductSetTaxCategoryActionBuilder
extends Object
implements Builder<ProductSetTaxCategoryAction>
ProductSetTaxCategoryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetTaxCategoryAction productSetTaxCategoryAction = ProductSetTaxCategoryAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetTaxCategoryAction with checking for non-null required valuesbuilds ProductSetTaxCategoryAction without checking for non-null required valuesThe Tax Category to set.of()
factory method for an instance of ProductSetTaxCategoryActionBuilderof
(ProductSetTaxCategoryAction template) create builder for ProductSetTaxCategoryAction instancetaxCategory
(TaxCategoryResourceIdentifier taxCategory) The Tax Category to set.taxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) The Tax Category to set.withTaxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) The Tax Category to set.
-
Constructor Details
-
ProductSetTaxCategoryActionBuilder
public ProductSetTaxCategoryActionBuilder()
-
-
Method Details
-
taxCategory
public ProductSetTaxCategoryActionBuilder taxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) The Tax Category to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public ProductSetTaxCategoryActionBuilder withTaxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) The Tax Category to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
public ProductSetTaxCategoryActionBuilder taxCategory(@Nullable TaxCategoryResourceIdentifier taxCategory) The Tax Category to set. If empty, any existing value will be removed.
- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
getTaxCategory
The Tax Category to set. If empty, any existing value will be removed.
- Returns:
- taxCategory
-
build
builds ProductSetTaxCategoryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetTaxCategoryAction>
- Returns:
- ProductSetTaxCategoryAction
-
buildUnchecked
builds ProductSetTaxCategoryAction without checking for non-null required values- Returns:
- ProductSetTaxCategoryAction
-
of
factory method for an instance of ProductSetTaxCategoryActionBuilder- Returns:
- builder
-
of
create builder for ProductSetTaxCategoryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-