Class ChangeInputHintChangeBuilder

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

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

     ChangeInputHintChange changeInputHintChange = ChangeInputHintChange.builder()
             .change("{change}")
             .previousValue(TextInputHint.SINGLE_LINE)
             .nextValue(TextInputHint.SINGLE_LINE)
             .fieldName("{fieldName}")
             .attributeName("{attributeName}")
             .build()
 
  • Constructor Details

    • ChangeInputHintChangeBuilder

      public ChangeInputHintChangeBuilder()
  • Method Details

    • change

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

      public ChangeInputHintChangeBuilder previousValue(TextInputHint previousValue)

      Value before the change.

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

      public ChangeInputHintChangeBuilder nextValue(TextInputHint nextValue)

      Value after the change.

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

      public ChangeInputHintChangeBuilder fieldName(String fieldName)

      Name of the updated FieldDefinition; only present on changes to Types.

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

      public ChangeInputHintChangeBuilder attributeName(String attributeName)

      Name of the updated AttributeDefinition; only present on changes to Product Types.

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

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

      public TextInputHint getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public TextInputHint getNextValue()

      Value after the change.

      Returns:
      nextValue
    • getFieldName

      public String getFieldName()

      Name of the updated FieldDefinition; only present on changes to Types.

      Returns:
      fieldName
    • getAttributeName

      public String getAttributeName()

      Name of the updated AttributeDefinition; only present on changes to Product Types.

      Returns:
      attributeName
    • build

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

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

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

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