Class QueryProfile.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.QueryProfile.Builder
- All Implemented Interfaces:
CopyableBuilder<QueryProfile.Builder,,QueryProfile> MutableBuilder<QueryProfile.Builder,,QueryProfile> ObjectBuilder<QueryProfile>
- Enclosing class:
QueryProfile
public static class QueryProfile.Builder
extends ObjectBuilderBase
implements CopyableBuilder<QueryProfile.Builder,QueryProfile>
Builder for
QueryProfile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal QueryProfile.BuilderRequired - API name:breakdownfinal QueryProfile.Builderbreakdown(QueryBreakdown value) Required - API name:breakdownbuild()Builds aQueryProfile.final QueryProfile.BuilderAPI name:childrenfinal QueryProfile.Builderchildren(List<QueryProfile> list) API name:childrenfinal QueryProfile.Builderchildren(QueryProfile value, QueryProfile... values) API name:childrencopy()Create a new builderCopyableBuilderthat is a copy of this one.final QueryProfile.Builderdescription(String value) Required - API name:descriptionfinal QueryProfile.BuildertimeInNanos(long value) Required - API name:time_in_nanosfinal QueryProfile.BuilderRequired - API name:typeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<QueryProfile.Builder,QueryProfile> - Returns:
- a new builder instance.
-
breakdown
Required - API name:breakdown -
breakdown
@Nonnull public final QueryProfile.Builder breakdown(Function<QueryBreakdown.Builder, ObjectBuilder<QueryBreakdown>> fn) Required - API name:breakdown -
children
API name:childrenAdds all elements of
listtochildren. -
children
API name:childrenAdds one or more values to
children. -
children
@Nonnull public final QueryProfile.Builder children(Function<QueryProfile.Builder, ObjectBuilder<QueryProfile>> fn) API name:childrenAdds a value to
childrenusing a builder lambda. -
description
Required - API name:description -
timeInNanos
Required - API name:time_in_nanos -
type
Required - API name:type -
build
Builds aQueryProfile.- Specified by:
buildin interfaceObjectBuilder<QueryProfile>- Throws:
NullPointerException- if some of the required fields are null.
-