Class AutoFollowPatternSummary.Builder
java.lang.Object
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 java.lang.Object implements ObjectBuilder<AutoFollowPatternSummary>
Builder for
AutoFollowPatternSummary
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description AutoFollowPatternSummary.Builder
active(boolean value)
API name:active
AutoFollowPatternSummary.Builder
addLeaderIndexExclusionPatterns(java.lang.String value)
Add a value toleaderIndexExclusionPatterns(List)
, creating the list if needed.AutoFollowPatternSummary.Builder
addLeaderIndexPatterns(java.lang.String value)
Add a value toleaderIndexPatterns(List)
, creating the list if needed.AutoFollowPatternSummary
build()
Builds aAutoFollowPatternSummary
.AutoFollowPatternSummary.Builder
followIndexPattern(java.lang.String value)
The name of follower index.AutoFollowPatternSummary.Builder
leaderIndexExclusionPatterns(java.lang.String... value)
An array of simple index patterns that can be used to exclude indices from being auto-followed.AutoFollowPatternSummary.Builder
leaderIndexExclusionPatterns(java.util.List<java.lang.String> value)
An array of simple index patterns that can be used to exclude indices from being auto-followed.AutoFollowPatternSummary.Builder
leaderIndexPatterns(java.lang.String... value)
An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.AutoFollowPatternSummary.Builder
leaderIndexPatterns(java.util.List<java.lang.String> value)
An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.AutoFollowPatternSummary.Builder
maxOutstandingReadRequests(int value)
The maximum number of outstanding reads requests from the remote cluster.AutoFollowPatternSummary.Builder
remoteCluster(java.lang.String value)
The remote cluster containing the leader indices to match against.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
-
active
API name:active
-
remoteCluster
The remote cluster containing the leader indices to match against.API name:
remote_cluster
-
followIndexPattern
The name of follower index.API name:
follow_index_pattern
-
leaderIndexPatterns
public AutoFollowPatternSummary.Builder leaderIndexPatterns(java.util.List<java.lang.String> value)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
-
leaderIndexPatterns
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
-
addLeaderIndexPatterns
Add a value toleaderIndexPatterns(List)
, creating the list if needed. 4 -
leaderIndexExclusionPatterns
public AutoFollowPatternSummary.Builder leaderIndexExclusionPatterns(java.util.List<java.lang.String> value)An array of simple index patterns that can be used to exclude indices from being auto-followed.API name:
leader_index_exclusion_patterns
-
leaderIndexExclusionPatterns
An array of simple index patterns that can be used to exclude indices from being auto-followed.API name:
leader_index_exclusion_patterns
-
addLeaderIndexExclusionPatterns
Add a value toleaderIndexExclusionPatterns(List)
, creating the list if needed. 4 -
maxOutstandingReadRequests
The maximum number of outstanding reads requests from the remote cluster.API name:
max_outstanding_read_requests
-
build
Builds aAutoFollowPatternSummary
.- Specified by:
build
in interfaceObjectBuilder<AutoFollowPatternSummary>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-