/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Used in MitigationActionParams, this information identifies the target * findings to which the mitigation actions are applied. Only one entry * appears.

See Also:

AWS * API Reference

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

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline const Aws::String& GetAuditTaskId() const{ return m_auditTaskId; } /** *

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline bool AuditTaskIdHasBeenSet() const { return m_auditTaskIdHasBeenSet; } /** *

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline void SetAuditTaskId(const Aws::String& value) { m_auditTaskIdHasBeenSet = true; m_auditTaskId = value; } /** *

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline void SetAuditTaskId(Aws::String&& value) { m_auditTaskIdHasBeenSet = true; m_auditTaskId = std::move(value); } /** *

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline void SetAuditTaskId(const char* value) { m_auditTaskIdHasBeenSet = true; m_auditTaskId.assign(value); } /** *

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline AuditMitigationActionsTaskTarget& WithAuditTaskId(const Aws::String& value) { SetAuditTaskId(value); return *this;} /** *

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline AuditMitigationActionsTaskTarget& WithAuditTaskId(Aws::String&& value) { SetAuditTaskId(std::move(value)); return *this;} /** *

If the task will apply a mitigation action to findings from a specific audit, * this value uniquely identifies the audit.

*/ inline AuditMitigationActionsTaskTarget& WithAuditTaskId(const char* value) { SetAuditTaskId(value); return *this;} /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline const Aws::Vector& GetFindingIds() const{ return m_findingIds; } /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; } /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline void SetFindingIds(const Aws::Vector& value) { m_findingIdsHasBeenSet = true; m_findingIds = value; } /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline void SetFindingIds(Aws::Vector&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::move(value); } /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline AuditMitigationActionsTaskTarget& WithFindingIds(const Aws::Vector& value) { SetFindingIds(value); return *this;} /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline AuditMitigationActionsTaskTarget& WithFindingIds(Aws::Vector&& value) { SetFindingIds(std::move(value)); return *this;} /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline AuditMitigationActionsTaskTarget& AddFindingIds(const Aws::String& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; } /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline AuditMitigationActionsTaskTarget& AddFindingIds(Aws::String&& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(std::move(value)); return *this; } /** *

If the task will apply a mitigation action to one or more listed findings, * this value uniquely identifies those findings.

*/ inline AuditMitigationActionsTaskTarget& AddFindingIds(const char* value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline const Aws::Map>& GetAuditCheckToReasonCodeFilter() const{ return m_auditCheckToReasonCodeFilter; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline bool AuditCheckToReasonCodeFilterHasBeenSet() const { return m_auditCheckToReasonCodeFilterHasBeenSet; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline void SetAuditCheckToReasonCodeFilter(const Aws::Map>& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter = value; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline void SetAuditCheckToReasonCodeFilter(Aws::Map>&& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter = std::move(value); } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& WithAuditCheckToReasonCodeFilter(const Aws::Map>& value) { SetAuditCheckToReasonCodeFilter(value); return *this;} /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& WithAuditCheckToReasonCodeFilter(Aws::Map>&& value) { SetAuditCheckToReasonCodeFilter(std::move(value)); return *this;} /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& AddAuditCheckToReasonCodeFilter(const Aws::String& key, const Aws::Vector& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter.emplace(key, value); return *this; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& AddAuditCheckToReasonCodeFilter(Aws::String&& key, const Aws::Vector& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter.emplace(std::move(key), value); return *this; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& AddAuditCheckToReasonCodeFilter(const Aws::String& key, Aws::Vector&& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter.emplace(key, std::move(value)); return *this; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& AddAuditCheckToReasonCodeFilter(Aws::String&& key, Aws::Vector&& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter.emplace(std::move(key), std::move(value)); return *this; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& AddAuditCheckToReasonCodeFilter(const char* key, Aws::Vector&& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter.emplace(key, std::move(value)); return *this; } /** *

Specifies a filter in the form of an audit check and set of reason codes that * identify the findings from the audit to which the audit mitigation actions task * apply.

*/ inline AuditMitigationActionsTaskTarget& AddAuditCheckToReasonCodeFilter(const char* key, const Aws::Vector& value) { m_auditCheckToReasonCodeFilterHasBeenSet = true; m_auditCheckToReasonCodeFilter.emplace(key, value); return *this; } private: Aws::String m_auditTaskId; bool m_auditTaskIdHasBeenSet = false; Aws::Vector m_findingIds; bool m_findingIdsHasBeenSet = false; Aws::Map> m_auditCheckToReasonCodeFilter; bool m_auditCheckToReasonCodeFilterHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws