Class FetchProfile.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FetchProfile.Builder>
co.elastic.clients.elasticsearch.core.search.FetchProfile.Builder
- All Implemented Interfaces:
WithJson<FetchProfile.Builder>,ObjectBuilder<FetchProfile>
- Enclosing class:
- FetchProfile
public static class FetchProfile.Builder
extends WithJsonObjectBuilderBase<FetchProfile.Builder>
implements ObjectBuilder<FetchProfile>
Builder for
FetchProfile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal FetchProfile.Builderbreakdown(FetchProfileBreakdown value) Required - API name:breakdownfinal FetchProfile.BuilderRequired - API name:breakdownbuild()Builds aFetchProfile.final FetchProfile.Builderchildren(FetchProfile value, FetchProfile... values) API name:childrenfinal FetchProfile.BuilderAPI name:childrenfinal FetchProfile.Builderchildren(List<FetchProfile> list) API name:childrenfinal FetchProfile.Builderdebug(FetchProfileDebug value) API name:debugfinal FetchProfile.BuilderAPI name:debugfinal FetchProfile.Builderdescription(String value) Required - API name:descriptionprotected FetchProfile.Builderself()final FetchProfile.BuildertimeInNanos(long value) Required - API name:time_in_nanosfinal FetchProfile.BuilderRequired - API name:typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Required - API name:type -
description
Required - API name:description -
timeInNanos
Required - API name:time_in_nanos -
breakdown
Required - API name:breakdown -
breakdown
public final FetchProfile.Builder breakdown(Function<FetchProfileBreakdown.Builder, ObjectBuilder<FetchProfileBreakdown>> fn) Required - API name:breakdown -
debug
API name:debug -
debug
public final FetchProfile.Builder debug(Function<FetchProfileDebug.Builder, ObjectBuilder<FetchProfileDebug>> fn) API name:debug -
children
API name:childrenAdds all elements of
listtochildren. -
children
API name:childrenAdds one or more values to
children. -
children
public final FetchProfile.Builder children(Function<FetchProfile.Builder, ObjectBuilder<FetchProfile>> fn) API name:childrenAdds a value to
childrenusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FetchProfile.Builder>
-
build
Builds aFetchProfile.- Specified by:
buildin interfaceObjectBuilder<FetchProfile>- Throws:
NullPointerException- if some of the required fields are null.
-