Class AutoFollowPatternSummary.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AutoFollowPatternSummary.Builder>
co.elastic.clients.elasticsearch.ccr.get_auto_follow_pattern.AutoFollowPatternSummary.Builder
- All Implemented Interfaces:
WithJson<AutoFollowPatternSummary.Builder>,ObjectBuilder<AutoFollowPatternSummary>
- Enclosing class:
- AutoFollowPatternSummary
public static class AutoFollowPatternSummary.Builder
extends WithJsonObjectBuilderBase<AutoFollowPatternSummary.Builder>
implements ObjectBuilder<AutoFollowPatternSummary>
Builder for
AutoFollowPatternSummary.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive(boolean value) Required - API name:activebuild()Builds aAutoFollowPatternSummary.followIndexPattern(String value) The name of follower index.leaderIndexExclusionPatterns(String value, String... values) Required - An array of simple index patterns that can be used to exclude indices from being auto-followed.Required - An array of simple index patterns that can be used to exclude indices from being auto-followed.leaderIndexPatterns(String value, String... values) Required - An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.leaderIndexPatterns(List<String> list) Required - An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.maxOutstandingReadRequests(int value) Required - The maximum number of outstanding reads requests from the remote cluster.remoteCluster(String value) Required - The remote cluster containing the leader indices to match against.protected AutoFollowPatternSummary.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
-
active
Required - API name:active -
remoteCluster
Required - 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
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_patternsAdds all elements of
listtoleaderIndexPatterns. -
leaderIndexPatterns
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_patternsAdds one or more values to
leaderIndexPatterns. -
leaderIndexExclusionPatterns
Required - An array of simple index patterns that can be used to exclude indices from being auto-followed.API name:
leader_index_exclusion_patternsAdds all elements of
listtoleaderIndexExclusionPatterns. -
leaderIndexExclusionPatterns
public final AutoFollowPatternSummary.Builder leaderIndexExclusionPatterns(String value, 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_patternsAdds one or more values to
leaderIndexExclusionPatterns. -
maxOutstandingReadRequests
Required - The maximum number of outstanding reads requests from the remote cluster.API name:
max_outstanding_read_requests -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AutoFollowPatternSummary.Builder>
-
build
Builds aAutoFollowPatternSummary.- Specified by:
buildin interfaceObjectBuilder<AutoFollowPatternSummary>- Throws:
NullPointerException- if some of the required fields are null.
-