All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.xray.model.GetInsightEventsResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS X-Ray module holds the client classes that are used for communicating with AWS X-Ray Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.xray.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetInsightEventsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* 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 insightEvents; /** *

* 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 getInsightEvents() { return 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. *

* * @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 insightEvents) { if (insightEvents == null) { this.insightEvents = null; return; } this.insightEvents = new java.util.ArrayList(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. *

*

* 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(insightEvents.length)); } for (InsightEvent ele : insightEvents) { this.insightEvents.add(ele); } return this; } /** *

* 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 insightEvents) { setInsightEvents(insightEvents); return this; } /** *

* 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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy