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 Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description AutoFollowStats.Builder
autoFollowedClusters(AutoFollowedCluster value, AutoFollowedCluster... values)
Required - API name:auto_followed_clusters
AutoFollowStats.Builder
autoFollowedClusters(java.util.function.Function<AutoFollowedCluster.Builder,ObjectBuilder<AutoFollowedCluster>> fn)
Required - API name:auto_followed_clusters
AutoFollowStats.Builder
autoFollowedClusters(java.util.List<AutoFollowedCluster> list)
Required - API name:auto_followed_clusters
AutoFollowStats
build()
Builds aAutoFollowStats
.AutoFollowStats.Builder
numberOfFailedFollowIndices(long value)
Required - API name:number_of_failed_follow_indices
AutoFollowStats.Builder
numberOfFailedRemoteClusterStateRequests(long value)
Required - API name:number_of_failed_remote_cluster_state_requests
AutoFollowStats.Builder
numberOfSuccessfulFollowIndices(long value)
Required - API name:number_of_successful_follow_indices
AutoFollowStats.Builder
recentAutoFollowErrors(ErrorCause value, ErrorCause... values)
Required - API name:recent_auto_follow_errors
AutoFollowStats.Builder
recentAutoFollowErrors(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
Required - API name:recent_auto_follow_errors
AutoFollowStats.Builder
recentAutoFollowErrors(java.util.List<ErrorCause> list)
Required - API name:recent_auto_follow_errors
protected AutoFollowStats.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
autoFollowedClusters
public final AutoFollowStats.Builder autoFollowedClusters(java.util.List<AutoFollowedCluster> list)Required - API name:auto_followed_clusters
Adds all elements of
list
toautoFollowedClusters
. -
autoFollowedClusters
public final AutoFollowStats.Builder autoFollowedClusters(AutoFollowedCluster value, AutoFollowedCluster... values)Required - API name:auto_followed_clusters
Adds one or more values to
autoFollowedClusters
. -
autoFollowedClusters
public final AutoFollowStats.Builder autoFollowedClusters(java.util.function.Function<AutoFollowedCluster.Builder,ObjectBuilder<AutoFollowedCluster>> fn)Required - API name:auto_followed_clusters
Adds a value to
autoFollowedClusters
using a builder lambda. -
numberOfFailedFollowIndices
Required - API name:number_of_failed_follow_indices
-
numberOfFailedRemoteClusterStateRequests
Required - API name:number_of_failed_remote_cluster_state_requests
-
numberOfSuccessfulFollowIndices
Required - API name:number_of_successful_follow_indices
-
recentAutoFollowErrors
Required - API name:recent_auto_follow_errors
Adds all elements of
list
torecentAutoFollowErrors
. -
recentAutoFollowErrors
public final AutoFollowStats.Builder recentAutoFollowErrors(ErrorCause value, ErrorCause... values)Required - API name:recent_auto_follow_errors
Adds one or more values to
recentAutoFollowErrors
. -
recentAutoFollowErrors
public final AutoFollowStats.Builder recentAutoFollowErrors(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Required - API name:recent_auto_follow_errors
Adds a value to
recentAutoFollowErrors
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AutoFollowStats.Builder>
-
build
Builds aAutoFollowStats
.- Specified by:
build
in interfaceObjectBuilder<AutoFollowStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-