Class SnapshotsStatusRequestBuilder

All Implemented Interfaces:
RequestBuilder<SnapshotsStatusRequest,SnapshotsStatusResponse>

Snapshots status request builder
  • Constructor Details

    • SnapshotsStatusRequestBuilder

      public SnapshotsStatusRequestBuilder(ElasticsearchClient client)
      Constructs the new snapshot status request
    • SnapshotsStatusRequestBuilder

      public SnapshotsStatusRequestBuilder(ElasticsearchClient client, String repository)
      Constructs the new snapshot status request with specified repository
  • Method Details

    • setRepository

      public SnapshotsStatusRequestBuilder setRepository(String repository)
      Sets the repository name
      Parameters:
      repository - repository name
      Returns:
      this builder
    • setSnapshots

      public SnapshotsStatusRequestBuilder setSnapshots(String... snapshots)
      Sets list of snapshots to return
      Parameters:
      snapshots - list of snapshots
      Returns:
      this builder
    • addSnapshots

      public SnapshotsStatusRequestBuilder addSnapshots(String... snapshots)
      Adds additional snapshots to the list of snapshots to return
      Parameters:
      snapshots - additional snapshots
      Returns:
      this builder
    • setIgnoreUnavailable

      public SnapshotsStatusRequestBuilder setIgnoreUnavailable(boolean ignoreUnavailable)
      Set to true to ignore unavailable snapshots, instead of throwing an exception. Defaults to false, which means unavailable snapshots cause an exception to be thrown.
      Parameters:
      ignoreUnavailable - whether to ignore unavailable snapshots.
      Returns:
      this builder