Class QueryProfile.Builder
java.lang.Object
org.opensearch.client.opensearch._global.search.QueryProfile.Builder
- All Implemented Interfaces:
ObjectBuilder<QueryProfile>
- Enclosing class:
- QueryProfile
public static class QueryProfile.Builder extends java.lang.Object implements ObjectBuilder<QueryProfile>
Builder for
QueryProfile.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description QueryProfile.BuilderaddChildren(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)Add a value tochildren(List), creating the list if needed.QueryProfile.BuilderaddChildren(QueryProfile value)Add a value tochildren(List), creating the list if needed.QueryProfile.Builderbreakdown(java.util.function.Function<QueryBreakdown.Builder,ObjectBuilder<QueryBreakdown>> fn)API name:breakdownQueryProfile.Builderbreakdown(QueryBreakdown value)API name:breakdownQueryProfilebuild()Builds aQueryProfile.QueryProfile.Builderchildren(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)Setchildren(List)to a singleton list.QueryProfile.Builderchildren(java.util.List<QueryProfile> value)API name:childrenQueryProfile.Builderchildren(QueryProfile... value)API name:childrenQueryProfile.Builderdescription(java.lang.String value)API name:descriptionQueryProfile.BuildertimeInNanos(java.lang.Number value)API name:time_in_nanosQueryProfile.Buildertype(java.lang.String value)API name:type
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
breakdown
API name:breakdown -
breakdown
public QueryProfile.Builder breakdown(java.util.function.Function<QueryBreakdown.Builder,ObjectBuilder<QueryBreakdown>> fn)API name:breakdown -
description
API name:description -
timeInNanos
API name:time_in_nanos -
type
API name:type -
children
API name:children -
children
API name:children -
addChildren
Add a value tochildren(List), creating the list if needed. -
children
public QueryProfile.Builder children(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)Setchildren(List)to a singleton list. -
addChildren
public QueryProfile.Builder addChildren(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)Add a value tochildren(List), creating the list if needed. -
build
Builds aQueryProfile.- Specified by:
buildin interfaceObjectBuilder<QueryProfile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-