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.Builder
addShards(ShardStats value)
Add a value toshards(List)
, creating the list if needed.FollowIndexStats.Builder
addShards(java.util.function.Function<ShardStats.Builder,ObjectBuilder<ShardStats>> fn)
Add a value toshards(List)
, creating the list if needed.FollowIndexStats
build()
Builds aFollowIndexStats
.FollowIndexStats.Builder
index(java.lang.String value)
Required - API name:index
FollowIndexStats.Builder
shards(ShardStats... value)
Required - API name:shards
FollowIndexStats.Builder
shards(java.util.function.Function<ShardStats.Builder,ObjectBuilder<ShardStats>> fn)
Setshards(List)
to a singleton list.FollowIndexStats.Builder
shards(java.util.List<ShardStats> value)
Required - API name:shards
Methods 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
Required - API name:index
-
shards
Required - API name:shards
-
shards
Required - API name:shards
-
addShards
Add a value toshards(List)
, creating the list if needed. -
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. -
build
Builds aFollowIndexStats
.- Specified by:
build
in interfaceObjectBuilder<FollowIndexStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-