/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { class BatchImportFindingsResult { public: AWS_SECURITYHUB_API BatchImportFindingsResult(); AWS_SECURITYHUB_API BatchImportFindingsResult(const Aws::AmazonWebServiceResult& result); AWS_SECURITYHUB_API BatchImportFindingsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The number of findings that failed to import.

*/ inline int GetFailedCount() const{ return m_failedCount; } /** *

The number of findings that failed to import.

*/ inline void SetFailedCount(int value) { m_failedCount = value; } /** *

The number of findings that failed to import.

*/ inline BatchImportFindingsResult& WithFailedCount(int value) { SetFailedCount(value); return *this;} /** *

The number of findings that were successfully imported.

*/ inline int GetSuccessCount() const{ return m_successCount; } /** *

The number of findings that were successfully imported.

*/ inline void SetSuccessCount(int value) { m_successCount = value; } /** *

The number of findings that were successfully imported.

*/ inline BatchImportFindingsResult& WithSuccessCount(int value) { SetSuccessCount(value); return *this;} /** *

The list of findings that failed to import.

*/ inline const Aws::Vector& GetFailedFindings() const{ return m_failedFindings; } /** *

The list of findings that failed to import.

*/ inline void SetFailedFindings(const Aws::Vector& value) { m_failedFindings = value; } /** *

The list of findings that failed to import.

*/ inline void SetFailedFindings(Aws::Vector&& value) { m_failedFindings = std::move(value); } /** *

The list of findings that failed to import.

*/ inline BatchImportFindingsResult& WithFailedFindings(const Aws::Vector& value) { SetFailedFindings(value); return *this;} /** *

The list of findings that failed to import.

*/ inline BatchImportFindingsResult& WithFailedFindings(Aws::Vector&& value) { SetFailedFindings(std::move(value)); return *this;} /** *

The list of findings that failed to import.

*/ inline BatchImportFindingsResult& AddFailedFindings(const ImportFindingsError& value) { m_failedFindings.push_back(value); return *this; } /** *

The list of findings that failed to import.

*/ inline BatchImportFindingsResult& AddFailedFindings(ImportFindingsError&& value) { m_failedFindings.push_back(std::move(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 BatchImportFindingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchImportFindingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchImportFindingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_failedCount; int m_successCount; Aws::Vector m_failedFindings; Aws::String m_requestId; }; } // namespace Model } // namespace SecurityHub } // namespace Aws