Class PostVotingConfigExclusionsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PostVotingConfigExclusionsRequest.Builder>
co.elastic.clients.elasticsearch.cluster.PostVotingConfigExclusionsRequest.Builder
- All Implemented Interfaces:
- WithJson<PostVotingConfigExclusionsRequest.Builder>,- ObjectBuilder<PostVotingConfigExclusionsRequest>
- Enclosing class:
- PostVotingConfigExclusionsRequest
public static class PostVotingConfigExclusionsRequest.Builder
extends RequestBase.AbstractBuilder<PostVotingConfigExclusionsRequest.Builder>
implements ObjectBuilder<PostVotingConfigExclusionsRequest>
Builder for 
PostVotingConfigExclusionsRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aPostVotingConfigExclusionsRequest.masterTimeout(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.A comma-separated list of the names of the nodes to exclude from the voting configuration.A comma-separated list of the names of the nodes to exclude from the voting configuration.self()When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning.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 co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
masterTimeoutPeriod to wait for a connection to the master node.API name: master_timeout
- 
masterTimeoutpublic final PostVotingConfigExclusionsRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a connection to the master node.API name: master_timeout
- 
nodeIdsA 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_idsAdds all elements of listtonodeIds.
- 
nodeIdsA 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_idsAdds one or more values to nodeIds.
- 
nodeNamesA 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_namesAdds all elements of listtonodeNames.
- 
nodeNamesA 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_namesAdds one or more values to nodeNames.
- 
timeoutWhen 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
- 
timeoutpublic final PostVotingConfigExclusionsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<PostVotingConfigExclusionsRequest.Builder>
 
- 
buildBuilds aPostVotingConfigExclusionsRequest.- Specified by:
- buildin interface- ObjectBuilder<PostVotingConfigExclusionsRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-