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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description FetchProfile.Builderbreakdown(FetchProfileBreakdown value)Required - API name:breakdownFetchProfile.Builderbreakdown(java.util.function.Function<FetchProfileBreakdown.Builder,ObjectBuilder<FetchProfileBreakdown>> fn)Required - API name:breakdownFetchProfilebuild()Builds aFetchProfile.FetchProfile.Builderchildren(FetchProfile value, FetchProfile... values)API name:childrenFetchProfile.Builderchildren(java.util.function.Function<FetchProfile.Builder,ObjectBuilder<FetchProfile>> fn)API name:childrenFetchProfile.Builderchildren(java.util.List<FetchProfile> list)API name:childrenFetchProfile.Builderdebug(FetchProfileDebug value)API name:debugFetchProfile.Builderdebug(java.util.function.Function<FetchProfileDebug.Builder,ObjectBuilder<FetchProfileDebug>> fn)API name:debugFetchProfile.Builderdescription(java.lang.String value)Required - API name:descriptionprotected FetchProfile.Builderself()FetchProfile.BuildertimeInNanos(long value)Required - API name:time_in_nanosFetchProfile.Buildertype(java.lang.String value)Required - API name:typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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(java.util.function.Function<FetchProfileBreakdown.Builder,ObjectBuilder<FetchProfileBreakdown>> fn)Required - API name:breakdown -
debug
API name:debug -
debug
public final FetchProfile.Builder debug(java.util.function.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(java.util.function.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:
java.lang.NullPointerException- if some of the required fields are null.
-