Class PostVotingConfigExclusionsRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.cluster.PostVotingConfigExclusionsRequest
- All Implemented Interfaces:
ToCopyableBuilder<PostVotingConfigExclusionsRequest.Builder,PostVotingConfigExclusionsRequest>
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class PostVotingConfigExclusionsRequest
extends RequestBase
implements ToCopyableBuilder<PostVotingConfigExclusionsRequest.Builder,PostVotingConfigExclusionsRequest>
Updates the cluster voting configuration by excluding certain node IDs or names.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionEndpoint "cluster.post_voting_config_exclusions". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) builder()booleaninthashCode()nodeIds()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.of(Function<PostVotingConfigExclusionsRequest.Builder, ObjectBuilder<PostVotingConfigExclusionsRequest>> fn) final Timetimeout()When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning a response.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_ENDPOINT
public static final Endpoint<PostVotingConfigExclusionsRequest,BooleanResponse, _ENDPOINTErrorResponse> Endpoint "cluster.post_voting_config_exclusions".
-
-
Method Details
-
of
-
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_ids -
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_names -
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 -
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PostVotingConfigExclusionsRequest.Builder,PostVotingConfigExclusionsRequest> - Returns:
- a new builder instance.
-
builder
-
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-