AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
BatchGetFindingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityAgent {
16namespace Model {
17
24 public:
25 AWS_SECURITYAGENT_API BatchGetFindingsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchGetFindings"; }
32
33 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::Vector<Aws::String>& GetFindingIds() const { return m_findingIds; }
40 inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
41 template <typename FindingIdsT = Aws::Vector<Aws::String>>
42 void SetFindingIds(FindingIdsT&& value) {
43 m_findingIdsHasBeenSet = true;
44 m_findingIds = std::forward<FindingIdsT>(value);
45 }
46 template <typename FindingIdsT = Aws::Vector<Aws::String>>
48 SetFindingIds(std::forward<FindingIdsT>(value));
49 return *this;
50 }
51 template <typename FindingIdsT = Aws::String>
52 BatchGetFindingsRequest& AddFindingIds(FindingIdsT&& value) {
53 m_findingIdsHasBeenSet = true;
54 m_findingIds.emplace_back(std::forward<FindingIdsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
64 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
65 template <typename AgentSpaceIdT = Aws::String>
66 void SetAgentSpaceId(AgentSpaceIdT&& value) {
67 m_agentSpaceIdHasBeenSet = true;
68 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
69 }
70 template <typename AgentSpaceIdT = Aws::String>
71 BatchGetFindingsRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
72 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
73 return *this;
74 }
76 private:
77 Aws::Vector<Aws::String> m_findingIds;
78
79 Aws::String m_agentSpaceId;
80 bool m_findingIdsHasBeenSet = false;
81 bool m_agentSpaceIdHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace SecurityAgent
86} // namespace Aws
BatchGetFindingsRequest & WithFindingIds(FindingIdsT &&value)
virtual const char * GetServiceRequestName() const override
BatchGetFindingsRequest & AddFindingIds(FindingIdsT &&value)
const Aws::Vector< Aws::String > & GetFindingIds() const
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
AWS_SECURITYAGENT_API BatchGetFindingsRequest()=default
BatchGetFindingsRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector