Class PostVotingConfigExclusionsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<PostVotingConfigExclusionsRequest.Builder>
org.opensearch.client.opensearch.cluster.PostVotingConfigExclusionsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<PostVotingConfigExclusionsRequest.Builder,,PostVotingConfigExclusionsRequest> MutableBuilder<PostVotingConfigExclusionsRequest.Builder,,PostVotingConfigExclusionsRequest> ObjectBuilder<PostVotingConfigExclusionsRequest>
- Enclosing class:
PostVotingConfigExclusionsRequest
public static class PostVotingConfigExclusionsRequest.Builder
extends RequestBase.AbstractBuilder<PostVotingConfigExclusionsRequest.Builder>
implements CopyableBuilder<PostVotingConfigExclusionsRequest.Builder,PostVotingConfigExclusionsRequest>
Builder for
PostVotingConfigExclusionsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPostVotingConfigExclusionsRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.A comma-separated list of node IDs to exclude from the voting configuration.A comma-separated list of node IDs to exclude from the voting configuration.A comma-separated list of node names to exclude from the voting configuration.A comma-separated list of node names 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 a response.When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning a response.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<PostVotingConfigExclusionsRequest.Builder,PostVotingConfigExclusionsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PostVotingConfigExclusionsRequest.Builder>
-
nodeIds
A comma-separated list of node IDs to exclude from the voting configuration. When using this setting, you cannot also specifynode_names. Eithernode_idsornode_namesare required to receive a valid response.API name:
node_idsAdds all elements of
listtonodeIds. -
nodeIds
@Nonnull public final PostVotingConfigExclusionsRequest.Builder nodeIds(String value, String... values) A comma-separated list of node IDs to exclude from the voting configuration. When using this setting, you cannot also specifynode_names. Eithernode_idsornode_namesare required to receive a valid response.API name:
node_idsAdds one or more values to
nodeIds. -
nodeNames
A comma-separated list of node names to exclude from the voting configuration. When using this setting, you cannot also specifynode_ids. Eithernode_idsornode_namesare required to receive a valid response.API name:
node_namesAdds all elements of
listtonodeNames. -
nodeNames
@Nonnull public final PostVotingConfigExclusionsRequest.Builder nodeNames(String value, String... values) A comma-separated list of node names to exclude from the voting configuration. When using this setting, you cannot also specifynode_ids. Eithernode_idsornode_namesare required to receive a valid response.API name:
node_namesAdds one or more values to
nodeNames. -
timeout
When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning a response. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error.API name:
timeout -
timeout
@Nonnull public 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 a response. 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:
buildin interfaceObjectBuilder<PostVotingConfigExclusionsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-