Class QueryTimedOutErrorBuilder

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

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

     QueryTimedOutError queryTimedOutError = QueryTimedOutError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • QueryTimedOutErrorBuilder

      public QueryTimedOutErrorBuilder()
  • Method Details

    • message

      public QueryTimedOutErrorBuilder message(String message)

      "The query timed out. If your query constantly times out, please check that it follows the performance best practices (see https://docs.commercetools.com/api/predicates/query#performance-considerations)."

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

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

      Error-specific additional fields.

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

      public QueryTimedOutErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      "The query timed out. If your query constantly times out, please check that it follows the performance best practices (see https://docs.commercetools.com/api/predicates/query#performance-considerations)."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

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

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