io.camunda.operate.store.opensearch.response.OpenSearchGetSnapshotResponse Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.operate.store.opensearch.response;
import java.util.List;
import java.util.Objects;
public class OpenSearchGetSnapshotResponse {
private List snapshotInfos = List.of();
public OpenSearchGetSnapshotResponse() {}
public OpenSearchGetSnapshotResponse(final List snapshotInfos) {
this.snapshotInfos = snapshotInfos;
}
public List snapshots() {
return snapshotInfos;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final OpenSearchGetSnapshotResponse that = (OpenSearchGetSnapshotResponse) o;
return Objects.equals(snapshotInfos, that.snapshotInfos);
}
@Override
public int hashCode() {
return Objects.hash(snapshotInfos);
}
@Override
public String toString() {
return "OpenSearchGetSnapshotResponse{" + "snapshotInfos=" + snapshotInfos + '}';
}
}