/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details for the CloudWatch alarm you want to apply to an automation or
* command.See Also:
AWS
* API Reference
When this value is true, your automation or command continues to run * in cases where we can’t retrieve alarm status information from CloudWatch. In * cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, * the automation or command continues to run, regardless of this value. Default is * false.
*/ inline bool GetIgnorePollAlarmFailure() const{ return m_ignorePollAlarmFailure; } /** *When this value is true, your automation or command continues to run * in cases where we can’t retrieve alarm status information from CloudWatch. In * cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, * the automation or command continues to run, regardless of this value. Default is * false.
*/ inline bool IgnorePollAlarmFailureHasBeenSet() const { return m_ignorePollAlarmFailureHasBeenSet; } /** *When this value is true, your automation or command continues to run * in cases where we can’t retrieve alarm status information from CloudWatch. In * cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, * the automation or command continues to run, regardless of this value. Default is * false.
*/ inline void SetIgnorePollAlarmFailure(bool value) { m_ignorePollAlarmFailureHasBeenSet = true; m_ignorePollAlarmFailure = value; } /** *When this value is true, your automation or command continues to run * in cases where we can’t retrieve alarm status information from CloudWatch. In * cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, * the automation or command continues to run, regardless of this value. Default is * false.
*/ inline AlarmConfiguration& WithIgnorePollAlarmFailure(bool value) { SetIgnorePollAlarmFailure(value); return *this;} /** *The name of the CloudWatch alarm specified in the configuration.
*/ inline const Aws::VectorThe name of the CloudWatch alarm specified in the configuration.
*/ inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; } /** *The name of the CloudWatch alarm specified in the configuration.
*/ inline void SetAlarms(const Aws::VectorThe name of the CloudWatch alarm specified in the configuration.
*/ inline void SetAlarms(Aws::VectorThe name of the CloudWatch alarm specified in the configuration.
*/ inline AlarmConfiguration& WithAlarms(const Aws::VectorThe name of the CloudWatch alarm specified in the configuration.
*/ inline AlarmConfiguration& WithAlarms(Aws::VectorThe name of the CloudWatch alarm specified in the configuration.
*/ inline AlarmConfiguration& AddAlarms(const Alarm& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; } /** *The name of the CloudWatch alarm specified in the configuration.
*/ inline AlarmConfiguration& AddAlarms(Alarm&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; } private: bool m_ignorePollAlarmFailure; bool m_ignorePollAlarmFailureHasBeenSet = false; Aws::Vector