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

A structure containing the alert target ARN and the role ARN.

See * Also:

AWS API * Reference

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

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline const Aws::String& GetAlertTargetArn() const{ return m_alertTargetArn; } /** *

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline bool AlertTargetArnHasBeenSet() const { return m_alertTargetArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline void SetAlertTargetArn(const Aws::String& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = value; } /** *

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline void SetAlertTargetArn(Aws::String&& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline void SetAlertTargetArn(const char* value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline AlertTarget& WithAlertTargetArn(const Aws::String& value) { SetAlertTargetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline AlertTarget& WithAlertTargetArn(Aws::String&& value) { SetAlertTargetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the notification target to which alerts are * sent.

*/ inline AlertTarget& WithAlertTargetArn(const char* value) { SetAlertTargetArn(value); return *this;} /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline AlertTarget& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline AlertTarget& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the role that grants permission to send alerts to the notification * target.

*/ inline AlertTarget& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_alertTargetArn; bool m_alertTargetArnHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws