Class SetStoreModeChangeBuilder

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

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

     SetStoreModeChange setStoreModeChange = SetStoreModeChange.builder()
             .change("{change}")
             .previousValue(BusinessUnitStoreMode.EXPLICIT)
             .nextValue(BusinessUnitStoreMode.EXPLICIT)
             .build()
 
  • Constructor Details

    • SetStoreModeChangeBuilder

      public SetStoreModeChangeBuilder()
  • Method Details

    • change

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

      public SetStoreModeChangeBuilder previousValue(BusinessUnitStoreMode previousValue)

      Value before the change.

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

      public SetStoreModeChangeBuilder nextValue(BusinessUnitStoreMode nextValue)

      Value after the change.

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

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

      public BusinessUnitStoreMode getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public BusinessUnitStoreMode getNextValue()

      Value after the change.

      Returns:
      nextValue
    • build

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

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

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

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