Class CcrStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CcrStatsResponse.Builder>
co.elastic.clients.elasticsearch.ccr.CcrStatsResponse.Builder
- All Implemented Interfaces:
WithJson<CcrStatsResponse.Builder>,ObjectBuilder<CcrStatsResponse>
- Enclosing class:
- CcrStatsResponse
public static class CcrStatsResponse.Builder
extends WithJsonObjectBuilderBase<CcrStatsResponse.Builder>
implements ObjectBuilder<CcrStatsResponse>
Builder for
CcrStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CcrStatsResponse.BuilderautoFollowStats(AutoFollowStats value) Required - Statistics for the auto-follow coordinator.final CcrStatsResponse.BuilderRequired - Statistics for the auto-follow coordinator.build()Builds aCcrStatsResponse.final CcrStatsResponse.BuilderfollowStats(FollowStats value) Required - Shard-level statistics for follower indices.final CcrStatsResponse.BuilderRequired - Shard-level statistics for follower indices.protected CcrStatsResponse.Builderself()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
-
autoFollowStats
Required - Statistics for the auto-follow coordinator.API name:
auto_follow_stats -
autoFollowStats
public final CcrStatsResponse.Builder autoFollowStats(Function<AutoFollowStats.Builder, ObjectBuilder<AutoFollowStats>> fn) Required - Statistics for the auto-follow coordinator.API name:
auto_follow_stats -
followStats
Required - Shard-level statistics for follower indices.API name:
follow_stats -
followStats
public final CcrStatsResponse.Builder followStats(Function<FollowStats.Builder, ObjectBuilder<FollowStats>> fn) Required - Shard-level statistics for follower indices.API name:
follow_stats -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CcrStatsResponse.Builder>
-
build
Builds aCcrStatsResponse.- Specified by:
buildin interfaceObjectBuilder<CcrStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-