Class DeleteRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.indices.DeleteRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<DeleteRequest>
- Enclosing class:
- DeleteRequest
public static class DeleteRequest.Builder extends java.lang.Object implements ObjectBuilder<DeleteRequest>
Builder for
DeleteRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DeleteRequest.Builder
addExpandWildcards(ExpandWildcardOptions value)
Add a value toexpandWildcards(List)
, creating the list if needed.DeleteRequest.Builder
addIndex(java.lang.String value)
Add a value toindex(List)
, creating the list if needed.DeleteRequest.Builder
allowNoIndices(java.lang.Boolean value)
Ignore if a wildcard expression resolves to no concrete indices (default: false)DeleteRequest
build()
Builds aDeleteRequest
.DeleteRequest.Builder
expandWildcards(ExpandWildcardOptions... value)
Whether wildcard expressions should get expanded to open, closed, or hidden indicesDeleteRequest.Builder
expandWildcards(java.util.List<ExpandWildcardOptions> value)
Whether wildcard expressions should get expanded to open, closed, or hidden indicesDeleteRequest.Builder
ignoreUnavailable(java.lang.Boolean value)
Ignore unavailable indexes (default: false)DeleteRequest.Builder
index(java.lang.String... value)
Required - A comma-separated list of indices to delete; use_all
or*
string to delete all indicesDeleteRequest.Builder
index(java.util.List<java.lang.String> value)
Required - A comma-separated list of indices to delete; use_all
or*
string to delete all indicesDeleteRequest.Builder
masterTimeout(java.lang.String value)
Specify timeout for connection to masterDeleteRequest.Builder
timeout(java.lang.String value)
Explicit operation timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - A comma-separated list of indices to delete; use_all
or*
string to delete all indicesAPI name:
index
-
index
Required - A comma-separated list of indices to delete; use_all
or*
string to delete all indicesAPI name:
index
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
allowNoIndices
Ignore if a wildcard expression resolves to no concrete indices (default: false)API name:
allow_no_indices
-
expandWildcards
public DeleteRequest.Builder expandWildcards(@Nullable java.util.List<ExpandWildcardOptions> value)Whether wildcard expressions should get expanded to open, closed, or hidden indicesAPI name:
expand_wildcards
-
expandWildcards
Whether wildcard expressions should get expanded to open, closed, or hidden indicesAPI name:
expand_wildcards
-
addExpandWildcards
Add a value toexpandWildcards(List)
, creating the list if needed. -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout
-
timeout
Explicit operation timeoutAPI name:
timeout
-
build
Builds aDeleteRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-