001package com.box.sdkgen.schemas.v2026r0.queryinsightsv2026r0; 002 003import com.box.sdkgen.internal.SerializableObject; 004import com.box.sdkgen.schemas.v2026r0.queryinsightentryv2026r0.QueryInsightEntryV2026R0; 005import com.fasterxml.jackson.annotation.JsonFilter; 006import com.fasterxml.jackson.annotation.JsonProperty; 007import java.util.List; 008import java.util.Objects; 009 010/** The computed results of an insights request, as a list of insight entries. */ 011@JsonFilter("nullablePropertyFilter") 012public class QueryInsightsV2026R0 extends SerializableObject { 013 014 /** 015 * The list of computed insight entries. Each entry corresponds to a group, the overall dataset, 016 * or the aggregate of groups outside the top results. 017 */ 018 protected final List<QueryInsightEntryV2026R0> insights; 019 020 public QueryInsightsV2026R0(@JsonProperty("insights") List<QueryInsightEntryV2026R0> insights) { 021 super(); 022 this.insights = insights; 023 } 024 025 public List<QueryInsightEntryV2026R0> getInsights() { 026 return insights; 027 } 028 029 @Override 030 public boolean equals(Object o) { 031 if (this == o) { 032 return true; 033 } 034 if (o == null || getClass() != o.getClass()) { 035 return false; 036 } 037 QueryInsightsV2026R0 casted = (QueryInsightsV2026R0) o; 038 return Objects.equals(insights, casted.insights); 039 } 040 041 @Override 042 public int hashCode() { 043 return Objects.hash(insights); 044 } 045 046 @Override 047 public String toString() { 048 return "QueryInsightsV2026R0{" + "insights='" + insights + '\'' + "}"; 049 } 050}