public class SnapshotsStatusRequestBuilder extends MasterNodeOperationRequestBuilder<SnapshotsStatusRequest,SnapshotsStatusResponse,SnapshotsStatusRequestBuilder>
action, client, request
Constructor | Description |
---|---|
SnapshotsStatusRequestBuilder(ElasticsearchClient client,
SnapshotsStatusAction action) |
Constructs the new snapshot status request
|
SnapshotsStatusRequestBuilder(ElasticsearchClient client,
SnapshotsStatusAction action,
java.lang.String repository) |
Constructs the new snapshot status request with specified repository
|
Modifier and Type | Method | Description |
---|---|---|
SnapshotsStatusRequestBuilder |
addSnapshots(java.lang.String... snapshots) |
Adds additional snapshots to the list of snapshots to return
|
SnapshotsStatusRequestBuilder |
setIgnoreUnavailable(boolean ignoreUnavailable) |
Set to
true to ignore unavailable snapshots, instead of throwing an exception. |
SnapshotsStatusRequestBuilder |
setRepository(java.lang.String repository) |
Sets the repository name
|
SnapshotsStatusRequestBuilder |
setSnapshots(java.lang.String... snapshots) |
Sets list of snapshots to return
|
execute, execute, get, get, get, request
setMasterNodeTimeout, setMasterNodeTimeout
public SnapshotsStatusRequestBuilder(ElasticsearchClient client, SnapshotsStatusAction action)
public SnapshotsStatusRequestBuilder(ElasticsearchClient client, SnapshotsStatusAction action, java.lang.String repository)
public SnapshotsStatusRequestBuilder setRepository(java.lang.String repository)
repository
- repository namepublic SnapshotsStatusRequestBuilder setSnapshots(java.lang.String... snapshots)
snapshots
- list of snapshotspublic SnapshotsStatusRequestBuilder addSnapshots(java.lang.String... snapshots)
snapshots
- additional snapshotspublic SnapshotsStatusRequestBuilder setIgnoreUnavailable(boolean ignoreUnavailable)
true
to ignore unavailable snapshots, instead of throwing an exception.
Defaults to false
, which means unavailable snapshots cause an exception to be thrown.ignoreUnavailable
- whether to ignore unavailable snapshots.