Class UsageStatsIndex.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<UsageStatsIndex.Builder>
co.elastic.clients.elasticsearch.indices.field_usage_stats.UsageStatsIndex.Builder
- All Implemented Interfaces:
WithJson<UsageStatsIndex.Builder>,ObjectBuilder<UsageStatsIndex>
- Enclosing class:
- UsageStatsIndex
public static class UsageStatsIndex.Builder extends WithJsonObjectBuilderBase<UsageStatsIndex.Builder> implements ObjectBuilder<UsageStatsIndex>
Builder for
UsageStatsIndex.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description UsageStatsIndexbuild()Builds aUsageStatsIndex.protected UsageStatsIndex.Builderself()UsageStatsIndex.Buildershards(UsageStatsShards value, UsageStatsShards... values)Required - API name:shardsUsageStatsIndex.Buildershards(java.util.function.Function<UsageStatsShards.Builder,ObjectBuilder<UsageStatsShards>> fn)Required - API name:shardsUsageStatsIndex.Buildershards(java.util.List<UsageStatsShards> list)Required - API name:shardsMethods 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
-
shards
Required - API name:shardsAdds all elements of
listtoshards. -
shards
Required - API name:shardsAdds one or more values to
shards. -
shards
public final UsageStatsIndex.Builder shards(java.util.function.Function<UsageStatsShards.Builder,ObjectBuilder<UsageStatsShards>> fn)Required - API name:shardsAdds a value to
shardsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<UsageStatsIndex.Builder>
-
build
Builds aUsageStatsIndex.- Specified by:
buildin interfaceObjectBuilder<UsageStatsIndex>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-