/** * 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 #include namespace Aws { namespace IoT { namespace Model { /** */ class UpdateAccountAuditConfigurationRequest : public IoTRequest { public: AWS_IOT_API UpdateAccountAuditConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAccountAuditConfiguration"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

*/ inline bool AuditNotificationTargetConfigurationsHasBeenSet() const { return m_auditNotificationTargetConfigurationsHasBeenSet; } /** *

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

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

Information about the targets to which audit notifications are sent.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

*/ inline bool AuditCheckConfigurationsHasBeenSet() const { return m_auditCheckConfigurationsHasBeenSet; } /** *

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

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

Specifies which audit checks are enabled and disabled for this account. Use * DescribeAccountAuditConfiguration to see the list of all checks, * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

*/ inline UpdateAccountAuditConfigurationRequest& AddAuditCheckConfigurations(const char* key, const AuditCheckConfiguration& value) { m_auditCheckConfigurationsHasBeenSet = true; m_auditCheckConfigurations.emplace(key, value); return *this; } private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_auditNotificationTargetConfigurations; bool m_auditNotificationTargetConfigurationsHasBeenSet = false; Aws::Map m_auditCheckConfigurations; bool m_auditCheckConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws