Class TaxCategoryUpdateBuilder

java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryUpdateBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<TaxCategoryUpdate>

public class TaxCategoryUpdateBuilder extends Object implements io.vrap.rmf.base.client.Builder<TaxCategoryUpdate>
TaxCategoryUpdateBuilder
Example to create an instance using the builder pattern

     TaxCategoryUpdate taxCategoryUpdate = TaxCategoryUpdate.builder()
             .version(0.3)
             .plusActions(actionsBuilder -> actionsBuilder)
             .build()
 
  • Constructor Details

    • TaxCategoryUpdateBuilder

      public TaxCategoryUpdateBuilder()
  • Method Details

    • version

      public TaxCategoryUpdateBuilder version(Long version)

      Expected version of the TaxCategory on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Parameters:
      version - value to be set
      Returns:
      Builder
    • actions

      Update actions to be performed on the TaxCategory.

      Parameters:
      actions - value to be set
      Returns:
      Builder
    • actions

      Update actions to be performed on the TaxCategory.

      Parameters:
      actions - value to be set
      Returns:
      Builder
    • plusActions

      public TaxCategoryUpdateBuilder plusActions(TaxCategoryUpdateAction... actions)

      Update actions to be performed on the TaxCategory.

      Parameters:
      actions - value to be set
      Returns:
      Builder
    • plusActions

      public TaxCategoryUpdateBuilder plusActions(Function<TaxCategoryUpdateActionBuilder,io.vrap.rmf.base.client.Builder<? extends TaxCategoryUpdateAction>> builder)

      Update actions to be performed on the TaxCategory.

      Parameters:
      builder - function to build the actions value
      Returns:
      Builder
    • withActions

      public TaxCategoryUpdateBuilder withActions(Function<TaxCategoryUpdateActionBuilder,io.vrap.rmf.base.client.Builder<? extends TaxCategoryUpdateAction>> builder)

      Update actions to be performed on the TaxCategory.

      Parameters:
      builder - function to build the actions value
      Returns:
      Builder
    • getVersion

      public Long getVersion()

      Expected version of the TaxCategory on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Returns:
      version
    • getActions

      public List<TaxCategoryUpdateAction> getActions()

      Update actions to be performed on the TaxCategory.

      Returns:
      actions
    • build

      public TaxCategoryUpdate build()
      builds TaxCategoryUpdate with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<TaxCategoryUpdate>
      Returns:
      TaxCategoryUpdate
    • buildUnchecked

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

      public static TaxCategoryUpdateBuilder of()
      factory method for an instance of TaxCategoryUpdateBuilder
      Returns:
      builder
    • of

      public static TaxCategoryUpdateBuilder of(TaxCategoryUpdate template)
      create builder for TaxCategoryUpdate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder