Class CategoryOrderHintsBuilder

java.lang.Object
com.commercetools.history.models.common.CategoryOrderHintsBuilder
All Implemented Interfaces:
Builder<CategoryOrderHints>

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

     CategoryOrderHints categoryOrderHints = CategoryOrderHints.builder()
             ./^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/("{/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/}")
             .build()
 
  • Constructor Details

    • CategoryOrderHintsBuilder

      public CategoryOrderHintsBuilder()
  • Method Details

    • values

      public CategoryOrderHintsBuilder values(Map<String,String> values)
      assign pattern properties to the builder
      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public CategoryOrderHintsBuilder addValue(String key, String value)
      assign a pattern property to the builder
      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • getValues

      public Map<String,String> getValues()
      values of pattern properties
      Returns:
      pattern properties
    • build

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

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

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

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