/* * 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.lookoutmetrics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides a summary of an alert's configuration. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AlertSummary implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the alert. *
*/ private String alertArn; /** ** The ARN of the detector to which the alert is attached. *
*/ private String anomalyDetectorArn; /** ** The name of the alert. *
*/ private String alertName; /** ** The minimum severity for an anomaly to trigger the alert. *
*/ private Integer alertSensitivityThreshold; /** ** The type of the alert. *
*/ private String alertType; /** ** The status of the alert. *
*/ private String alertStatus; /** ** The time at which the alert was last modified. *
*/ private java.util.Date lastModificationTime; /** ** The time at which the alert was created. *
*/ private java.util.Date creationTime; /** ** The alert's tags. *
*/ private java.util.Map* The ARN of the alert. *
* * @param alertArn * The ARN of the alert. */ public void setAlertArn(String alertArn) { this.alertArn = alertArn; } /** ** The ARN of the alert. *
* * @return The ARN of the alert. */ public String getAlertArn() { return this.alertArn; } /** ** The ARN of the alert. *
* * @param alertArn * The ARN of the alert. * @return Returns a reference to this object so that method calls can be chained together. */ public AlertSummary withAlertArn(String alertArn) { setAlertArn(alertArn); return this; } /** ** The ARN of the detector to which the alert is attached. *
* * @param anomalyDetectorArn * The ARN of the detector to which the alert is attached. */ public void setAnomalyDetectorArn(String anomalyDetectorArn) { this.anomalyDetectorArn = anomalyDetectorArn; } /** ** The ARN of the detector to which the alert is attached. *
* * @return The ARN of the detector to which the alert is attached. */ public String getAnomalyDetectorArn() { return this.anomalyDetectorArn; } /** ** The ARN of the detector to which the alert is attached. *
* * @param anomalyDetectorArn * The ARN of the detector to which the alert is attached. * @return Returns a reference to this object so that method calls can be chained together. */ public AlertSummary withAnomalyDetectorArn(String anomalyDetectorArn) { setAnomalyDetectorArn(anomalyDetectorArn); return this; } /** ** The name of the alert. *
* * @param alertName * The name of the alert. */ public void setAlertName(String alertName) { this.alertName = alertName; } /** ** The name of the alert. *
* * @return The name of the alert. */ public String getAlertName() { return this.alertName; } /** ** The name of the alert. *
* * @param alertName * The name of the alert. * @return Returns a reference to this object so that method calls can be chained together. */ public AlertSummary withAlertName(String alertName) { setAlertName(alertName); return this; } /** ** The minimum severity for an anomaly to trigger the alert. *
* * @param alertSensitivityThreshold * The minimum severity for an anomaly to trigger the alert. */ public void setAlertSensitivityThreshold(Integer alertSensitivityThreshold) { this.alertSensitivityThreshold = alertSensitivityThreshold; } /** ** The minimum severity for an anomaly to trigger the alert. *
* * @return The minimum severity for an anomaly to trigger the alert. */ public Integer getAlertSensitivityThreshold() { return this.alertSensitivityThreshold; } /** ** The minimum severity for an anomaly to trigger the alert. *
* * @param alertSensitivityThreshold * The minimum severity for an anomaly to trigger the alert. * @return Returns a reference to this object so that method calls can be chained together. */ public AlertSummary withAlertSensitivityThreshold(Integer alertSensitivityThreshold) { setAlertSensitivityThreshold(alertSensitivityThreshold); return this; } /** ** The type of the alert. *
* * @param alertType * The type of the alert. * @see AlertType */ public void setAlertType(String alertType) { this.alertType = alertType; } /** ** The type of the alert. *
* * @return The type of the alert. * @see AlertType */ public String getAlertType() { return this.alertType; } /** ** The type of the alert. *
* * @param alertType * The type of the alert. * @return Returns a reference to this object so that method calls can be chained together. * @see AlertType */ public AlertSummary withAlertType(String alertType) { setAlertType(alertType); return this; } /** ** The type of the alert. *
* * @param alertType * The type of the alert. * @return Returns a reference to this object so that method calls can be chained together. * @see AlertType */ public AlertSummary withAlertType(AlertType alertType) { this.alertType = alertType.toString(); return this; } /** ** The status of the alert. *
* * @param alertStatus * The status of the alert. * @see AlertStatus */ public void setAlertStatus(String alertStatus) { this.alertStatus = alertStatus; } /** ** The status of the alert. *
* * @return The status of the alert. * @see AlertStatus */ public String getAlertStatus() { return this.alertStatus; } /** ** The status of the alert. *
* * @param alertStatus * The status of the alert. * @return Returns a reference to this object so that method calls can be chained together. * @see AlertStatus */ public AlertSummary withAlertStatus(String alertStatus) { setAlertStatus(alertStatus); return this; } /** ** The status of the alert. *
* * @param alertStatus * The status of the alert. * @return Returns a reference to this object so that method calls can be chained together. * @see AlertStatus */ public AlertSummary withAlertStatus(AlertStatus alertStatus) { this.alertStatus = alertStatus.toString(); return this; } /** ** The time at which the alert was last modified. *
* * @param lastModificationTime * The time at which the alert was last modified. */ public void setLastModificationTime(java.util.Date lastModificationTime) { this.lastModificationTime = lastModificationTime; } /** ** The time at which the alert was last modified. *
* * @return The time at which the alert was last modified. */ public java.util.Date getLastModificationTime() { return this.lastModificationTime; } /** ** The time at which the alert was last modified. *
* * @param lastModificationTime * The time at which the alert was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public AlertSummary withLastModificationTime(java.util.Date lastModificationTime) { setLastModificationTime(lastModificationTime); return this; } /** ** The time at which the alert was created. *
* * @param creationTime * The time at which the alert was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time at which the alert was created. *
* * @return The time at which the alert was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time at which the alert was created. *
* * @param creationTime * The time at which the alert was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AlertSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The alert's tags. *
* * @return The alert's tags. */ public java.util.Map* The alert's tags. *
* * @param tags * The alert's tags. */ public void setTags(java.util.Map* The alert's tags. *
* * @param tags * The alert's tags. * @return Returns a reference to this object so that method calls can be chained together. */ public AlertSummary withTags(java.util.Map