Class QueryTimedOutErrorBuilder
java.lang.Object
com.commercetools.api.models.error.QueryTimedOutErrorBuilder
- All Implemented Interfaces:
Builder<QueryTimedOutError>
QueryTimedOutErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QueryTimedOutError queryTimedOutError = QueryTimedOutError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds QueryTimedOutError with checking for non-null required valuesbuilds QueryTimedOutError without checking for non-null required values"The query timed out.
Error-specific additional fields."The query timed out.
static QueryTimedOutErrorBuilder
of()
factory method for an instance of QueryTimedOutErrorBuilderstatic QueryTimedOutErrorBuilder
of
(QueryTimedOutError template) create builder for QueryTimedOutError instanceError-specific additional fields.
-
Constructor Details
-
QueryTimedOutErrorBuilder
public QueryTimedOutErrorBuilder()
-
-
Method Details
-
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
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
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
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds QueryTimedOutError with checking for non-null required values- Specified by:
build
in interfaceBuilder<QueryTimedOutError>
- Returns:
- QueryTimedOutError
-
buildUnchecked
builds QueryTimedOutError without checking for non-null required values- Returns:
- QueryTimedOutError
-
of
factory method for an instance of QueryTimedOutErrorBuilder- Returns:
- builder
-
of
create builder for QueryTimedOutError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-