/** * 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 Inspector2 { namespace Model { class BatchGetCodeSnippetResult { public: AWS_INSPECTOR2_API BatchGetCodeSnippetResult(); AWS_INSPECTOR2_API BatchGetCodeSnippetResult(const Aws::AmazonWebServiceResult& result); AWS_INSPECTOR2_API BatchGetCodeSnippetResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The retrieved code snippets associated with the provided finding ARNs.

*/ inline const Aws::Vector& GetCodeSnippetResults() const{ return m_codeSnippetResults; } /** *

The retrieved code snippets associated with the provided finding ARNs.

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

The retrieved code snippets associated with the provided finding ARNs.

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

The retrieved code snippets associated with the provided finding ARNs.

*/ inline BatchGetCodeSnippetResult& WithCodeSnippetResults(const Aws::Vector& value) { SetCodeSnippetResults(value); return *this;} /** *

The retrieved code snippets associated with the provided finding ARNs.

*/ inline BatchGetCodeSnippetResult& WithCodeSnippetResults(Aws::Vector&& value) { SetCodeSnippetResults(std::move(value)); return *this;} /** *

The retrieved code snippets associated with the provided finding ARNs.

*/ inline BatchGetCodeSnippetResult& AddCodeSnippetResults(const CodeSnippetResult& value) { m_codeSnippetResults.push_back(value); return *this; } /** *

The retrieved code snippets associated with the provided finding ARNs.

*/ inline BatchGetCodeSnippetResult& AddCodeSnippetResults(CodeSnippetResult&& value) { m_codeSnippetResults.push_back(std::move(value)); return *this; } /** *

Any errors Amazon Inspector encountered while trying to retrieve the * requested code snippets.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

Any errors Amazon Inspector encountered while trying to retrieve the * requested code snippets.

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

Any errors Amazon Inspector encountered while trying to retrieve the * requested code snippets.

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

Any errors Amazon Inspector encountered while trying to retrieve the * requested code snippets.

*/ inline BatchGetCodeSnippetResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

Any errors Amazon Inspector encountered while trying to retrieve the * requested code snippets.

*/ inline BatchGetCodeSnippetResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

Any errors Amazon Inspector encountered while trying to retrieve the * requested code snippets.

*/ inline BatchGetCodeSnippetResult& AddErrors(const CodeSnippetError& value) { m_errors.push_back(value); return *this; } /** *

Any errors Amazon Inspector encountered while trying to retrieve the * requested code snippets.

*/ inline BatchGetCodeSnippetResult& AddErrors(CodeSnippetError&& value) { m_errors.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 BatchGetCodeSnippetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetCodeSnippetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetCodeSnippetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_codeSnippetResults; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace Inspector2 } // namespace Aws