Class QueryProfile.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.QueryProfile.Builder
-
- All Implemented Interfaces:
ObjectBuilder<QueryProfile>
- Enclosing class:
- QueryProfile
public static class QueryProfile.Builder extends ObjectBuilderBase implements ObjectBuilder<QueryProfile>
Builder forQueryProfile.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryProfile.Builderbreakdown(java.util.function.Function<QueryBreakdown.Builder,ObjectBuilder<QueryBreakdown>> fn)Required - API name:breakdownQueryProfile.Builderbreakdown(QueryBreakdown value)Required - API name:breakdownQueryProfilebuild()Builds aQueryProfile.QueryProfile.Builderchildren(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)API name:childrenQueryProfile.Builderchildren(java.util.List<QueryProfile> list)API name:childrenQueryProfile.Builderchildren(QueryProfile value, QueryProfile... values)API name:childrenQueryProfile.Builderdescription(java.lang.String value)Required - API name:descriptionQueryProfile.BuildertimeInNanos(long value)Required - API name:time_in_nanosQueryProfile.Buildertype(java.lang.String value)Required - API name:type-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
breakdown
public final QueryProfile.Builder breakdown(QueryBreakdown value)
Required - API name:breakdown
-
breakdown
public final QueryProfile.Builder breakdown(java.util.function.Function<QueryBreakdown.Builder,ObjectBuilder<QueryBreakdown>> fn)
Required - API name:breakdown
-
description
public final QueryProfile.Builder description(java.lang.String value)
Required - API name:description
-
timeInNanos
public final QueryProfile.Builder timeInNanos(long value)
Required - API name:time_in_nanos
-
type
public final QueryProfile.Builder type(java.lang.String value)
Required - API name:type
-
children
public final QueryProfile.Builder children(java.util.List<QueryProfile> list)
API name:childrenAdds all elements of
listtochildren.
-
children
public final QueryProfile.Builder children(QueryProfile value, QueryProfile... values)
API name:childrenAdds one or more values to
children.
-
children
public final QueryProfile.Builder children(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)
API name:childrenAdds a value to
childrenusing a builder lambda.
-
build
public QueryProfile build()
Builds aQueryProfile.- Specified by:
buildin interfaceObjectBuilder<QueryProfile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-