Class PostVotingConfigExclusionsRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.PostVotingConfigExclusionsRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<PostVotingConfigExclusionsRequest>
- Enclosing class:
- PostVotingConfigExclusionsRequest
public static class PostVotingConfigExclusionsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<PostVotingConfigExclusionsRequest>
Builder forPostVotingConfigExclusionsRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostVotingConfigExclusionsRequestbuild()Builds aPostVotingConfigExclusionsRequest.PostVotingConfigExclusionsRequest.BuildernodeIds(java.lang.String value, java.lang.String... values)A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.BuildernodeIds(java.util.List<java.lang.String> list)A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.BuildernodeNames(java.lang.String value, java.lang.String... values)A comma-separated list of the names of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.BuildernodeNames(java.util.List<java.lang.String> list)A comma-separated list of the names of the nodes to exclude from the voting configuration.PostVotingConfigExclusionsRequest.Buildertimeout(java.util.function.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.PostVotingConfigExclusionsRequest.Buildertimeout(Time 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 org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
nodeIds
public final PostVotingConfigExclusionsRequest.Builder nodeIds(java.util.List<java.lang.String> list)
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_idsAdds all elements of
listtonodeIds.
-
nodeIds
public final PostVotingConfigExclusionsRequest.Builder nodeIds(java.lang.String value, java.lang.String... values)
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_idsAdds one or more values to
nodeIds.
-
nodeNames
public final PostVotingConfigExclusionsRequest.Builder nodeNames(java.util.List<java.lang.String> list)
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_namesAdds all elements of
listtonodeNames.
-
nodeNames
public final PostVotingConfigExclusionsRequest.Builder nodeNames(java.lang.String value, java.lang.String... values)
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_namesAdds one or more values to
nodeNames.
-
timeout
public final PostVotingConfigExclusionsRequest.Builder timeout(@Nullable Time value)
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
-
timeout
public final PostVotingConfigExclusionsRequest.Builder timeout(java.util.function.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
-
build
public PostVotingConfigExclusionsRequest build()
Builds aPostVotingConfigExclusionsRequest.- Specified by:
buildin interfaceObjectBuilder<PostVotingConfigExclusionsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-