package com.petshop.backend.dto.productsupplier;

import jakarta.validation.constraints.NotEmpty;
import java.util.List;
import java.util.Objects;

public class BulkDeleteProductSupplierRequest {
    @NotEmpty(message = "Keys list cannot be empty")
    private List<ProductSupplierKey> keys;

    public List<ProductSupplierKey> getKeys() {
        return keys;
    }

    public void setKeys(List<ProductSupplierKey> keys) {
        this.keys = keys;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BulkDeleteProductSupplierRequest that = (BulkDeleteProductSupplierRequest) o;
        return Objects.equals(keys, that.keys);
    }

    @Override
    public int hashCode() {
        return Objects.hash(keys);
    }

    @Override
    public String toString() {
        return "BulkDeleteProductSupplierRequest{" +
                "keys=" + keys +
                '}';
    }
}
