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.Builderaggregations(AggregationProfile value, AggregationProfile... values)Required - API name:aggregationsShardProfile.Builderaggregations(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)Required - API name:aggregationsShardProfile.Builderaggregations(java.util.List<AggregationProfile> list)Required - API name:aggregationsShardProfilebuild()Builds aShardProfile.ShardProfile.Builderfetch(FetchProfile value)API name:fetchShardProfile.Builderfetch(java.util.function.Function<FetchProfile.Builder,ObjectBuilder<FetchProfile>> fn)API name:fetchShardProfile.Builderid(java.lang.String value)Required - API name:idShardProfile.Buildersearches(SearchProfile value, SearchProfile... values)Required - API name:searchesShardProfile.Buildersearches(java.util.function.Function<SearchProfile.Builder,ObjectBuilder<SearchProfile>> fn)Required - API name:searchesShardProfile.Buildersearches(java.util.List<SearchProfile> list)Required - API name:searchesprotected ShardProfile.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:aggregationsAdds all elements of
listtoaggregations. -
aggregations
public final ShardProfile.Builder aggregations(AggregationProfile value, AggregationProfile... values)Required - API name:aggregationsAdds one or more values to
aggregations. -
aggregations
public final ShardProfile.Builder aggregations(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)Required - API name:aggregationsAdds a value to
aggregationsusing a builder lambda. -
id
Required - API name:id -
searches
Required - API name:searchesAdds all elements of
listtosearches. -
searches
Required - API name:searchesAdds one or more values to
searches. -
searches
public final ShardProfile.Builder searches(java.util.function.Function<SearchProfile.Builder,ObjectBuilder<SearchProfile>> fn)Required - API name:searchesAdds a value to
searchesusing 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:
selfin classWithJsonObjectBuilderBase<ShardProfile.Builder>
-
build
Builds aShardProfile.- Specified by:
buildin interfaceObjectBuilder<ShardProfile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-