/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides a summary of an alert's configuration.See Also:
AWS
* API Reference
The ARN of the alert.
*/ inline const Aws::String& GetAlertArn() const{ return m_alertArn; } /** *The ARN of the alert.
*/ inline bool AlertArnHasBeenSet() const { return m_alertArnHasBeenSet; } /** *The ARN of the alert.
*/ inline void SetAlertArn(const Aws::String& value) { m_alertArnHasBeenSet = true; m_alertArn = value; } /** *The ARN of the alert.
*/ inline void SetAlertArn(Aws::String&& value) { m_alertArnHasBeenSet = true; m_alertArn = std::move(value); } /** *The ARN of the alert.
*/ inline void SetAlertArn(const char* value) { m_alertArnHasBeenSet = true; m_alertArn.assign(value); } /** *The ARN of the alert.
*/ inline AlertSummary& WithAlertArn(const Aws::String& value) { SetAlertArn(value); return *this;} /** *The ARN of the alert.
*/ inline AlertSummary& WithAlertArn(Aws::String&& value) { SetAlertArn(std::move(value)); return *this;} /** *The ARN of the alert.
*/ inline AlertSummary& WithAlertArn(const char* value) { SetAlertArn(value); return *this;} /** *The ARN of the detector to which the alert is attached.
*/ inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; } /** *The ARN of the detector to which the alert is attached.
*/ inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; } /** *The ARN of the detector to which the alert is attached.
*/ inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; } /** *The ARN of the detector to which the alert is attached.
*/ inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); } /** *The ARN of the detector to which the alert is attached.
*/ inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); } /** *The ARN of the detector to which the alert is attached.
*/ inline AlertSummary& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;} /** *The ARN of the detector to which the alert is attached.
*/ inline AlertSummary& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;} /** *The ARN of the detector to which the alert is attached.
*/ inline AlertSummary& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;} /** *The name of the alert.
*/ inline const Aws::String& GetAlertName() const{ return m_alertName; } /** *The name of the alert.
*/ inline bool AlertNameHasBeenSet() const { return m_alertNameHasBeenSet; } /** *The name of the alert.
*/ inline void SetAlertName(const Aws::String& value) { m_alertNameHasBeenSet = true; m_alertName = value; } /** *The name of the alert.
*/ inline void SetAlertName(Aws::String&& value) { m_alertNameHasBeenSet = true; m_alertName = std::move(value); } /** *The name of the alert.
*/ inline void SetAlertName(const char* value) { m_alertNameHasBeenSet = true; m_alertName.assign(value); } /** *The name of the alert.
*/ inline AlertSummary& WithAlertName(const Aws::String& value) { SetAlertName(value); return *this;} /** *The name of the alert.
*/ inline AlertSummary& WithAlertName(Aws::String&& value) { SetAlertName(std::move(value)); return *this;} /** *The name of the alert.
*/ inline AlertSummary& WithAlertName(const char* value) { SetAlertName(value); return *this;} /** *The minimum severity for an anomaly to trigger the alert.
*/ inline int GetAlertSensitivityThreshold() const{ return m_alertSensitivityThreshold; } /** *The minimum severity for an anomaly to trigger the alert.
*/ inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; } /** *The minimum severity for an anomaly to trigger the alert.
*/ inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; } /** *The minimum severity for an anomaly to trigger the alert.
*/ inline AlertSummary& WithAlertSensitivityThreshold(int value) { SetAlertSensitivityThreshold(value); return *this;} /** *The type of the alert.
*/ inline const AlertType& GetAlertType() const{ return m_alertType; } /** *The type of the alert.
*/ inline bool AlertTypeHasBeenSet() const { return m_alertTypeHasBeenSet; } /** *The type of the alert.
*/ inline void SetAlertType(const AlertType& value) { m_alertTypeHasBeenSet = true; m_alertType = value; } /** *The type of the alert.
*/ inline void SetAlertType(AlertType&& value) { m_alertTypeHasBeenSet = true; m_alertType = std::move(value); } /** *The type of the alert.
*/ inline AlertSummary& WithAlertType(const AlertType& value) { SetAlertType(value); return *this;} /** *The type of the alert.
*/ inline AlertSummary& WithAlertType(AlertType&& value) { SetAlertType(std::move(value)); return *this;} /** *The status of the alert.
*/ inline const AlertStatus& GetAlertStatus() const{ return m_alertStatus; } /** *The status of the alert.
*/ inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; } /** *The status of the alert.
*/ inline void SetAlertStatus(const AlertStatus& value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; } /** *The status of the alert.
*/ inline void SetAlertStatus(AlertStatus&& value) { m_alertStatusHasBeenSet = true; m_alertStatus = std::move(value); } /** *The status of the alert.
*/ inline AlertSummary& WithAlertStatus(const AlertStatus& value) { SetAlertStatus(value); return *this;} /** *The status of the alert.
*/ inline AlertSummary& WithAlertStatus(AlertStatus&& value) { SetAlertStatus(std::move(value)); return *this;} /** *The time at which the alert was last modified.
*/ inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; } /** *The time at which the alert was last modified.
*/ inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; } /** *The time at which the alert was last modified.
*/ inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; } /** *The time at which the alert was last modified.
*/ inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); } /** *The time at which the alert was last modified.
*/ inline AlertSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;} /** *The time at which the alert was last modified.
*/ inline AlertSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} /** *The time at which the alert was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The time at which the alert was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The time at which the alert was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The time at which the alert was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The time at which the alert was created.
*/ inline AlertSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The time at which the alert was created.
*/ inline AlertSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The alert's tags.
*/ inline const Aws::MapThe alert's tags.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The alert's tags.
*/ inline void SetTags(const Aws::MapThe alert's tags.
*/ inline void SetTags(Aws::MapThe alert's tags.
*/ inline AlertSummary& WithTags(const Aws::MapThe alert's tags.
*/ inline AlertSummary& WithTags(Aws::MapThe alert's tags.
*/ inline AlertSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The alert's tags.
*/ inline AlertSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The alert's tags.
*/ inline AlertSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The alert's tags.
*/ inline AlertSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The alert's tags.
*/ inline AlertSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The alert's tags.
*/ inline AlertSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The alert's tags.
*/ inline AlertSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_alertArn; bool m_alertArnHasBeenSet = false; Aws::String m_anomalyDetectorArn; bool m_anomalyDetectorArnHasBeenSet = false; Aws::String m_alertName; bool m_alertNameHasBeenSet = false; int m_alertSensitivityThreshold; bool m_alertSensitivityThresholdHasBeenSet = false; AlertType m_alertType; bool m_alertTypeHasBeenSet = false; AlertStatus m_alertStatus; bool m_alertStatusHasBeenSet = false; Aws::Utils::DateTime m_lastModificationTime; bool m_lastModificationTimeHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Map