Class FetchProfile.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.FetchProfile.Builder
- All Implemented Interfaces:
CopyableBuilder<FetchProfile.Builder,,FetchProfile> MutableBuilder<FetchProfile.Builder,,FetchProfile> ObjectBuilder<FetchProfile>
- Enclosing class:
FetchProfile
public static class FetchProfile.Builder
extends ObjectBuilderBase
implements CopyableBuilder<FetchProfile.Builder,FetchProfile>
Builder for
FetchProfile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal FetchProfile.BuilderRequired - API name:breakdownfinal FetchProfile.Builderbreakdown(FetchProfileBreakdown value) Required - API name:breakdownbuild()Builds aFetchProfile.final FetchProfile.BuilderAPI name:childrenfinal FetchProfile.Builderchildren(List<FetchProfile> list) API name:childrenfinal FetchProfile.Builderchildren(FetchProfile value, FetchProfile... values) API name:childrencopy()Create a new builderCopyableBuilderthat is a copy of this one.final FetchProfile.BuilderAPI name:debugfinal FetchProfile.Builderdebug(FetchProfileDebug value) API name:debugfinal FetchProfile.Builderdescription(String value) Required - API name:descriptionfinal FetchProfile.BuildertimeInNanos(long value) Required - API name:time_in_nanosfinal FetchProfile.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<FetchProfile.Builder,FetchProfile> - Returns:
- a new builder instance.
-
breakdown
Required - API name:breakdown -
breakdown
@Nonnull public final FetchProfile.Builder breakdown(Function<FetchProfileBreakdown.Builder, ObjectBuilder<FetchProfileBreakdown>> 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 FetchProfile.Builder children(Function<FetchProfile.Builder, ObjectBuilder<FetchProfile>> fn) API name:childrenAdds a value to
childrenusing a builder lambda. -
debug
API name:debug -
debug
@Nonnull public final FetchProfile.Builder debug(Function<FetchProfileDebug.Builder, ObjectBuilder<FetchProfileDebug>> fn) API name:debug -
description
Required - API name:description -
timeInNanos
Required - API name:time_in_nanos -
type
Required - API name:type -
build
Builds aFetchProfile.- Specified by:
buildin interfaceObjectBuilder<FetchProfile>- Throws:
NullPointerException- if some of the required fields are null.
-