AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateThreatModelRequest.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#include <aws/securityagent/model/Assets.h>
12#include <aws/securityagent/model/CloudWatchLog.h>
13#include <aws/securityagent/model/DocumentInfo.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SecurityAgent {
19namespace Model {
20
27 public:
28 AWS_SECURITYAGENT_API UpdateThreatModelRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateThreatModel"; }
35
36 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetThreatModelId() const { return m_threatModelId; }
43 inline bool ThreatModelIdHasBeenSet() const { return m_threatModelIdHasBeenSet; }
44 template <typename ThreatModelIdT = Aws::String>
45 void SetThreatModelId(ThreatModelIdT&& value) {
46 m_threatModelIdHasBeenSet = true;
47 m_threatModelId = std::forward<ThreatModelIdT>(value);
48 }
49 template <typename ThreatModelIdT = Aws::String>
51 SetThreatModelId(std::forward<ThreatModelIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
61 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
62 template <typename AgentSpaceIdT = Aws::String>
63 void SetAgentSpaceId(AgentSpaceIdT&& value) {
64 m_agentSpaceIdHasBeenSet = true;
65 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
66 }
67 template <typename AgentSpaceIdT = Aws::String>
69 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTitle() const { return m_title; }
79 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
80 template <typename TitleT = Aws::String>
81 void SetTitle(TitleT&& value) {
82 m_titleHasBeenSet = true;
83 m_title = std::forward<TitleT>(value);
84 }
85 template <typename TitleT = Aws::String>
87 SetTitle(std::forward<TitleT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Assets& GetAssets() const { return m_assets; }
116 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
117 template <typename AssetsT = Assets>
118 void SetAssets(AssetsT&& value) {
119 m_assetsHasBeenSet = true;
120 m_assets = std::forward<AssetsT>(value);
121 }
122 template <typename AssetsT = Assets>
124 SetAssets(std::forward<AssetsT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<DocumentInfo>& GetScopeDocs() const { return m_scopeDocs; }
135 inline bool ScopeDocsHasBeenSet() const { return m_scopeDocsHasBeenSet; }
136 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
137 void SetScopeDocs(ScopeDocsT&& value) {
138 m_scopeDocsHasBeenSet = true;
139 m_scopeDocs = std::forward<ScopeDocsT>(value);
140 }
141 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
143 SetScopeDocs(std::forward<ScopeDocsT>(value));
144 return *this;
145 }
146 template <typename ScopeDocsT = DocumentInfo>
148 m_scopeDocsHasBeenSet = true;
149 m_scopeDocs.emplace_back(std::forward<ScopeDocsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
159 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
160 template <typename ServiceRoleT = Aws::String>
161 void SetServiceRole(ServiceRoleT&& value) {
162 m_serviceRoleHasBeenSet = true;
163 m_serviceRole = std::forward<ServiceRoleT>(value);
164 }
165 template <typename ServiceRoleT = Aws::String>
167 SetServiceRole(std::forward<ServiceRoleT>(value));
168 return *this;
169 }
171
173
176 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
177 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
178 template <typename LogConfigT = CloudWatchLog>
179 void SetLogConfig(LogConfigT&& value) {
180 m_logConfigHasBeenSet = true;
181 m_logConfig = std::forward<LogConfigT>(value);
182 }
183 template <typename LogConfigT = CloudWatchLog>
185 SetLogConfig(std::forward<LogConfigT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_threatModelId;
191
192 Aws::String m_agentSpaceId;
193
194 Aws::String m_title;
195
196 Aws::String m_description;
197
198 Assets m_assets;
199
200 Aws::Vector<DocumentInfo> m_scopeDocs;
201
202 Aws::String m_serviceRole;
203
204 CloudWatchLog m_logConfig;
205 bool m_threatModelIdHasBeenSet = false;
206 bool m_agentSpaceIdHasBeenSet = false;
207 bool m_titleHasBeenSet = false;
208 bool m_descriptionHasBeenSet = false;
209 bool m_assetsHasBeenSet = false;
210 bool m_scopeDocsHasBeenSet = false;
211 bool m_serviceRoleHasBeenSet = false;
212 bool m_logConfigHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace SecurityAgent
217} // namespace Aws
AWS_SECURITYAGENT_API UpdateThreatModelRequest()=default
UpdateThreatModelRequest & AddScopeDocs(ScopeDocsT &&value)
UpdateThreatModelRequest & WithThreatModelId(ThreatModelIdT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
UpdateThreatModelRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< DocumentInfo > & GetScopeDocs() const
UpdateThreatModelRequest & WithServiceRole(ServiceRoleT &&value)
UpdateThreatModelRequest & WithAssets(AssetsT &&value)
UpdateThreatModelRequest & WithTitle(TitleT &&value)
UpdateThreatModelRequest & WithLogConfig(LogConfigT &&value)
UpdateThreatModelRequest & WithScopeDocs(ScopeDocsT &&value)
UpdateThreatModelRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector