Class GetSnapshotResponse

java.lang.Object
co.elastic.clients.elasticsearch.snapshot.GetSnapshotResponse
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class GetSnapshotResponse extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • remaining

      public final int remaining()
      Required - The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using the next field value.

      API name: remaining

    • total

      public final int total()
      Required - The total number of snapshots that match the request when ignoring the size limit or after query parameter.

      API name: total

    • next

      @Nullable public final String next()
      If the request contained a size limit and there might be more results, a next field will be added to the response. It can be used as the after query parameter to fetch additional results.

      API name: next

    • responses

      public final List<SnapshotResponseItem> responses()
      API name: responses
    • snapshots

      public final List<SnapshotInfo> snapshots()
      API name: snapshots
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupGetSnapshotResponseDeserializer

      protected static void setupGetSnapshotResponseDeserializer(ObjectDeserializer<GetSnapshotResponse.Builder> op)