/** * 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 AppConfig { namespace Model { /** *

Amazon CloudWatch alarms to monitor during the deployment * process.

See Also:

AWS * API Reference

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

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline const Aws::String& GetAlarmArn() const{ return m_alarmArn; } /** *

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline void SetAlarmArn(const Aws::String& value) { m_alarmArnHasBeenSet = true; m_alarmArn = value; } /** *

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline void SetAlarmArn(Aws::String&& value) { m_alarmArnHasBeenSet = true; m_alarmArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline void SetAlarmArn(const char* value) { m_alarmArnHasBeenSet = true; m_alarmArn.assign(value); } /** *

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline Monitor& WithAlarmArn(const Aws::String& value) { SetAlarmArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline Monitor& WithAlarmArn(Aws::String&& value) { SetAlarmArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

*/ inline Monitor& WithAlarmArn(const char* value) { SetAlarmArn(value); return *this;} /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline const Aws::String& GetAlarmRoleArn() const{ return m_alarmRoleArn; } /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline bool AlarmRoleArnHasBeenSet() const { return m_alarmRoleArnHasBeenSet; } /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline void SetAlarmRoleArn(const Aws::String& value) { m_alarmRoleArnHasBeenSet = true; m_alarmRoleArn = value; } /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline void SetAlarmRoleArn(Aws::String&& value) { m_alarmRoleArnHasBeenSet = true; m_alarmRoleArn = std::move(value); } /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline void SetAlarmRoleArn(const char* value) { m_alarmRoleArnHasBeenSet = true; m_alarmRoleArn.assign(value); } /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline Monitor& WithAlarmRoleArn(const Aws::String& value) { SetAlarmRoleArn(value); return *this;} /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline Monitor& WithAlarmRoleArn(Aws::String&& value) { SetAlarmRoleArn(std::move(value)); return *this;} /** *

ARN of an Identity and Access Management (IAM) role for AppConfig to monitor * AlarmArn.

*/ inline Monitor& WithAlarmRoleArn(const char* value) { SetAlarmRoleArn(value); return *this;} private: Aws::String m_alarmArn; bool m_alarmArnHasBeenSet = false; Aws::String m_alarmRoleArn; bool m_alarmRoleArnHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws