/** * 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 { /** *

Information about the targets to which audit notifications are * sent.

See Also:

AWS * API Reference

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

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline AuditNotificationTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline AuditNotificationTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *

The ARN of the target (SNS topic) to which audit notifications are sent.

*/ inline AuditNotificationTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} /** *

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

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

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

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

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

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

The ARN of the role that grants permission to send notifications to the * 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 notifications to the * target.

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

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

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

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

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

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

*/ inline AuditNotificationTarget& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

True if notifications to the target are enabled.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

True if notifications to the target are enabled.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

True if notifications to the target are enabled.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

True if notifications to the target are enabled.

*/ inline AuditNotificationTarget& WithEnabled(bool value) { SetEnabled(value); return *this;} private: Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws