AWS SDK for C++

AWS SDK for C++ Version 1.11.902

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#include <aws/securityagent/model/ReportDestination.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SecurityAgent {
20namespace Model {
21
28 public:
29 AWS_SECURITYAGENT_API UpdateThreatModelRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateThreatModel"; }
36
37 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetThreatModelId() const { return m_threatModelId; }
44 inline bool ThreatModelIdHasBeenSet() const { return m_threatModelIdHasBeenSet; }
45 template <typename ThreatModelIdT = Aws::String>
46 void SetThreatModelId(ThreatModelIdT&& value) {
47 m_threatModelIdHasBeenSet = true;
48 m_threatModelId = std::forward<ThreatModelIdT>(value);
49 }
50 template <typename ThreatModelIdT = Aws::String>
52 SetThreatModelId(std::forward<ThreatModelIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
62 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
63 template <typename AgentSpaceIdT = Aws::String>
64 void SetAgentSpaceId(AgentSpaceIdT&& value) {
65 m_agentSpaceIdHasBeenSet = true;
66 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
67 }
68 template <typename AgentSpaceIdT = Aws::String>
70 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTitle() const { return m_title; }
80 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
81 template <typename TitleT = Aws::String>
82 void SetTitle(TitleT&& value) {
83 m_titleHasBeenSet = true;
84 m_title = std::forward<TitleT>(value);
85 }
86 template <typename TitleT = Aws::String>
88 SetTitle(std::forward<TitleT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
116 inline const Assets& GetAssets() const { return m_assets; }
117 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
118 template <typename AssetsT = Assets>
119 void SetAssets(AssetsT&& value) {
120 m_assetsHasBeenSet = true;
121 m_assets = std::forward<AssetsT>(value);
122 }
123 template <typename AssetsT = Assets>
125 SetAssets(std::forward<AssetsT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Vector<DocumentInfo>& GetScopeDocs() const { return m_scopeDocs; }
136 inline bool ScopeDocsHasBeenSet() const { return m_scopeDocsHasBeenSet; }
137 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
138 void SetScopeDocs(ScopeDocsT&& value) {
139 m_scopeDocsHasBeenSet = true;
140 m_scopeDocs = std::forward<ScopeDocsT>(value);
141 }
142 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
144 SetScopeDocs(std::forward<ScopeDocsT>(value));
145 return *this;
146 }
147 template <typename ScopeDocsT = DocumentInfo>
149 m_scopeDocsHasBeenSet = true;
150 m_scopeDocs.emplace_back(std::forward<ScopeDocsT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
160 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
161 template <typename ServiceRoleT = Aws::String>
162 void SetServiceRole(ServiceRoleT&& value) {
163 m_serviceRoleHasBeenSet = true;
164 m_serviceRole = std::forward<ServiceRoleT>(value);
165 }
166 template <typename ServiceRoleT = Aws::String>
168 SetServiceRole(std::forward<ServiceRoleT>(value));
169 return *this;
170 }
172
174
177 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
178 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
179 template <typename LogConfigT = CloudWatchLog>
180 void SetLogConfig(LogConfigT&& value) {
181 m_logConfigHasBeenSet = true;
182 m_logConfig = std::forward<LogConfigT>(value);
183 }
184 template <typename LogConfigT = CloudWatchLog>
186 SetLogConfig(std::forward<LogConfigT>(value));
187 return *this;
188 }
190
192
196 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
197 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
198 template <typename ReportDestinationT = ReportDestination>
199 void SetReportDestination(ReportDestinationT&& value) {
200 m_reportDestinationHasBeenSet = true;
201 m_reportDestination = std::forward<ReportDestinationT>(value);
202 }
203 template <typename ReportDestinationT = ReportDestination>
204 UpdateThreatModelRequest& WithReportDestination(ReportDestinationT&& value) {
205 SetReportDestination(std::forward<ReportDestinationT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_threatModelId;
211
212 Aws::String m_agentSpaceId;
213
214 Aws::String m_title;
215
216 Aws::String m_description;
217
218 Assets m_assets;
219
220 Aws::Vector<DocumentInfo> m_scopeDocs;
221
222 Aws::String m_serviceRole;
223
224 CloudWatchLog m_logConfig;
225
226 ReportDestination m_reportDestination;
227 bool m_threatModelIdHasBeenSet = false;
228 bool m_agentSpaceIdHasBeenSet = false;
229 bool m_titleHasBeenSet = false;
230 bool m_descriptionHasBeenSet = false;
231 bool m_assetsHasBeenSet = false;
232 bool m_scopeDocsHasBeenSet = false;
233 bool m_serviceRoleHasBeenSet = false;
234 bool m_logConfigHasBeenSet = false;
235 bool m_reportDestinationHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace SecurityAgent
240} // 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 & WithReportDestination(ReportDestinationT &&value)
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