Class ShardProfile.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardProfile.Builder>
co.elastic.clients.elasticsearch.core.search.ShardProfile.Builder
- All Implemented Interfaces:
WithJson<ShardProfile.Builder>
,ObjectBuilder<ShardProfile>
- Enclosing class:
- ShardProfile
public static class ShardProfile.Builder
extends WithJsonObjectBuilderBase<ShardProfile.Builder>
implements ObjectBuilder<ShardProfile>
Builder for
ShardProfile
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ShardProfile.Builder
aggregations
(AggregationProfile value, AggregationProfile... values) Required - API name:aggregations
final ShardProfile.Builder
Required - API name:aggregations
final ShardProfile.Builder
aggregations
(List<AggregationProfile> list) Required - API name:aggregations
build()
Builds aShardProfile
.final ShardProfile.Builder
fetch
(FetchProfile value) API name:fetch
final ShardProfile.Builder
API name:fetch
final ShardProfile.Builder
Required - API name:id
final ShardProfile.Builder
searches
(SearchProfile value, SearchProfile... values) Required - API name:searches
final ShardProfile.Builder
Required - API name:searches
final ShardProfile.Builder
searches
(List<SearchProfile> list) Required - API name:searches
protected ShardProfile.Builder
self()
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
-
aggregations
Required - API name:aggregations
Adds all elements of
list
toaggregations
. -
aggregations
public final ShardProfile.Builder aggregations(AggregationProfile value, AggregationProfile... values) Required - API name:aggregations
Adds one or more values to
aggregations
. -
aggregations
public final ShardProfile.Builder aggregations(Function<AggregationProfile.Builder, ObjectBuilder<AggregationProfile>> fn) Required - API name:aggregations
Adds a value to
aggregations
using a builder lambda. -
id
Required - API name:id
-
searches
Required - API name:searches
Adds all elements of
list
tosearches
. -
searches
Required - API name:searches
Adds one or more values to
searches
. -
searches
public final ShardProfile.Builder searches(Function<SearchProfile.Builder, ObjectBuilder<SearchProfile>> fn) Required - API name:searches
Adds a value to
searches
using a builder lambda. -
fetch
API name:fetch
-
fetch
public final ShardProfile.Builder fetch(Function<FetchProfile.Builder, ObjectBuilder<FetchProfile>> fn) API name:fetch
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ShardProfile.Builder>
-
build
Builds aShardProfile
.- Specified by:
build
in interfaceObjectBuilder<ShardProfile>
- Throws:
NullPointerException
- if some of the required fields are null.
-