Class AutoFollowStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AutoFollowStats.Builder>
co.elastic.clients.elasticsearch.ccr.stats.AutoFollowStats.Builder
- All Implemented Interfaces:
WithJson<AutoFollowStats.Builder>,ObjectBuilder<AutoFollowStats>
- Enclosing class:
- AutoFollowStats
public static class AutoFollowStats.Builder
extends WithJsonObjectBuilderBase<AutoFollowStats.Builder>
implements ObjectBuilder<AutoFollowStats>
Builder for
AutoFollowStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AutoFollowStats.BuilderautoFollowedClusters(AutoFollowedCluster value, AutoFollowedCluster... values) Required - API name:auto_followed_clustersfinal AutoFollowStats.BuilderRequired - API name:auto_followed_clustersfinal AutoFollowStats.BuilderRequired - API name:auto_followed_clustersbuild()Builds aAutoFollowStats.final AutoFollowStats.BuildernumberOfFailedFollowIndices(long value) Required - The number of indices that the auto-follow coordinator failed to automatically follow.final AutoFollowStats.BuildernumberOfFailedRemoteClusterStateRequests(long value) Required - The number of times that the auto-follow coordinator failed to retrieve the cluster state from a remote cluster registered in a collection of auto-follow patterns.final AutoFollowStats.BuildernumberOfSuccessfulFollowIndices(long value) Required - The number of indices that the auto-follow coordinator successfully followed.final AutoFollowStats.BuilderrecentAutoFollowErrors(ErrorCause value, ErrorCause... values) Required - An array of objects representing failures by the auto-follow coordinator.final AutoFollowStats.BuilderRequired - An array of objects representing failures by the auto-follow coordinator.final AutoFollowStats.BuilderrecentAutoFollowErrors(List<ErrorCause> list) Required - An array of objects representing failures by the auto-follow coordinator.protected AutoFollowStats.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
-
autoFollowedClusters
Required - API name:auto_followed_clustersAdds all elements of
listtoautoFollowedClusters. -
autoFollowedClusters
public final AutoFollowStats.Builder autoFollowedClusters(AutoFollowedCluster value, AutoFollowedCluster... values) Required - API name:auto_followed_clustersAdds one or more values to
autoFollowedClusters. -
autoFollowedClusters
public final AutoFollowStats.Builder autoFollowedClusters(Function<AutoFollowedCluster.Builder, ObjectBuilder<AutoFollowedCluster>> fn) Required - API name:auto_followed_clustersAdds a value to
autoFollowedClustersusing a builder lambda. -
numberOfFailedFollowIndices
Required - The number of indices that the auto-follow coordinator failed to automatically follow. The causes of recent failures are captured in the logs of the elected master node and in theauto_follow_stats.recent_auto_follow_errorsfield.API name:
number_of_failed_follow_indices -
numberOfFailedRemoteClusterStateRequests
Required - The number of times that the auto-follow coordinator failed to retrieve the cluster state from a remote cluster registered in a collection of auto-follow patterns.API name:
number_of_failed_remote_cluster_state_requests -
numberOfSuccessfulFollowIndices
Required - The number of indices that the auto-follow coordinator successfully followed.API name:
number_of_successful_follow_indices -
recentAutoFollowErrors
Required - An array of objects representing failures by the auto-follow coordinator.API name:
recent_auto_follow_errorsAdds all elements of
listtorecentAutoFollowErrors. -
recentAutoFollowErrors
Required - An array of objects representing failures by the auto-follow coordinator.API name:
recent_auto_follow_errorsAdds one or more values to
recentAutoFollowErrors. -
recentAutoFollowErrors
public final AutoFollowStats.Builder recentAutoFollowErrors(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Required - An array of objects representing failures by the auto-follow coordinator.API name:
recent_auto_follow_errorsAdds a value to
recentAutoFollowErrorsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AutoFollowStats.Builder>
-
build
Builds aAutoFollowStats.- Specified by:
buildin interfaceObjectBuilder<AutoFollowStats>- Throws:
NullPointerException- if some of the required fields are null.
-