Class PostVotingConfigExclusionsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cluster.PostVotingConfigExclusionsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<PostVotingConfigExclusionsRequest>
- Enclosing class:
- PostVotingConfigExclusionsRequest
public static class PostVotingConfigExclusionsRequest.Builder extends java.lang.Object implements ObjectBuilder<PostVotingConfigExclusionsRequest>
Builder for
PostVotingConfigExclusionsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PostVotingConfigExclusionsRequest.Builder
addNodeIds(java.lang.String value)
Add a value tonodeIds(List)
, creating the list if needed.PostVotingConfigExclusionsRequest.Builder
addNodeNames(java.lang.String value)
Add a value tonodeNames(List)
, creating the list if needed.PostVotingConfigExclusionsRequest
build()
Builds aPostVotingConfigExclusionsRequest
.PostVotingConfigExclusionsRequest.Builder
nodeIds(java.lang.String... value)
A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.Builder
nodeIds(java.util.List<java.lang.String> value)
A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.Builder
nodeNames(java.lang.String... value)
A comma-separated list of the names of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.Builder
nodeNames(java.util.List<java.lang.String> value)
A comma-separated list of the names of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.Builder
timeout(java.lang.String value)
When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning.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
-
nodeNames
public PostVotingConfigExclusionsRequest.Builder nodeNames(@Nullable java.util.List<java.lang.String> value)A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify node_ids.API name:
node_names
-
nodeNames
A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify node_ids.API name:
node_names
-
addNodeNames
Add a value tonodeNames(List)
, creating the list if needed. -
nodeIds
public PostVotingConfigExclusionsRequest.Builder nodeIds(@Nullable java.util.List<java.lang.String> value)A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify node_names.API name:
node_ids
-
nodeIds
A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify node_names.API name:
node_ids
-
addNodeIds
Add a value tonodeIds(List)
, creating the list if needed. -
timeout
When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error.API name:
timeout
-
build
Builds aPostVotingConfigExclusionsRequest
.- Specified by:
build
in interfaceObjectBuilder<PostVotingConfigExclusionsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-