Class SnapshotsRecord

java.lang.Object
org.opensearch.client.opensearch.cat.snapshots.SnapshotsRecord
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<SnapshotsRecord.Builder,SnapshotsRecord>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class SnapshotsRecord extends Object implements PlainJsonSerializable, ToCopyableBuilder<SnapshotsRecord.Builder,SnapshotsRecord>
  • Field Details

  • Method Details

    • of

    • duration

      @Nullable public final Time duration()
      API name: duration
    • endEpoch

      @Nullable public final Long endEpoch()
      API name: end_epoch
    • endTime

      @Nullable public final String endTime()
      API name: end_time
    • failedShards

      @Nullable public final String failedShards()
      The number of failed shards in the snapshot.

      API name: failed_shards

    • id

      @Nullable public final String id()
      The unique identifier for the snapshot.

      API name: id

    • indices

      @Nullable public final String indices()
      The number of indexes in the snapshot.

      API name: indices

    • reason

      @Nullable public final String reason()
      The reason for any snapshot failures.

      API name: reason

    • repository

      @Nullable public final String repository()
      The repository name.

      API name: repository

    • startEpoch

      @Nullable public final Long startEpoch()
      API name: start_epoch
    • startTime

      @Nullable public final String startTime()
      API name: start_time
    • status

      @Nullable public final String status()
      The state of the snapshot process. Returned values include: FAILED: The snapshot process failed. INCOMPATIBLE: The snapshot process is incompatible with the current cluster version. IN_PROGRESS: The snapshot process started but has not completed. PARTIAL: The snapshot process completed with a partial success. SUCCESS: The snapshot process completed with a full success.

      API name: status

    • successfulShards

      @Nullable public final String successfulShards()
      The number of successful shards in the snapshot.

      API name: successful_shards

    • totalShards

      @Nullable public final String totalShards()
      The total number of shards in the snapshot.

      API name: total_shards

    • 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)
    • toBuilder

      @Nonnull public SnapshotsRecord.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<SnapshotsRecord.Builder,SnapshotsRecord>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static SnapshotsRecord.Builder builder()
    • setupSnapshotsRecordDeserializer

      protected static void setupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object