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.BuilderautoFollowedClusters(AutoFollowedCluster value, AutoFollowedCluster... values)Required - API name:auto_followed_clustersAutoFollowStats.BuilderautoFollowedClusters(java.util.function.Function<AutoFollowedCluster.Builder,ObjectBuilder<AutoFollowedCluster>> fn)Required - API name:auto_followed_clustersAutoFollowStats.BuilderautoFollowedClusters(java.util.List<AutoFollowedCluster> list)Required - API name:auto_followed_clustersAutoFollowStatsbuild()Builds aAutoFollowStats.AutoFollowStats.BuildernumberOfFailedFollowIndices(long value)Required - API name:number_of_failed_follow_indicesAutoFollowStats.BuildernumberOfFailedRemoteClusterStateRequests(long value)Required - API name:number_of_failed_remote_cluster_state_requestsAutoFollowStats.BuildernumberOfSuccessfulFollowIndices(long value)Required - API name:number_of_successful_follow_indicesAutoFollowStats.BuilderrecentAutoFollowErrors(ErrorCause value, ErrorCause... values)Required - API name:recent_auto_follow_errorsAutoFollowStats.BuilderrecentAutoFollowErrors(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Required - API name:recent_auto_follow_errorsAutoFollowStats.BuilderrecentAutoFollowErrors(java.util.List<ErrorCause> list)Required - API name:recent_auto_follow_errorsprotected AutoFollowStats.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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_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(java.util.function.Function<AutoFollowedCluster.Builder,ObjectBuilder<AutoFollowedCluster>> fn)Required - API name:auto_followed_clustersAdds a value to
autoFollowedClustersusing 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_errorsAdds all elements of
listtorecentAutoFollowErrors. -
recentAutoFollowErrors
public final AutoFollowStats.Builder recentAutoFollowErrors(ErrorCause value, ErrorCause... values)Required - API name:recent_auto_follow_errorsAdds 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_errorsAdds a value to
recentAutoFollowErrorsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AutoFollowStats.Builder>
-
build
Builds aAutoFollowStats.- Specified by:
buildin interfaceObjectBuilder<AutoFollowStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-