* A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. *
*/ private java.util.List* Use this token to retrieve the next page of insight events. *
*/ private String nextToken; /** ** A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. *
* * @return A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. */ public java.util.List* A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. *
* * @param insightEvents * A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. */ public void setInsightEvents(java.util.Collection* A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInsightEvents(java.util.Collection)} or {@link #withInsightEvents(java.util.Collection)} if you want * to override the existing values. *
* * @param insightEvents * A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightEventsResult withInsightEvents(InsightEvent... insightEvents) { if (this.insightEvents == null) { setInsightEvents(new java.util.ArrayList* A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. *
* * @param insightEvents * A detailed description of the event. This includes the time of the event, client and root cause impact * statistics, and the top anomalous service at the time of the event. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightEventsResult withInsightEvents(java.util.Collection* Use this token to retrieve the next page of insight events. *
* * @param nextToken * Use this token to retrieve the next page of insight events. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** Use this token to retrieve the next page of insight events. *
* * @return Use this token to retrieve the next page of insight events. */ public String getNextToken() { return this.nextToken; } /** ** Use this token to retrieve the next page of insight events. *
* * @param nextToken * Use this token to retrieve the next page of insight events. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightEventsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInsightEvents() != null) sb.append("InsightEvents: ").append(getInsightEvents()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetInsightEventsResult == false) return false; GetInsightEventsResult other = (GetInsightEventsResult) obj; if (other.getInsightEvents() == null ^ this.getInsightEvents() == null) return false; if (other.getInsightEvents() != null && other.getInsightEvents().equals(this.getInsightEvents()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInsightEvents() == null) ? 0 : getInsightEvents().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public GetInsightEventsResult clone() { try { return (GetInsightEventsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }