Class RemoveTaxRateChangeBuilder

java.lang.Object
com.commercetools.history.models.change.RemoveTaxRateChangeBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<RemoveTaxRateChange>

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

     RemoveTaxRateChange removeTaxRateChange = RemoveTaxRateChange.builder()
             .change("{change}")
             .previousValue(previousValueBuilder -> previousValueBuilder)
             .build()
 
  • Constructor Details

    • RemoveTaxRateChangeBuilder

      public RemoveTaxRateChangeBuilder()
  • Method Details

    • change

      public RemoveTaxRateChangeBuilder change(String change)
      set the value to the change
      Parameters:
      change - value to be set
      Returns:
      Builder
    • previousValue

      Value before the change.

      Parameters:
      builder - function to build the previousValue value
      Returns:
      Builder
    • withPreviousValue

      public RemoveTaxRateChangeBuilder withPreviousValue(Function<TaxRateBuilder,TaxRate> builder)

      Value before the change.

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

      public RemoveTaxRateChangeBuilder previousValue(TaxRate previousValue)

      Value before the change.

      Parameters:
      previousValue - value to be set
      Returns:
      Builder
    • getChange

      public String getChange()
      value of change}
      Returns:
      change
    • getPreviousValue

      public TaxRate getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • build

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

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

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

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