Class TaxCategoryRemoveTaxRateActionBuilder

java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryRemoveTaxRateActionBuilder
All Implemented Interfaces:
Builder<TaxCategoryRemoveTaxRateAction>

public class TaxCategoryRemoveTaxRateActionBuilder extends Object implements Builder<TaxCategoryRemoveTaxRateAction>
TaxCategoryRemoveTaxRateActionBuilder
Example to create an instance using the builder pattern

     TaxCategoryRemoveTaxRateAction taxCategoryRemoveTaxRateAction = TaxCategoryRemoveTaxRateAction.builder()
             .build()
 
  • Constructor Details

    • TaxCategoryRemoveTaxRateActionBuilder

      public TaxCategoryRemoveTaxRateActionBuilder()
  • Method Details

    • taxRateId

      public TaxCategoryRemoveTaxRateActionBuilder taxRateId(@Nullable String taxRateId)

      ID of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Parameters:
      taxRateId - value to be set
      Returns:
      Builder
    • taxRateKey

      public TaxCategoryRemoveTaxRateActionBuilder taxRateKey(@Nullable String taxRateKey)

      Key of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Parameters:
      taxRateKey - value to be set
      Returns:
      Builder
    • getTaxRateId

      @Nullable public String getTaxRateId()

      ID of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Returns:
      taxRateId
    • getTaxRateKey

      @Nullable public String getTaxRateKey()

      Key of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Returns:
      taxRateKey
    • build

      builds TaxCategoryRemoveTaxRateAction with checking for non-null required values
      Specified by:
      build in interface Builder<TaxCategoryRemoveTaxRateAction>
      Returns:
      TaxCategoryRemoveTaxRateAction
    • buildUnchecked

      public TaxCategoryRemoveTaxRateAction buildUnchecked()
      builds TaxCategoryRemoveTaxRateAction without checking for non-null required values
      Returns:
      TaxCategoryRemoveTaxRateAction
    • of

      factory method for an instance of TaxCategoryRemoveTaxRateActionBuilder
      Returns:
      builder
    • of

      create builder for TaxCategoryRemoveTaxRateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder