Class ChangeIsSearchableChangeBuilder

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

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

     ChangeIsSearchableChange changeIsSearchableChange = ChangeIsSearchableChange.builder()
             .change("{change}")
             .previousValue(true)
             .nextValue(true)
             .attributeName("{attributeName}")
             .build()
 
  • Constructor Details

    • ChangeIsSearchableChangeBuilder

      public ChangeIsSearchableChangeBuilder()
  • Method Details

    • change

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

      public ChangeIsSearchableChangeBuilder previousValue(Boolean previousValue)

      Value before the change.

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

      public ChangeIsSearchableChangeBuilder nextValue(Boolean nextValue)

      Value after the change.

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

      public ChangeIsSearchableChangeBuilder attributeName(String attributeName)

      Name of the updated AttributeDefinition.

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

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

      public Boolean getPreviousValue()

      Value before the change.

      Returns:
      previousValue
    • getNextValue

      public Boolean getNextValue()

      Value after the change.

      Returns:
      nextValue
    • getAttributeName

      public String getAttributeName()

      Name of the updated AttributeDefinition.

      Returns:
      attributeName
    • build

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

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

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

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