Class ShardProfile.Builder
java.lang.Object
co.elastic.clients.elasticsearch.core.search.ShardProfile.Builder
- All Implemented Interfaces:
ObjectBuilder<ShardProfile>
- Enclosing class:
- ShardProfile
public static class ShardProfile.Builder extends java.lang.Object implements ObjectBuilder<ShardProfile>
Builder for
ShardProfile.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
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 -
aggregations
Required - API name:aggregations -
addAggregations
Add a value toaggregations(List), creating the list if needed. -
aggregations
public ShardProfile.Builder aggregations(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)Setaggregations(List)to a singleton list. -
addAggregations
public ShardProfile.Builder addAggregations(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)Add a value toaggregations(List), creating the list if needed. -
id
Required - API name:id -
searches
Required - API name:searches -
searches
Required - API name:searches -
addSearches
Add a value tosearches(List), creating the list if needed. -
searches
public ShardProfile.Builder searches(java.util.function.Function<SearchProfile.Builder,ObjectBuilder<SearchProfile>> fn)Setsearches(List)to a singleton list. -
addSearches
public ShardProfile.Builder addSearches(java.util.function.Function<SearchProfile.Builder,ObjectBuilder<SearchProfile>> fn)Add a value tosearches(List), creating the list if needed. -
build
Builds aShardProfile.- Specified by:
buildin interfaceObjectBuilder<ShardProfile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-