/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class AWS_IOT_API DescribeAccountAuditConfigurationResult { public: DescribeAccountAuditConfigurationResult(); DescribeAccountAuditConfigurationResult(const Aws::AmazonWebServiceResult& result); DescribeAccountAuditConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the role that grants permission to AWS IoT to access information * about your devices, policies, certificates, and other items as required when * performing an audit.

On the first call to * UpdateAccountAuditConfiguration, this parameter is required.

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

The ARN of the role that grants permission to AWS IoT to access information * about your devices, policies, certificates, and other items as required when * performing an audit.

On the first call to * UpdateAccountAuditConfiguration, this parameter is required.

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

The ARN of the role that grants permission to AWS IoT to access information * about your devices, policies, certificates, and other items as required when * performing an audit.

On the first call to * UpdateAccountAuditConfiguration, this parameter is required.

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

The ARN of the role that grants permission to AWS IoT to access information * about your devices, policies, certificates, and other items as required when * performing an audit.

On the first call to * UpdateAccountAuditConfiguration, this parameter is required.

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

The ARN of the role that grants permission to AWS IoT to access information * about your devices, policies, certificates, and other items as required when * performing an audit.

On the first call to * UpdateAccountAuditConfiguration, this parameter is required.

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

The ARN of the role that grants permission to AWS IoT to access information * about your devices, policies, certificates, and other items as required when * performing an audit.

On the first call to * UpdateAccountAuditConfiguration, this parameter is required.

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

The ARN of the role that grants permission to AWS IoT to access information * about your devices, policies, certificates, and other items as required when * performing an audit.

On the first call to * UpdateAccountAuditConfiguration, this parameter is required.

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

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

*/ inline const Aws::Map& GetAuditNotificationTargetConfigurations() const{ return m_auditNotificationTargetConfigurations; } /** *

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

*/ inline void SetAuditNotificationTargetConfigurations(const Aws::Map& value) { m_auditNotificationTargetConfigurations = value; } /** *

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

*/ inline void SetAuditNotificationTargetConfigurations(Aws::Map&& value) { m_auditNotificationTargetConfigurations = std::move(value); } /** *

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

*/ inline DescribeAccountAuditConfigurationResult& WithAuditNotificationTargetConfigurations(const Aws::Map& value) { SetAuditNotificationTargetConfigurations(value); return *this;} /** *

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

*/ inline DescribeAccountAuditConfigurationResult& WithAuditNotificationTargetConfigurations(Aws::Map&& value) { SetAuditNotificationTargetConfigurations(std::move(value)); return *this;} /** *

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

*/ inline DescribeAccountAuditConfigurationResult& AddAuditNotificationTargetConfigurations(const AuditNotificationType& key, const AuditNotificationTarget& value) { m_auditNotificationTargetConfigurations.emplace(key, value); return *this; } /** *

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

*/ inline DescribeAccountAuditConfigurationResult& AddAuditNotificationTargetConfigurations(AuditNotificationType&& key, const AuditNotificationTarget& value) { m_auditNotificationTargetConfigurations.emplace(std::move(key), value); return *this; } /** *

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

*/ inline DescribeAccountAuditConfigurationResult& AddAuditNotificationTargetConfigurations(const AuditNotificationType& key, AuditNotificationTarget&& value) { m_auditNotificationTargetConfigurations.emplace(key, std::move(value)); return *this; } /** *

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

*/ inline DescribeAccountAuditConfigurationResult& AddAuditNotificationTargetConfigurations(AuditNotificationType&& key, AuditNotificationTarget&& value) { m_auditNotificationTargetConfigurations.emplace(std::move(key), std::move(value)); return *this; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline const Aws::Map& GetAuditCheckConfigurations() const{ return m_auditCheckConfigurations; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline void SetAuditCheckConfigurations(const Aws::Map& value) { m_auditCheckConfigurations = value; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline void SetAuditCheckConfigurations(Aws::Map&& value) { m_auditCheckConfigurations = std::move(value); } /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& WithAuditCheckConfigurations(const Aws::Map& value) { SetAuditCheckConfigurations(value); return *this;} /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& WithAuditCheckConfigurations(Aws::Map&& value) { SetAuditCheckConfigurations(std::move(value)); return *this;} /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& AddAuditCheckConfigurations(const Aws::String& key, const AuditCheckConfiguration& value) { m_auditCheckConfigurations.emplace(key, value); return *this; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& AddAuditCheckConfigurations(Aws::String&& key, const AuditCheckConfiguration& value) { m_auditCheckConfigurations.emplace(std::move(key), value); return *this; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& AddAuditCheckConfigurations(const Aws::String& key, AuditCheckConfiguration&& value) { m_auditCheckConfigurations.emplace(key, std::move(value)); return *this; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& AddAuditCheckConfigurations(Aws::String&& key, AuditCheckConfiguration&& value) { m_auditCheckConfigurations.emplace(std::move(key), std::move(value)); return *this; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& AddAuditCheckConfigurations(const char* key, AuditCheckConfiguration&& value) { m_auditCheckConfigurations.emplace(key, std::move(value)); return *this; } /** *

Which audit checks are enabled and disabled for this account.

*/ inline DescribeAccountAuditConfigurationResult& AddAuditCheckConfigurations(const char* key, const AuditCheckConfiguration& value) { m_auditCheckConfigurations.emplace(key, value); return *this; } private: Aws::String m_roleArn; Aws::Map m_auditNotificationTargetConfigurations; Aws::Map m_auditCheckConfigurations; }; } // namespace Model } // namespace IoT } // namespace Aws