Class FollowStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FollowStatsResponse.Builder>
co.elastic.clients.elasticsearch.ccr.FollowStatsResponse.Builder
- All Implemented Interfaces:
WithJson<FollowStatsResponse.Builder>,ObjectBuilder<FollowStatsResponse>
- Enclosing class:
- FollowStatsResponse
public static class FollowStatsResponse.Builder
extends WithJsonObjectBuilderBase<FollowStatsResponse.Builder>
implements ObjectBuilder<FollowStatsResponse>
Builder for
FollowStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFollowStatsResponse.indices(FollowIndexStats value, FollowIndexStats... values) Required - An array of follower index statistics.Required - An array of follower index statistics.indices(List<FollowIndexStats> list) Required - An array of follower index statistics.protected FollowStatsResponse.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
-
indices
Required - An array of follower index statistics.API name:
indicesAdds all elements of
listtoindices. -
indices
public final FollowStatsResponse.Builder indices(FollowIndexStats value, FollowIndexStats... values) Required - An array of follower index statistics.API name:
indicesAdds one or more values to
indices. -
indices
public final FollowStatsResponse.Builder indices(Function<FollowIndexStats.Builder, ObjectBuilder<FollowIndexStats>> fn) Required - An array of follower index statistics.API name:
indicesAdds a value to
indicesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FollowStatsResponse.Builder>
-
build
Builds aFollowStatsResponse.- Specified by:
buildin interfaceObjectBuilder<FollowStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-