AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
BatchGetThreatModelsRequest.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
25 public:
26 AWS_SECURITYAGENT_API BatchGetThreatModelsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchGetThreatModels"; }
33
34 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::Vector<Aws::String>& GetThreatModelIds() const { return m_threatModelIds; }
41 inline bool ThreatModelIdsHasBeenSet() const { return m_threatModelIdsHasBeenSet; }
42 template <typename ThreatModelIdsT = Aws::Vector<Aws::String>>
43 void SetThreatModelIds(ThreatModelIdsT&& value) {
44 m_threatModelIdsHasBeenSet = true;
45 m_threatModelIds = std::forward<ThreatModelIdsT>(value);
46 }
47 template <typename ThreatModelIdsT = Aws::Vector<Aws::String>>
49 SetThreatModelIds(std::forward<ThreatModelIdsT>(value));
50 return *this;
51 }
52 template <typename ThreatModelIdsT = Aws::String>
54 m_threatModelIdsHasBeenSet = true;
55 m_threatModelIds.emplace_back(std::forward<ThreatModelIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
65 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
66 template <typename AgentSpaceIdT = Aws::String>
67 void SetAgentSpaceId(AgentSpaceIdT&& value) {
68 m_agentSpaceIdHasBeenSet = true;
69 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
70 }
71 template <typename AgentSpaceIdT = Aws::String>
73 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<Aws::String> m_threatModelIds;
79
80 Aws::String m_agentSpaceId;
81 bool m_threatModelIdsHasBeenSet = false;
82 bool m_agentSpaceIdHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SecurityAgent
87} // namespace Aws
AWS_SECURITYAGENT_API BatchGetThreatModelsRequest()=default
const Aws::Vector< Aws::String > & GetThreatModelIds() const
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
BatchGetThreatModelsRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
BatchGetThreatModelsRequest & AddThreatModelIds(ThreatModelIdsT &&value)
BatchGetThreatModelsRequest & WithThreatModelIds(ThreatModelIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector