AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreateThreatModelRequest.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 CreateThreatModelRequest() = 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 "CreateThreatModel"; }
36
37 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetTitle() const { return m_title; }
44 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
45 template <typename TitleT = Aws::String>
46 void SetTitle(TitleT&& value) {
47 m_titleHasBeenSet = true;
48 m_title = std::forward<TitleT>(value);
49 }
50 template <typename TitleT = Aws::String>
52 SetTitle(std::forward<TitleT>(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& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Assets& GetAssets() const { return m_assets; }
98 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
99 template <typename AssetsT = Assets>
100 void SetAssets(AssetsT&& value) {
101 m_assetsHasBeenSet = true;
102 m_assets = std::forward<AssetsT>(value);
103 }
104 template <typename AssetsT = Assets>
106 SetAssets(std::forward<AssetsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<DocumentInfo>& GetScopeDocs() const { return m_scopeDocs; }
116 inline bool ScopeDocsHasBeenSet() const { return m_scopeDocsHasBeenSet; }
117 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
118 void SetScopeDocs(ScopeDocsT&& value) {
119 m_scopeDocsHasBeenSet = true;
120 m_scopeDocs = std::forward<ScopeDocsT>(value);
121 }
122 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
124 SetScopeDocs(std::forward<ScopeDocsT>(value));
125 return *this;
126 }
127 template <typename ScopeDocsT = DocumentInfo>
129 m_scopeDocsHasBeenSet = true;
130 m_scopeDocs.emplace_back(std::forward<ScopeDocsT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
140 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
141 template <typename ServiceRoleT = Aws::String>
142 void SetServiceRole(ServiceRoleT&& value) {
143 m_serviceRoleHasBeenSet = true;
144 m_serviceRole = std::forward<ServiceRoleT>(value);
145 }
146 template <typename ServiceRoleT = Aws::String>
148 SetServiceRole(std::forward<ServiceRoleT>(value));
149 return *this;
150 }
152
154
157 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
158 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
159 template <typename LogConfigT = CloudWatchLog>
160 void SetLogConfig(LogConfigT&& value) {
161 m_logConfigHasBeenSet = true;
162 m_logConfig = std::forward<LogConfigT>(value);
163 }
164 template <typename LogConfigT = CloudWatchLog>
166 SetLogConfig(std::forward<LogConfigT>(value));
167 return *this;
168 }
170
172
176 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
177 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
178 template <typename ReportDestinationT = ReportDestination>
179 void SetReportDestination(ReportDestinationT&& value) {
180 m_reportDestinationHasBeenSet = true;
181 m_reportDestination = std::forward<ReportDestinationT>(value);
182 }
183 template <typename ReportDestinationT = ReportDestination>
184 CreateThreatModelRequest& WithReportDestination(ReportDestinationT&& value) {
185 SetReportDestination(std::forward<ReportDestinationT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_title;
191
192 Aws::String m_agentSpaceId;
193
194 Aws::String m_description;
195
196 Assets m_assets;
197
198 Aws::Vector<DocumentInfo> m_scopeDocs;
199
200 Aws::String m_serviceRole;
201
202 CloudWatchLog m_logConfig;
203
204 ReportDestination m_reportDestination;
205 bool m_titleHasBeenSet = false;
206 bool m_agentSpaceIdHasBeenSet = false;
207 bool m_descriptionHasBeenSet = false;
208 bool m_assetsHasBeenSet = false;
209 bool m_scopeDocsHasBeenSet = false;
210 bool m_serviceRoleHasBeenSet = false;
211 bool m_logConfigHasBeenSet = false;
212 bool m_reportDestinationHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace SecurityAgent
217} // namespace Aws
CreateThreatModelRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
CreateThreatModelRequest & WithDescription(DescriptionT &&value)
CreateThreatModelRequest & WithTitle(TitleT &&value)
CreateThreatModelRequest & WithLogConfig(LogConfigT &&value)
CreateThreatModelRequest & AddScopeDocs(ScopeDocsT &&value)
CreateThreatModelRequest & WithAssets(AssetsT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
AWS_SECURITYAGENT_API CreateThreatModelRequest()=default
const Aws::Vector< DocumentInfo > & GetScopeDocs() const
CreateThreatModelRequest & WithServiceRole(ServiceRoleT &&value)
CreateThreatModelRequest & WithScopeDocs(ScopeDocsT &&value)
virtual const char * GetServiceRequestName() const override
CreateThreatModelRequest & WithReportDestination(ReportDestinationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector