/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides summary information about a monitor alert.See Also:
* AWS
* API Reference
The name of a monitoring alert.
*/ inline const Aws::String& GetMonitoringAlertName() const{ return m_monitoringAlertName; } /** *The name of a monitoring alert.
*/ inline bool MonitoringAlertNameHasBeenSet() const { return m_monitoringAlertNameHasBeenSet; } /** *The name of a monitoring alert.
*/ inline void SetMonitoringAlertName(const Aws::String& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = value; } /** *The name of a monitoring alert.
*/ inline void SetMonitoringAlertName(Aws::String&& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = std::move(value); } /** *The name of a monitoring alert.
*/ inline void SetMonitoringAlertName(const char* value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName.assign(value); } /** *The name of a monitoring alert.
*/ inline MonitoringAlertSummary& WithMonitoringAlertName(const Aws::String& value) { SetMonitoringAlertName(value); return *this;} /** *The name of a monitoring alert.
*/ inline MonitoringAlertSummary& WithMonitoringAlertName(Aws::String&& value) { SetMonitoringAlertName(std::move(value)); return *this;} /** *The name of a monitoring alert.
*/ inline MonitoringAlertSummary& WithMonitoringAlertName(const char* value) { SetMonitoringAlertName(value); return *this;} /** *A timestamp that indicates when a monitor alert was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *A timestamp that indicates when a monitor alert was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *A timestamp that indicates when a monitor alert was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *A timestamp that indicates when a monitor alert was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *A timestamp that indicates when a monitor alert was created.
*/ inline MonitoringAlertSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *A timestamp that indicates when a monitor alert was created.
*/ inline MonitoringAlertSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *A timestamp that indicates when a monitor alert was last updated.
*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *A timestamp that indicates when a monitor alert was last updated.
*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *A timestamp that indicates when a monitor alert was last updated.
*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *A timestamp that indicates when a monitor alert was last updated.
*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *A timestamp that indicates when a monitor alert was last updated.
*/ inline MonitoringAlertSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *A timestamp that indicates when a monitor alert was last updated.
*/ inline MonitoringAlertSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *The current status of an alert.
*/ inline const MonitoringAlertStatus& GetAlertStatus() const{ return m_alertStatus; } /** *The current status of an alert.
*/ inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; } /** *The current status of an alert.
*/ inline void SetAlertStatus(const MonitoringAlertStatus& value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; } /** *The current status of an alert.
*/ inline void SetAlertStatus(MonitoringAlertStatus&& value) { m_alertStatusHasBeenSet = true; m_alertStatus = std::move(value); } /** *The current status of an alert.
*/ inline MonitoringAlertSummary& WithAlertStatus(const MonitoringAlertStatus& value) { SetAlertStatus(value); return *this;} /** *The current status of an alert.
*/ inline MonitoringAlertSummary& WithAlertStatus(MonitoringAlertStatus&& value) { SetAlertStatus(std::move(value)); return *this;} /** *Within EvaluationPeriod
, how many execution failures will raise
* an alert.
Within EvaluationPeriod
, how many execution failures will raise
* an alert.
Within EvaluationPeriod
, how many execution failures will raise
* an alert.
Within EvaluationPeriod
, how many execution failures will raise
* an alert.
The number of most recent monitoring executions to consider when evaluating * alert status.
*/ inline int GetEvaluationPeriod() const{ return m_evaluationPeriod; } /** *The number of most recent monitoring executions to consider when evaluating * alert status.
*/ inline bool EvaluationPeriodHasBeenSet() const { return m_evaluationPeriodHasBeenSet; } /** *The number of most recent monitoring executions to consider when evaluating * alert status.
*/ inline void SetEvaluationPeriod(int value) { m_evaluationPeriodHasBeenSet = true; m_evaluationPeriod = value; } /** *The number of most recent monitoring executions to consider when evaluating * alert status.
*/ inline MonitoringAlertSummary& WithEvaluationPeriod(int value) { SetEvaluationPeriod(value); return *this;} /** *A list of alert actions taken in response to an alert going into
* InAlert
status.
A list of alert actions taken in response to an alert going into
* InAlert
status.
A list of alert actions taken in response to an alert going into
* InAlert
status.
A list of alert actions taken in response to an alert going into
* InAlert
status.
A list of alert actions taken in response to an alert going into
* InAlert
status.
A list of alert actions taken in response to an alert going into
* InAlert
status.