/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApplicationAutoScaling { namespace Model { /** *

Represents a CloudWatch alarm associated with a scaling policy.

See * Also:

AWS * API Reference

*/ class Alarm { public: AWS_APPLICATIONAUTOSCALING_API Alarm(); AWS_APPLICATIONAUTOSCALING_API Alarm(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONAUTOSCALING_API Alarm& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the alarm.

*/ inline const Aws::String& GetAlarmName() const{ return m_alarmName; } /** *

The name of the alarm.

*/ inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; } /** *

The name of the alarm.

*/ inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; } /** *

The name of the alarm.

*/ inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); } /** *

The name of the alarm.

*/ inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); } /** *

The name of the alarm.

*/ inline Alarm& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;} /** *

The name of the alarm.

*/ inline Alarm& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;} /** *

The name of the alarm.

*/ inline Alarm& WithAlarmName(const char* value) { SetAlarmName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline const Aws::String& GetAlarmARN() const{ return m_alarmARN; } /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline bool AlarmARNHasBeenSet() const { return m_alarmARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline void SetAlarmARN(const Aws::String& value) { m_alarmARNHasBeenSet = true; m_alarmARN = value; } /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline void SetAlarmARN(Aws::String&& value) { m_alarmARNHasBeenSet = true; m_alarmARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline void SetAlarmARN(const char* value) { m_alarmARNHasBeenSet = true; m_alarmARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline Alarm& WithAlarmARN(const Aws::String& value) { SetAlarmARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline Alarm& WithAlarmARN(Aws::String&& value) { SetAlarmARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the alarm.

*/ inline Alarm& WithAlarmARN(const char* value) { SetAlarmARN(value); return *this;} private: Aws::String m_alarmName; bool m_alarmNameHasBeenSet = false; Aws::String m_alarmARN; bool m_alarmARNHasBeenSet = false; }; } // namespace Model } // namespace ApplicationAutoScaling } // namespace Aws