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

Provides summary counts of how many tasks for findings are in a particular * state. This information is included in the response from * DescribeAuditMitigationActionsTask.

See Also:

AWS * API Reference

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

The total number of findings to which a task is being applied.

*/ inline long long GetTotalFindingsCount() const{ return m_totalFindingsCount; } /** *

The total number of findings to which a task is being applied.

*/ inline bool TotalFindingsCountHasBeenSet() const { return m_totalFindingsCountHasBeenSet; } /** *

The total number of findings to which a task is being applied.

*/ inline void SetTotalFindingsCount(long long value) { m_totalFindingsCountHasBeenSet = true; m_totalFindingsCount = value; } /** *

The total number of findings to which a task is being applied.

*/ inline TaskStatisticsForAuditCheck& WithTotalFindingsCount(long long value) { SetTotalFindingsCount(value); return *this;} /** *

The number of findings for which at least one of the actions failed when * applied.

*/ inline long long GetFailedFindingsCount() const{ return m_failedFindingsCount; } /** *

The number of findings for which at least one of the actions failed when * applied.

*/ inline bool FailedFindingsCountHasBeenSet() const { return m_failedFindingsCountHasBeenSet; } /** *

The number of findings for which at least one of the actions failed when * applied.

*/ inline void SetFailedFindingsCount(long long value) { m_failedFindingsCountHasBeenSet = true; m_failedFindingsCount = value; } /** *

The number of findings for which at least one of the actions failed when * applied.

*/ inline TaskStatisticsForAuditCheck& WithFailedFindingsCount(long long value) { SetFailedFindingsCount(value); return *this;} /** *

The number of findings for which all mitigation actions succeeded when * applied.

*/ inline long long GetSucceededFindingsCount() const{ return m_succeededFindingsCount; } /** *

The number of findings for which all mitigation actions succeeded when * applied.

*/ inline bool SucceededFindingsCountHasBeenSet() const { return m_succeededFindingsCountHasBeenSet; } /** *

The number of findings for which all mitigation actions succeeded when * applied.

*/ inline void SetSucceededFindingsCount(long long value) { m_succeededFindingsCountHasBeenSet = true; m_succeededFindingsCount = value; } /** *

The number of findings for which all mitigation actions succeeded when * applied.

*/ inline TaskStatisticsForAuditCheck& WithSucceededFindingsCount(long long value) { SetSucceededFindingsCount(value); return *this;} /** *

The number of findings skipped because of filter conditions provided in the * parameters to the command.

*/ inline long long GetSkippedFindingsCount() const{ return m_skippedFindingsCount; } /** *

The number of findings skipped because of filter conditions provided in the * parameters to the command.

*/ inline bool SkippedFindingsCountHasBeenSet() const { return m_skippedFindingsCountHasBeenSet; } /** *

The number of findings skipped because of filter conditions provided in the * parameters to the command.

*/ inline void SetSkippedFindingsCount(long long value) { m_skippedFindingsCountHasBeenSet = true; m_skippedFindingsCount = value; } /** *

The number of findings skipped because of filter conditions provided in the * parameters to the command.

*/ inline TaskStatisticsForAuditCheck& WithSkippedFindingsCount(long long value) { SetSkippedFindingsCount(value); return *this;} /** *

The number of findings to which the mitigation action task was canceled when * applied.

*/ inline long long GetCanceledFindingsCount() const{ return m_canceledFindingsCount; } /** *

The number of findings to which the mitigation action task was canceled when * applied.

*/ inline bool CanceledFindingsCountHasBeenSet() const { return m_canceledFindingsCountHasBeenSet; } /** *

The number of findings to which the mitigation action task was canceled when * applied.

*/ inline void SetCanceledFindingsCount(long long value) { m_canceledFindingsCountHasBeenSet = true; m_canceledFindingsCount = value; } /** *

The number of findings to which the mitigation action task was canceled when * applied.

*/ inline TaskStatisticsForAuditCheck& WithCanceledFindingsCount(long long value) { SetCanceledFindingsCount(value); return *this;} private: long long m_totalFindingsCount; bool m_totalFindingsCountHasBeenSet = false; long long m_failedFindingsCount; bool m_failedFindingsCountHasBeenSet = false; long long m_succeededFindingsCount; bool m_succeededFindingsCountHasBeenSet = false; long long m_skippedFindingsCount; bool m_skippedFindingsCountHasBeenSet = false; long long m_canceledFindingsCount; bool m_canceledFindingsCountHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws