Class SyntaxErrorErrorBuilder

java.lang.Object
com.commercetools.api.models.error.SyntaxErrorErrorBuilder
All Implemented Interfaces:
Builder<SyntaxErrorError>

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

     SyntaxErrorError syntaxErrorError = SyntaxErrorError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • SyntaxErrorErrorBuilder

      public SyntaxErrorErrorBuilder()
  • Method Details

    • message

      public SyntaxErrorErrorBuilder message(String message)

      "Syntax error while parsing $fieldDefinition."

      Parameters:
      message - value to be set
      Returns:
      Builder
    • values

      public SyntaxErrorErrorBuilder values(Map<String,Object> values)

      Error-specific additional fields.

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

      public SyntaxErrorErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      "Syntax error while parsing $fieldDefinition."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

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

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