/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeGuruSecurity { namespace Model { class BatchGetFindingsResult { public: AWS_CODEGURUSECURITY_API BatchGetFindingsResult(); AWS_CODEGURUSECURITY_API BatchGetFindingsResult(const Aws::AmazonWebServiceResult& result); AWS_CODEGURUSECURITY_API BatchGetFindingsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of errors for individual findings which were not fetched. Each * BatchGetFindingsError contains the scanName, * findingId, errorCode and error * message.

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

A list of errors for individual findings which were not fetched. Each * BatchGetFindingsError contains the scanName, * findingId, errorCode and error * message.

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

A list of errors for individual findings which were not fetched. Each * BatchGetFindingsError contains the scanName, * findingId, errorCode and error * message.

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

A list of errors for individual findings which were not fetched. Each * BatchGetFindingsError contains the scanName, * findingId, errorCode and error * message.

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

A list of errors for individual findings which were not fetched. Each * BatchGetFindingsError contains the scanName, * findingId, errorCode and error * message.

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

A list of errors for individual findings which were not fetched. Each * BatchGetFindingsError contains the scanName, * findingId, errorCode and error * message.

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

A list of errors for individual findings which were not fetched. Each * BatchGetFindingsError contains the scanName, * findingId, errorCode and error * message.

*/ inline BatchGetFindingsResult& AddFailedFindings(BatchGetFindingsError&& value) { m_failedFindings.push_back(std::move(value)); return *this; } /** *

A list of all requested findings.

*/ inline const Aws::Vector& GetFindings() const{ return m_findings; } /** *

A list of all requested findings.

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

A list of all requested findings.

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

A list of all requested findings.

*/ inline BatchGetFindingsResult& WithFindings(const Aws::Vector& value) { SetFindings(value); return *this;} /** *

A list of all requested findings.

*/ inline BatchGetFindingsResult& WithFindings(Aws::Vector&& value) { SetFindings(std::move(value)); return *this;} /** *

A list of all requested findings.

*/ inline BatchGetFindingsResult& AddFindings(const Finding& value) { m_findings.push_back(value); return *this; } /** *

A list of all requested findings.

*/ inline BatchGetFindingsResult& AddFindings(Finding&& value) { m_findings.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 BatchGetFindingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetFindingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetFindingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_failedFindings; Aws::Vector m_findings; Aws::String m_requestId; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws