Class FollowIndexStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FollowIndexStats.Builder>
co.elastic.clients.elasticsearch.ccr.FollowIndexStats.Builder
- All Implemented Interfaces:
WithJson<FollowIndexStats.Builder>,ObjectBuilder<FollowIndexStats>
- Enclosing class:
- FollowIndexStats
public static class FollowIndexStats.Builder
extends WithJsonObjectBuilderBase<FollowIndexStats.Builder>
implements ObjectBuilder<FollowIndexStats>
Builder for
FollowIndexStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFollowIndexStats.final FollowIndexStats.BuilderRequired - The name of the follower index.protected FollowIndexStats.Builderself()final FollowIndexStats.Buildershards(ShardStats value, ShardStats... values) Required - An array of shard-level following task statistics.final FollowIndexStats.BuilderRequired - An array of shard-level following task statistics.final FollowIndexStats.Buildershards(List<ShardStats> list) Required - An array of shard-level following task statistics.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - The name of the follower index.API name:
index -
shards
Required - An array of shard-level following task statistics.API name:
shardsAdds all elements of
listtoshards. -
shards
Required - An array of shard-level following task statistics.API name:
shardsAdds one or more values to
shards. -
shards
public final FollowIndexStats.Builder shards(Function<ShardStats.Builder, ObjectBuilder<ShardStats>> fn) Required - An array of shard-level following task statistics.API name:
shardsAdds a value to
shardsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FollowIndexStats.Builder>
-
build
Builds aFollowIndexStats.- Specified by:
buildin interfaceObjectBuilder<FollowIndexStats>- Throws:
NullPointerException- if some of the required fields are null.
-