Class CategoryOrderHintsBuilder

java.lang.Object
com.commercetools.api.models.product.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()
             ./[0-9].[0-9]*[1-9]/("{/[0-9].[0-9]*[1-9]/}")
             .build()
 
  • Constructor Details

    • CategoryOrderHintsBuilder

      public CategoryOrderHintsBuilder()
  • Method Details

    • values

      public CategoryOrderHintsBuilder values(Map<String,String> values)

      A string representing a number between 0 and 1 that must start with 0. and cannot end with 0.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public CategoryOrderHintsBuilder addValue(String key, String value)

      A string representing a number between 0 and 1 that must start with 0. and cannot end with 0.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • getValues

      public Map<String,String> getValues()

      A string representing a number between 0 and 1 that must start with 0. and cannot end with 0.

      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