/* * 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 ListAnomalies
.
*
* 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 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.
*
* 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. *
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
*
* 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* 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 ReactiveAnomaly 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 ReactiveAnomaly 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 ReactiveAnomaly withSeverity(AnomalySeverity severity) { this.severity = severity.toString(); return this; } /** ** The status of the anomaly. *
* * @param status * The status of the anomaly. * @see AnomalyStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the anomaly. *
* * @return The status of the anomaly. * @see AnomalyStatus */ public String getStatus() { return this.status; } /** ** The status of the anomaly. *
* * @param status * The status of the anomaly. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyStatus */ public ReactiveAnomaly withStatus(String status) { setStatus(status); return this; } /** ** The status of the anomaly. *
* * @param status * The status of the anomaly. * @return Returns a reference to this object so that method calls can be chained together. * @see AnomalyStatus */ public ReactiveAnomaly 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 ReactiveAnomaly 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.
*
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.
*
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.
*
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 ReactiveAnomaly 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 ReactiveAnomaly 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 ReactiveAnomaly 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 ReactiveAnomaly withResourceCollection(ResourceCollection resourceCollection) { setResourceCollection(resourceCollection); return this; } /** ** The type of the reactive anomaly. It can be one of the following types. *
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal
* anomaly.
*
* The type of the reactive anomaly. It can be one of the following types. *
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal
* anomaly.
*
* The type of the reactive anomaly. It can be one of the following types. *
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal
* anomaly.
*
* The type of the reactive anomaly. It can be one of the following types. *
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
*
* CAUSAL
- the anomaly can cause a new insight.
*
* CONTEXTUAL
- the anomaly contains additional information about an insight or its causal
* anomaly.
*
* The name of the reactive anomaly. *
* * @param name * The name of the reactive anomaly. */ public void setName(String name) { this.name = name; } /** ** The name of the reactive anomaly. *
* * @return The name of the reactive anomaly. */ public String getName() { return this.name; } /** ** The name of the reactive anomaly. *
* * @param name * The name of the reactive anomaly. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomaly withName(String name) { setName(name); return this; } /** ** A description of the reactive anomaly. *
* * @param description * A description of the reactive anomaly. */ public void setDescription(String description) { this.description = description; } /** ** A description of the reactive anomaly. *
* * @return A description of the reactive anomaly. */ public String getDescription() { return this.description; } /** ** A description of the reactive anomaly. *
* * @param description * A description of the reactive anomaly. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomaly withDescription(String description) { setDescription(description); return this; } /** ** The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly is * always `NULL`. *
* * @param causalAnomalyId * The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly * is always `NULL`. */ public void setCausalAnomalyId(String causalAnomalyId) { this.causalAnomalyId = causalAnomalyId; } /** ** The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly is * always `NULL`. *
* * @return The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly * is always `NULL`. */ public String getCausalAnomalyId() { return this.causalAnomalyId; } /** ** The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly is * always `NULL`. *
* * @param causalAnomalyId * The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly * is always `NULL`. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomaly withCausalAnomalyId(String causalAnomalyId) { setCausalAnomalyId(causalAnomalyId); return this; } /** ** The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. *
* * @return The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. */ public java.util.List* The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. *
* * @param anomalyResources * The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. */ public void setAnomalyResources(java.util.Collection* The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAnomalyResources(java.util.Collection)} or {@link #withAnomalyResources(java.util.Collection)} if you * want to override the existing values. *
* * @param anomalyResources * The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomaly withAnomalyResources(AnomalyResource... anomalyResources) { if (this.anomalyResources == null) { setAnomalyResources(new java.util.ArrayList* The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. *
* * @param anomalyResources * The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveAnomaly withAnomalyResources(java.util.Collection