/* * 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.devopsguru.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Details about a reactive anomaly. This object is returned by DescribeAnomaly. *

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

* The ID of the reactive anomaly. *

*/ private String id; /** *

* The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

*/ private String severity; /** *

* The status of the reactive anomaly. *

*/ private String status; private AnomalyTimeRange anomalyTimeRange; /** *

* An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is opened * and the time when it is closed. *

*/ private AnomalyReportedTimeRange anomalyReportedTimeRange; /** *

* Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is * Amazon CloudWatch metrics. *

*/ private AnomalySourceDetails sourceDetails; /** *

* The ID of the insight that contains this anomaly. An insight is composed of related anomalies. *

*/ private String associatedInsightId; private ResourceCollection resourceCollection; /** *

* The type of the reactive anomaly. It can be one of the following types. *

* */ private String type; /** *

* The name of the reactive anomaly. *

*/ private String name; /** *

* A description of the reactive anomaly. *

*/ private String description; /** *

* The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly is * always `NULL`. *

*/ private String causalAnomalyId; /** *

* The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. *

*/ private java.util.List anomalyResources; /** *

* The ID of the reactive anomaly. *

* * @param id * The ID of the reactive anomaly. */ public void setId(String id) { this.id = id; } /** *

* The ID of the reactive anomaly. *

* * @return The ID of the reactive anomaly. */ public String getId() { return this.id; } /** *

* The ID of the reactive anomaly. *

* * @param id * The ID of the reactive anomaly. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomalySummary withId(String id) { setId(id); return this; } /** *

* The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @param severity * The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @see AnomalySeverity */ public void setSeverity(String severity) { this.severity = severity; } /** *

* The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @return The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @see AnomalySeverity */ public String getSeverity() { return this.severity; } /** *

* The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @param severity * The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalySeverity */ public ReactiveAnomalySummary withSeverity(String severity) { setSeverity(severity); return this; } /** *

* The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @param severity * The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's * severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalySeverity */ public ReactiveAnomalySummary withSeverity(AnomalySeverity severity) { this.severity = severity.toString(); return this; } /** *

* The status of the reactive anomaly. *

* * @param status * The status of the reactive anomaly. * @see AnomalyStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the reactive anomaly. *

* * @return The status of the reactive anomaly. * @see AnomalyStatus */ public String getStatus() { return this.status; } /** *

* The status of the reactive anomaly. *

* * @param status * The status of the reactive anomaly. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyStatus */ public ReactiveAnomalySummary withStatus(String status) { setStatus(status); return this; } /** *

* The status of the reactive anomaly. *

* * @param status * The status of the reactive anomaly. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyStatus */ public ReactiveAnomalySummary withStatus(AnomalyStatus status) { this.status = status.toString(); return this; } /** * @param anomalyTimeRange */ public void setAnomalyTimeRange(AnomalyTimeRange anomalyTimeRange) { this.anomalyTimeRange = anomalyTimeRange; } /** * @return */ public AnomalyTimeRange getAnomalyTimeRange() { return this.anomalyTimeRange; } /** * @param anomalyTimeRange * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomalySummary withAnomalyTimeRange(AnomalyTimeRange anomalyTimeRange) { setAnomalyTimeRange(anomalyTimeRange); return this; } /** *

* An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is opened * and the time when it is closed. *

* * @param anomalyReportedTimeRange * An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is * opened and the time when it is closed. */ public void setAnomalyReportedTimeRange(AnomalyReportedTimeRange anomalyReportedTimeRange) { this.anomalyReportedTimeRange = anomalyReportedTimeRange; } /** *

* An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is opened * and the time when it is closed. *

* * @return An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is * opened and the time when it is closed. */ public AnomalyReportedTimeRange getAnomalyReportedTimeRange() { return this.anomalyReportedTimeRange; } /** *

* An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is opened * and the time when it is closed. *

* * @param anomalyReportedTimeRange * An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is * opened and the time when it is closed. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomalySummary withAnomalyReportedTimeRange(AnomalyReportedTimeRange anomalyReportedTimeRange) { setAnomalyReportedTimeRange(anomalyReportedTimeRange); return this; } /** *

* Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is * Amazon CloudWatch metrics. *

* * @param sourceDetails * Details about the source of the analyzed operational data that triggered the anomaly. The one supported * source is Amazon CloudWatch metrics. */ public void setSourceDetails(AnomalySourceDetails sourceDetails) { this.sourceDetails = sourceDetails; } /** *

* Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is * Amazon CloudWatch metrics. *

* * @return Details about the source of the analyzed operational data that triggered the anomaly. The one supported * source is Amazon CloudWatch metrics. */ public AnomalySourceDetails getSourceDetails() { return this.sourceDetails; } /** *

* Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is * Amazon CloudWatch metrics. *

* * @param sourceDetails * Details about the source of the analyzed operational data that triggered the anomaly. The one supported * source is Amazon CloudWatch metrics. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomalySummary withSourceDetails(AnomalySourceDetails sourceDetails) { setSourceDetails(sourceDetails); return this; } /** *

* The ID of the insight that contains this anomaly. An insight is composed of related anomalies. *

* * @param associatedInsightId * The ID of the insight that contains this anomaly. An insight is composed of related anomalies. */ public void setAssociatedInsightId(String associatedInsightId) { this.associatedInsightId = associatedInsightId; } /** *

* The ID of the insight that contains this anomaly. An insight is composed of related anomalies. *

* * @return The ID of the insight that contains this anomaly. An insight is composed of related anomalies. */ public String getAssociatedInsightId() { return this.associatedInsightId; } /** *

* The ID of the insight that contains this anomaly. An insight is composed of related anomalies. *

* * @param associatedInsightId * The ID of the insight that contains this anomaly. An insight is composed of related anomalies. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomalySummary withAssociatedInsightId(String associatedInsightId) { setAssociatedInsightId(associatedInsightId); return this; } /** * @param resourceCollection */ public void setResourceCollection(ResourceCollection resourceCollection) { this.resourceCollection = resourceCollection; } /** * @return */ public ResourceCollection getResourceCollection() { return this.resourceCollection; } /** * @param resourceCollection * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomalySummary withResourceCollection(ResourceCollection resourceCollection) { setResourceCollection(resourceCollection); return this; } /** *

* The type of the reactive anomaly. It can be one of the following types. *

* * * @param type * The type of the reactive anomaly. It can be one of the following types.

*