/** * 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 #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class DescribeAuditTaskResult { public: AWS_IOT_API DescribeAuditTaskResult(); AWS_IOT_API DescribeAuditTaskResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API DescribeAuditTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or * "CANCELED".

*/ inline const AuditTaskStatus& GetTaskStatus() const{ return m_taskStatus; } /** *

The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or * "CANCELED".

*/ inline void SetTaskStatus(const AuditTaskStatus& value) { m_taskStatus = value; } /** *

The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or * "CANCELED".

*/ inline void SetTaskStatus(AuditTaskStatus&& value) { m_taskStatus = std::move(value); } /** *

The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or * "CANCELED".

*/ inline DescribeAuditTaskResult& WithTaskStatus(const AuditTaskStatus& value) { SetTaskStatus(value); return *this;} /** *

The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or * "CANCELED".

*/ inline DescribeAuditTaskResult& WithTaskStatus(AuditTaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;} /** *

The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".

*/ inline const AuditTaskType& GetTaskType() const{ return m_taskType; } /** *

The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".

*/ inline void SetTaskType(const AuditTaskType& value) { m_taskType = value; } /** *

The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".

*/ inline void SetTaskType(AuditTaskType&& value) { m_taskType = std::move(value); } /** *

The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".

*/ inline DescribeAuditTaskResult& WithTaskType(const AuditTaskType& value) { SetTaskType(value); return *this;} /** *

The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".

*/ inline DescribeAuditTaskResult& WithTaskType(AuditTaskType&& value) { SetTaskType(std::move(value)); return *this;} /** *

The time the audit started.

*/ inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; } /** *

The time the audit started.

*/ inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTime = value; } /** *

The time the audit started.

*/ inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTime = std::move(value); } /** *

The time the audit started.

*/ inline DescribeAuditTaskResult& WithTaskStartTime(const Aws::Utils::DateTime& value) { SetTaskStartTime(value); return *this;} /** *

The time the audit started.

*/ inline DescribeAuditTaskResult& WithTaskStartTime(Aws::Utils::DateTime&& value) { SetTaskStartTime(std::move(value)); return *this;} /** *

Statistical information about the audit.

*/ inline const TaskStatistics& GetTaskStatistics() const{ return m_taskStatistics; } /** *

Statistical information about the audit.

*/ inline void SetTaskStatistics(const TaskStatistics& value) { m_taskStatistics = value; } /** *

Statistical information about the audit.

*/ inline void SetTaskStatistics(TaskStatistics&& value) { m_taskStatistics = std::move(value); } /** *

Statistical information about the audit.

*/ inline DescribeAuditTaskResult& WithTaskStatistics(const TaskStatistics& value) { SetTaskStatistics(value); return *this;} /** *

Statistical information about the audit.

*/ inline DescribeAuditTaskResult& WithTaskStatistics(TaskStatistics&& value) { SetTaskStatistics(std::move(value)); return *this;} /** *

The name of the scheduled audit (only if the audit was a scheduled * audit).

*/ inline const Aws::String& GetScheduledAuditName() const{ return m_scheduledAuditName; } /** *

The name of the scheduled audit (only if the audit was a scheduled * audit).

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

The name of the scheduled audit (only if the audit was a scheduled * audit).

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

The name of the scheduled audit (only if the audit was a scheduled * audit).

*/ inline void SetScheduledAuditName(const char* value) { m_scheduledAuditName.assign(value); } /** *

The name of the scheduled audit (only if the audit was a scheduled * audit).

*/ inline DescribeAuditTaskResult& WithScheduledAuditName(const Aws::String& value) { SetScheduledAuditName(value); return *this;} /** *

The name of the scheduled audit (only if the audit was a scheduled * audit).

*/ inline DescribeAuditTaskResult& WithScheduledAuditName(Aws::String&& value) { SetScheduledAuditName(std::move(value)); return *this;} /** *

The name of the scheduled audit (only if the audit was a scheduled * audit).

*/ inline DescribeAuditTaskResult& WithScheduledAuditName(const char* value) { SetScheduledAuditName(value); return *this;} /** *

Detailed information about each check performed during this audit.

*/ inline const Aws::Map& GetAuditDetails() const{ return m_auditDetails; } /** *

Detailed information about each check performed during this audit.

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

Detailed information about each check performed during this audit.

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

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& WithAuditDetails(const Aws::Map& value) { SetAuditDetails(value); return *this;} /** *

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& WithAuditDetails(Aws::Map&& value) { SetAuditDetails(std::move(value)); return *this;} /** *

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& AddAuditDetails(const Aws::String& key, const AuditCheckDetails& value) { m_auditDetails.emplace(key, value); return *this; } /** *

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& AddAuditDetails(Aws::String&& key, const AuditCheckDetails& value) { m_auditDetails.emplace(std::move(key), value); return *this; } /** *

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& AddAuditDetails(const Aws::String& key, AuditCheckDetails&& value) { m_auditDetails.emplace(key, std::move(value)); return *this; } /** *

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& AddAuditDetails(Aws::String&& key, AuditCheckDetails&& value) { m_auditDetails.emplace(std::move(key), std::move(value)); return *this; } /** *

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& AddAuditDetails(const char* key, AuditCheckDetails&& value) { m_auditDetails.emplace(key, std::move(value)); return *this; } /** *

Detailed information about each check performed during this audit.

*/ inline DescribeAuditTaskResult& AddAuditDetails(const char* key, const AuditCheckDetails& value) { m_auditDetails.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAuditTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAuditTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAuditTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: AuditTaskStatus m_taskStatus; AuditTaskType m_taskType; Aws::Utils::DateTime m_taskStartTime; TaskStatistics m_taskStatistics; Aws::String m_scheduledAuditName; Aws::Map m_auditDetails; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws