Class FetchProfile.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.FetchProfile.Builder
-
- All Implemented Interfaces:
ObjectBuilder<FetchProfile>
- Enclosing class:
- FetchProfile
public static class FetchProfile.Builder extends ObjectBuilderBase implements ObjectBuilder<FetchProfile>
Builder forFetchProfile.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
type
public final FetchProfile.Builder type(java.lang.String value)
Required - API name:type
-
description
public final FetchProfile.Builder description(java.lang.String value)
Required - API name:description
-
timeInNanos
public final FetchProfile.Builder timeInNanos(long value)
Required - API name:time_in_nanos
-
breakdown
public final FetchProfile.Builder breakdown(FetchProfileBreakdown value)
Required - API name:breakdown
-
breakdown
public final FetchProfile.Builder breakdown(java.util.function.Function<FetchProfileBreakdown.Builder,ObjectBuilder<FetchProfileBreakdown>> fn)
Required - API name:breakdown
-
debug
public final FetchProfile.Builder debug(@Nullable FetchProfileDebug value)
API name:debug
-
debug
public final FetchProfile.Builder debug(java.util.function.Function<FetchProfileDebug.Builder,ObjectBuilder<FetchProfileDebug>> fn)
API name:debug
-
children
public final FetchProfile.Builder children(java.util.List<FetchProfile> list)
API name:childrenAdds all elements of
listtochildren.
-
children
public final FetchProfile.Builder children(FetchProfile value, FetchProfile... values)
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.
-
build
public FetchProfile build()
Builds aFetchProfile.- Specified by:
buildin interfaceObjectBuilder<FetchProfile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-