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
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ShardProfile.Builder
aggregations(AggregationProfile value, AggregationProfile... values)
Required - API name:aggregations
ShardProfile.Builder
aggregations(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)
Required - API name:aggregations
ShardProfile.Builder
aggregations(java.util.List<AggregationProfile> list)
Required - API name:aggregations
ShardProfile
build()
Builds aShardProfile
.ShardProfile.Builder
fetch(FetchProfile value)
API name:fetch
ShardProfile.Builder
fetch(java.util.function.Function<FetchProfile.Builder,ObjectBuilder<FetchProfile>> fn)
API name:fetch
ShardProfile.Builder
id(java.lang.String value)
Required - API name:id
ShardProfile.Builder
searches(SearchProfile value, SearchProfile... values)
Required - API name:searches
ShardProfile.Builder
searches(java.util.function.Function<SearchProfile.Builder,ObjectBuilder<SearchProfile>> fn)
Required - API name:searches
ShardProfile.Builder
searches(java.util.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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(java.util.function.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(java.util.function.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(java.util.function.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:
java.lang.NullPointerException
- if some of the required fields are null.
-