Class ShardProfile.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.ShardProfile.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ShardProfile>
- Enclosing class:
- ShardProfile
public static class ShardProfile.Builder extends ObjectBuilderBase implements ObjectBuilder<ShardProfile>
Builder forShardProfile.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardProfile.Builderaggregations(java.util.function.Function<AggregationProfile.Builder,ObjectBuilder<AggregationProfile>> fn)Required - API name:aggregationsShardProfile.Builderaggregations(java.util.List<AggregationProfile> list)Required - API name:aggregationsShardProfile.Builderaggregations(AggregationProfile value, AggregationProfile... values)Required - API name:aggregationsShardProfilebuild()Builds aShardProfile.ShardProfile.Builderfetch(java.util.function.Function<FetchProfile.Builder,ObjectBuilder<FetchProfile>> fn)API name:fetchShardProfile.Builderfetch(FetchProfile value)API name:fetchShardProfile.Builderid(java.lang.String value)Required - API name:idShardProfile.Buildersearches(java.util.function.Function<SearchProfile.Builder,ObjectBuilder<SearchProfile>> fn)Required - API name:searchesShardProfile.Buildersearches(java.util.List<SearchProfile> list)Required - API name:searchesShardProfile.Buildersearches(SearchProfile value, SearchProfile... values)Required - API name:searches-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
aggregations
public final ShardProfile.Builder aggregations(java.util.List<AggregationProfile> list)
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
public final ShardProfile.Builder id(java.lang.String value)
Required - API name:id
-
searches
public final ShardProfile.Builder searches(java.util.List<SearchProfile> list)
Required - API name:searchesAdds all elements of
listtosearches.
-
searches
public final ShardProfile.Builder searches(SearchProfile value, SearchProfile... values)
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
public final ShardProfile.Builder fetch(@Nullable FetchProfile value)
API name:fetch
-
fetch
public final ShardProfile.Builder fetch(java.util.function.Function<FetchProfile.Builder,ObjectBuilder<FetchProfile>> fn)
API name:fetch
-
build
public ShardProfile build()
Builds aShardProfile.- Specified by:
buildin interfaceObjectBuilder<ShardProfile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-