Class PostVotingConfigExclusionsRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.cluster.PostVotingConfigExclusionsRequest
-
public class PostVotingConfigExclusionsRequest extends RequestBase
Updates the cluster voting config exclusions by node ids or node names.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostVotingConfigExclusionsRequest.BuilderBuilder forPostVotingConfigExclusionsRequest.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<PostVotingConfigExclusionsRequest,BooleanResponse,ErrorResponse>_ENDPOINTEndpoint "cluster.post_voting_config_exclusions".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>nodeIds()A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.java.util.List<java.lang.String>nodeNames()A comma-separated list of the names of the nodes to exclude from the voting configuration.static PostVotingConfigExclusionsRequestof(java.util.function.Function<PostVotingConfigExclusionsRequest.Builder,ObjectBuilder<PostVotingConfigExclusionsRequest>> fn)Timetimeout()When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning.
-
-
-
Field Detail
-
_ENDPOINT
public static final Endpoint<PostVotingConfigExclusionsRequest,BooleanResponse,ErrorResponse> _ENDPOINT
Endpoint "cluster.post_voting_config_exclusions".
-
-
Method Detail
-
of
public static PostVotingConfigExclusionsRequest of(java.util.function.Function<PostVotingConfigExclusionsRequest.Builder,ObjectBuilder<PostVotingConfigExclusionsRequest>> fn)
-
nodeIds
public final java.util.List<java.lang.String> 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
-
nodeNames
public final java.util.List<java.lang.String> 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
-
timeout
@Nullable public final Time 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
-
-