* The Unix timestamp for the beginning and end of the time window for the search metrics data. *
*/ private TimeRange snapShotTimeFilter; /** ** The column headers for the search metrics data. *
*/ private java.util.List* The search metrics data. The data returned depends on the metric type you requested. *
*/ private java.util.List* If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve * the next set of search metrics data. *
*/ private String nextToken; /** ** The Unix timestamp for the beginning and end of the time window for the search metrics data. *
* * @param snapShotTimeFilter * The Unix timestamp for the beginning and end of the time window for the search metrics data. */ public void setSnapShotTimeFilter(TimeRange snapShotTimeFilter) { this.snapShotTimeFilter = snapShotTimeFilter; } /** ** The Unix timestamp for the beginning and end of the time window for the search metrics data. *
* * @return The Unix timestamp for the beginning and end of the time window for the search metrics data. */ public TimeRange getSnapShotTimeFilter() { return this.snapShotTimeFilter; } /** ** The Unix timestamp for the beginning and end of the time window for the search metrics data. *
* * @param snapShotTimeFilter * The Unix timestamp for the beginning and end of the time window for the search metrics data. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSnapshotsResult withSnapShotTimeFilter(TimeRange snapShotTimeFilter) { setSnapShotTimeFilter(snapShotTimeFilter); return this; } /** ** The column headers for the search metrics data. *
* * @return The column headers for the search metrics data. */ public java.util.List* The column headers for the search metrics data. *
* * @param snapshotsDataHeader * The column headers for the search metrics data. */ public void setSnapshotsDataHeader(java.util.Collection* The column headers for the search metrics data. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSnapshotsDataHeader(java.util.Collection)} or {@link #withSnapshotsDataHeader(java.util.Collection)} * if you want to override the existing values. *
* * @param snapshotsDataHeader * The column headers for the search metrics data. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSnapshotsResult withSnapshotsDataHeader(String... snapshotsDataHeader) { if (this.snapshotsDataHeader == null) { setSnapshotsDataHeader(new java.util.ArrayList* The column headers for the search metrics data. *
* * @param snapshotsDataHeader * The column headers for the search metrics data. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSnapshotsResult withSnapshotsDataHeader(java.util.Collection* The search metrics data. The data returned depends on the metric type you requested. *
* * @return The search metrics data. The data returned depends on the metric type you requested. */ public java.util.List* The search metrics data. The data returned depends on the metric type you requested. *
* * @param snapshotsData * The search metrics data. The data returned depends on the metric type you requested. */ public void setSnapshotsData(java.util.Collection* The search metrics data. The data returned depends on the metric type you requested. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSnapshotsData(java.util.Collection)} or {@link #withSnapshotsData(java.util.Collection)} if you want * to override the existing values. *
* * @param snapshotsData * The search metrics data. The data returned depends on the metric type you requested. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSnapshotsResult withSnapshotsData(java.util.List* The search metrics data. The data returned depends on the metric type you requested. *
* * @param snapshotsData * The search metrics data. The data returned depends on the metric type you requested. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSnapshotsResult withSnapshotsData(java.util.Collection* If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve * the next set of search metrics data. *
* * @param nextToken * If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to * retrieve the next set of search metrics data. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve * the next set of search metrics data. *
* * @return If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to * retrieve the next set of search metrics data. */ public String getNextToken() { return this.nextToken; } /** ** If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve * the next set of search metrics data. *
* * @param nextToken * If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to * retrieve the next set of search metrics data. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSnapshotsResult 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 (getSnapShotTimeFilter() != null) sb.append("SnapShotTimeFilter: ").append(getSnapShotTimeFilter()).append(","); if (getSnapshotsDataHeader() != null) sb.append("SnapshotsDataHeader: ").append(getSnapshotsDataHeader()).append(","); if (getSnapshotsData() != null) sb.append("SnapshotsData: ").append(getSnapshotsData()).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 GetSnapshotsResult == false) return false; GetSnapshotsResult other = (GetSnapshotsResult) obj; if (other.getSnapShotTimeFilter() == null ^ this.getSnapShotTimeFilter() == null) return false; if (other.getSnapShotTimeFilter() != null && other.getSnapShotTimeFilter().equals(this.getSnapShotTimeFilter()) == false) return false; if (other.getSnapshotsDataHeader() == null ^ this.getSnapshotsDataHeader() == null) return false; if (other.getSnapshotsDataHeader() != null && other.getSnapshotsDataHeader().equals(this.getSnapshotsDataHeader()) == false) return false; if (other.getSnapshotsData() == null ^ this.getSnapshotsData() == null) return false; if (other.getSnapshotsData() != null && other.getSnapshotsData().equals(this.getSnapshotsData()) == 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 + ((getSnapShotTimeFilter() == null) ? 0 : getSnapShotTimeFilter().hashCode()); hashCode = prime * hashCode + ((getSnapshotsDataHeader() == null) ? 0 : getSnapshotsDataHeader().hashCode()); hashCode = prime * hashCode + ((getSnapshotsData() == null) ? 0 : getSnapshotsData().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public GetSnapshotsResult clone() { try { return (GetSnapshotsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }