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
-
Method Summary
Modifier and TypeMethodDescriptionfinal FetchProfile.Builder
breakdown
(FetchProfileBreakdown value) Required - API name:breakdown
final FetchProfile.Builder
Required - API name:breakdown
build()
Builds aFetchProfile
.final FetchProfile.Builder
children
(FetchProfile value, FetchProfile... values) API name:children
final FetchProfile.Builder
API name:children
final FetchProfile.Builder
children
(List<FetchProfile> list) API name:children
final FetchProfile.Builder
debug
(FetchProfileDebug value) API name:debug
final FetchProfile.Builder
API name:debug
final FetchProfile.Builder
description
(String value) Required - API name:description
protected FetchProfile.Builder
self()
final FetchProfile.Builder
timeInNanos
(long value) Required - API name:time_in_nanos
final FetchProfile.Builder
Required - API name:type
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:children
Adds all elements of
list
tochildren
. -
children
API name:children
Adds one or more values to
children
. -
children
public final FetchProfile.Builder children(Function<FetchProfile.Builder, ObjectBuilder<FetchProfile>> fn) API name:children
Adds a value to
children
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<FetchProfile.Builder>
-
build
Builds aFetchProfile
.- Specified by:
build
in interfaceObjectBuilder<FetchProfile>
- Throws:
NullPointerException
- if some of the required fields are null.
-