Class ChangeEnumValueLabelChangeBuilder

java.lang.Object
com.commercetools.history.models.change.ChangeEnumValueLabelChangeBuilder
All Implemented Interfaces:
Builder<ChangeEnumValueLabelChange>

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

     ChangeEnumValueLabelChange changeEnumValueLabelChange = ChangeEnumValueLabelChange.builder()
             .change("{change}")
             .previousValue("{previousValue}")
             .nextValue("{nextValue}")
             .fieldName("{fieldName}")
             .valueKey("{valueKey}")
             .build()
 
  • Constructor Details

    • ChangeEnumValueLabelChangeBuilder

      public ChangeEnumValueLabelChangeBuilder()
  • Method Details

    • change

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

      public ChangeEnumValueLabelChangeBuilder previousValue(String previousValue)

      Value before the change.

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

      public ChangeEnumValueLabelChangeBuilder nextValue(String nextValue)

      Value after the change.

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

      public ChangeEnumValueLabelChangeBuilder fieldName(String fieldName)

      Name of the updated FieldDefinition.

      Parameters:
      fieldName - value to be set
      Returns:
      Builder
    • valueKey

      public ChangeEnumValueLabelChangeBuilder valueKey(String valueKey)

      Key of the updated values.

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

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

      public String getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public String getNextValue()

      Value after the change.

      Returns:
      nextValue
    • getFieldName

      public String getFieldName()

      Name of the updated FieldDefinition.

      Returns:
      fieldName
    • getValueKey

      public String getValueKey()

      Key of the updated values.

      Returns:
      valueKey
    • build

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

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

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

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