Class AutoFollowPatternSummary.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ccr.get_auto_follow_pattern.AutoFollowPatternSummary.Builder
All Implemented Interfaces:
ObjectBuilder<AutoFollowPatternSummary>
Enclosing class:
AutoFollowPatternSummary

public static class AutoFollowPatternSummary.Builder
extends ObjectBuilderBase
implements ObjectBuilder<AutoFollowPatternSummary>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • active

      public final AutoFollowPatternSummary.Builder active​(boolean value)
      Required - API name: active
    • remoteCluster

      public final AutoFollowPatternSummary.Builder remoteCluster​(java.lang.String value)
      Required - The remote cluster containing the leader indices to match against.

      API name: remote_cluster

    • followIndexPattern

      public final AutoFollowPatternSummary.Builder followIndexPattern​(@Nullable java.lang.String value)
      The name of follower index.

      API name: follow_index_pattern

    • leaderIndexPatterns

      public final AutoFollowPatternSummary.Builder leaderIndexPatterns​(java.util.List<java.lang.String> list)
      Required - An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.

      API name: leader_index_patterns

      Adds all elements of list to leaderIndexPatterns.

    • leaderIndexPatterns

      public final AutoFollowPatternSummary.Builder leaderIndexPatterns​(java.lang.String value, java.lang.String... values)
      Required - An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.

      API name: leader_index_patterns

      Adds one or more values to leaderIndexPatterns.

    • leaderIndexExclusionPatterns

      public final AutoFollowPatternSummary.Builder leaderIndexExclusionPatterns​(java.util.List<java.lang.String> list)
      Required - An array of simple index patterns that can be used to exclude indices from being auto-followed.

      API name: leader_index_exclusion_patterns

      Adds all elements of list to leaderIndexExclusionPatterns.

    • leaderIndexExclusionPatterns

      public final AutoFollowPatternSummary.Builder leaderIndexExclusionPatterns​(java.lang.String value, java.lang.String... values)
      Required - An array of simple index patterns that can be used to exclude indices from being auto-followed.

      API name: leader_index_exclusion_patterns

      Adds one or more values to leaderIndexExclusionPatterns.

    • maxOutstandingReadRequests

      public final AutoFollowPatternSummary.Builder maxOutstandingReadRequests​(int value)
      Required - The maximum number of outstanding reads requests from the remote cluster.

      API name: max_outstanding_read_requests

    • build

      public AutoFollowPatternSummary build()
      Specified by:
      build in interface ObjectBuilder<AutoFollowPatternSummary>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.