Class FollowIndexStats.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ccr.FollowIndexStats.Builder
- All Implemented Interfaces:
ObjectBuilder<FollowIndexStats>
- Enclosing class:
- FollowIndexStats
public static class FollowIndexStats.Builder extends java.lang.Object implements ObjectBuilder<FollowIndexStats>
Builder for
FollowIndexStats.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description FollowIndexStats.BuilderaddShards(ShardStats value)Add a value toshards(List), creating the list if needed.FollowIndexStats.BuilderaddShards(java.util.function.Function<ShardStats.Builder,ObjectBuilder<ShardStats>> fn)Add a value toshards(List), creating the list if needed.FollowIndexStatsbuild()Builds aFollowIndexStats.FollowIndexStats.Builderindex(java.lang.String value)API name:indexFollowIndexStats.Buildershards(ShardStats... value)API name:shardsFollowIndexStats.Buildershards(java.util.function.Function<ShardStats.Builder,ObjectBuilder<ShardStats>> fn)Setshards(List)to a singleton list.FollowIndexStats.Buildershards(java.util.List<ShardStats> value)API name:shardsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
API name:index -
shards
API name:shards -
shards
API name:shards -
addShards
Add a value toshards(List), creating the list if needed. 4 -
shards
public FollowIndexStats.Builder shards(java.util.function.Function<ShardStats.Builder,ObjectBuilder<ShardStats>> fn)Setshards(List)to a singleton list. -
addShards
public FollowIndexStats.Builder addShards(java.util.function.Function<ShardStats.Builder,ObjectBuilder<ShardStats>> fn)Add a value toshards(List), creating the list if needed. 5 -
build
Builds aFollowIndexStats.- Specified by:
buildin interfaceObjectBuilder<FollowIndexStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-