Class QueryProfile.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.search.QueryProfile.Builder
- All Implemented Interfaces:
ObjectBuilder<QueryProfile>
- Enclosing class:
- QueryProfile
public static class QueryProfile.Builder extends ObjectBuilderBase implements ObjectBuilder<QueryProfile>
Builder for
QueryProfile
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description QueryProfile.Builder
breakdown(QueryBreakdown value)
Required - API name:breakdown
QueryProfile.Builder
breakdown(java.util.function.Function<QueryBreakdown.Builder,ObjectBuilder<QueryBreakdown>> fn)
Required - API name:breakdown
QueryProfile
build()
Builds aQueryProfile
.QueryProfile.Builder
children(QueryProfile value, QueryProfile... values)
API name:children
QueryProfile.Builder
children(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)
API name:children
QueryProfile.Builder
children(java.util.List<QueryProfile> list)
API name:children
QueryProfile.Builder
description(java.lang.String value)
Required - API name:description
QueryProfile.Builder
timeInNanos(long value)
Required - API name:time_in_nanos
QueryProfile.Builder
type(java.lang.String value)
Required - API name:type
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
breakdown
Required - API name:breakdown
-
breakdown
public final QueryProfile.Builder breakdown(java.util.function.Function<QueryBreakdown.Builder,ObjectBuilder<QueryBreakdown>> fn)Required - API name:breakdown
-
description
Required - API name:description
-
timeInNanos
Required - API name:time_in_nanos
-
type
Required - API name:type
-
children
API name:children
Adds all elements of
list
tochildren
. -
children
API name:children
Adds one or more values to
children
. -
children
public final QueryProfile.Builder children(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)API name:children
Adds a value to
children
using a builder lambda. -
build
Builds aQueryProfile
.- Specified by:
build
in interfaceObjectBuilder<QueryProfile>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-