/** * 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 { namespace Inspector2 { namespace Model { /** */ class BatchGetCodeSnippetRequest : public Inspector2Request { public: AWS_INSPECTOR2_API BatchGetCodeSnippetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BatchGetCodeSnippet"; } AWS_INSPECTOR2_API Aws::String SerializePayload() const override; /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline const Aws::Vector& GetFindingArns() const{ return m_findingArns; } /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline bool FindingArnsHasBeenSet() const { return m_findingArnsHasBeenSet; } /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline void SetFindingArns(const Aws::Vector& value) { m_findingArnsHasBeenSet = true; m_findingArns = value; } /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline void SetFindingArns(Aws::Vector&& value) { m_findingArnsHasBeenSet = true; m_findingArns = std::move(value); } /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline BatchGetCodeSnippetRequest& WithFindingArns(const Aws::Vector& value) { SetFindingArns(value); return *this;} /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline BatchGetCodeSnippetRequest& WithFindingArns(Aws::Vector&& value) { SetFindingArns(std::move(value)); return *this;} /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline BatchGetCodeSnippetRequest& AddFindingArns(const Aws::String& value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(value); return *this; } /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline BatchGetCodeSnippetRequest& AddFindingArns(Aws::String&& value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(std::move(value)); return *this; } /** *

An array of finding ARNs for the findings you want to retrieve code snippets * from.

*/ inline BatchGetCodeSnippetRequest& AddFindingArns(const char* value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(value); return *this; } private: Aws::Vector m_findingArns; bool m_findingArnsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws