Class GetRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.GetRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetRequest>
- Enclosing class:
- GetRequest
public static class GetRequest.Builder extends java.lang.Object implements ObjectBuilder<GetRequest>
Builder for
GetRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetRequest.Builder
addSnapshot(java.lang.String value)
Add a value tosnapshot(List)
, creating the list if needed.GetRequest
build()
Builds aGetRequest
.GetRequest.Builder
human(java.lang.Boolean value)
API name:human
GetRequest.Builder
ignoreUnavailable(java.lang.Boolean value)
If false, the request returns an error for any snapshots that are unavailable.GetRequest.Builder
includeRepository(java.lang.Boolean value)
Whether to include the repository name in the snapshot info.GetRequest.Builder
indexDetails(java.lang.Boolean value)
If true, returns additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index.GetRequest.Builder
masterTimeout(java.lang.String value)
Period to wait for a connection to the master node.GetRequest.Builder
repository(java.lang.String value)
Comma-separated list of snapshot repository names used to limit the request.GetRequest.Builder
snapshot(java.lang.String... value)
Comma-separated list of snapshot names to retrieve.GetRequest.Builder
snapshot(java.util.List<java.lang.String> value)
Comma-separated list of snapshot names to retrieve.GetRequest.Builder
verbose(java.lang.Boolean value)
If true, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repository
Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.API name:
repository
-
snapshot
Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*).- To get information about all snapshots in a registered repository, use a wildcard (*) or _all.
- To get information about any snapshots that are currently running, use _current.
API name:
snapshot
-
snapshot
Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*).- To get information about all snapshots in a registered repository, use a wildcard (*) or _all.
- To get information about any snapshots that are currently running, use _current.
API name:
snapshot
-
addSnapshot
Add a value tosnapshot(List)
, creating the list if needed. 4 -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
verbose
If true, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.API name:
verbose
-
indexDetails
If true, returns additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index. Defaults to false, meaning that this information is omitted.API name:
index_details
-
human
API name:human
-
includeRepository
Whether to include the repository name in the snapshot info. Defaults to true.API name:
include_repository
-
build
Builds aGetRequest
.- Specified by:
build
in interfaceObjectBuilder<GetRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-