AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
UpdateSecurityProfileResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/IoT_EXPORTS.h>
13#include <aws/iot/model/AlertTarget.h>
14#include <aws/iot/model/AlertTargetType.h>
15#include <aws/iot/model/Behavior.h>
16#include <aws/iot/model/MetricToRetain.h>
17#include <aws/iot/model/MetricsExportConfig.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace IoT {
31namespace Model {
33 public:
34 AWS_IOT_API UpdateSecurityProfileResult() = default;
37
39
42 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
43 template <typename SecurityProfileNameT = Aws::String>
44 void SetSecurityProfileName(SecurityProfileNameT&& value) {
45 m_securityProfileNameHasBeenSet = true;
46 m_securityProfileName = std::forward<SecurityProfileNameT>(value);
47 }
48 template <typename SecurityProfileNameT = Aws::String>
50 SetSecurityProfileName(std::forward<SecurityProfileNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSecurityProfileArn() const { return m_securityProfileArn; }
60 template <typename SecurityProfileArnT = Aws::String>
61 void SetSecurityProfileArn(SecurityProfileArnT&& value) {
62 m_securityProfileArnHasBeenSet = true;
63 m_securityProfileArn = std::forward<SecurityProfileArnT>(value);
64 }
65 template <typename SecurityProfileArnT = Aws::String>
67 SetSecurityProfileArn(std::forward<SecurityProfileArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSecurityProfileDescription() const { return m_securityProfileDescription; }
77 template <typename SecurityProfileDescriptionT = Aws::String>
78 void SetSecurityProfileDescription(SecurityProfileDescriptionT&& value) {
79 m_securityProfileDescriptionHasBeenSet = true;
80 m_securityProfileDescription = std::forward<SecurityProfileDescriptionT>(value);
81 }
82 template <typename SecurityProfileDescriptionT = Aws::String>
83 UpdateSecurityProfileResult& WithSecurityProfileDescription(SecurityProfileDescriptionT&& value) {
84 SetSecurityProfileDescription(std::forward<SecurityProfileDescriptionT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::Vector<Behavior>& GetBehaviors() const { return m_behaviors; }
95 template <typename BehaviorsT = Aws::Vector<Behavior>>
96 void SetBehaviors(BehaviorsT&& value) {
97 m_behaviorsHasBeenSet = true;
98 m_behaviors = std::forward<BehaviorsT>(value);
99 }
100 template <typename BehaviorsT = Aws::Vector<Behavior>>
102 SetBehaviors(std::forward<BehaviorsT>(value));
103 return *this;
104 }
105 template <typename BehaviorsT = Behavior>
107 m_behaviorsHasBeenSet = true;
108 m_behaviors.emplace_back(std::forward<BehaviorsT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Map<AlertTargetType, AlertTarget>& GetAlertTargets() const { return m_alertTargets; }
118 template <typename AlertTargetsT = Aws::Map<AlertTargetType, AlertTarget>>
119 void SetAlertTargets(AlertTargetsT&& value) {
120 m_alertTargetsHasBeenSet = true;
121 m_alertTargets = std::forward<AlertTargetsT>(value);
122 }
123 template <typename AlertTargetsT = Aws::Map<AlertTargetType, AlertTarget>>
125 SetAlertTargets(std::forward<AlertTargetsT>(value));
126 return *this;
127 }
129 m_alertTargetsHasBeenSet = true;
130 m_alertTargets.emplace(key, value);
131 return *this;
132 }
134
136
142 inline const Aws::Vector<MetricToRetain>& GetAdditionalMetricsToRetainV2() const { return m_additionalMetricsToRetainV2; }
143 template <typename AdditionalMetricsToRetainV2T = Aws::Vector<MetricToRetain>>
144 void SetAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T&& value) {
145 m_additionalMetricsToRetainV2HasBeenSet = true;
146 m_additionalMetricsToRetainV2 = std::forward<AdditionalMetricsToRetainV2T>(value);
147 }
148 template <typename AdditionalMetricsToRetainV2T = Aws::Vector<MetricToRetain>>
149 UpdateSecurityProfileResult& WithAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T&& value) {
150 SetAdditionalMetricsToRetainV2(std::forward<AdditionalMetricsToRetainV2T>(value));
151 return *this;
152 }
153 template <typename AdditionalMetricsToRetainV2T = MetricToRetain>
154 UpdateSecurityProfileResult& AddAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T&& value) {
155 m_additionalMetricsToRetainV2HasBeenSet = true;
156 m_additionalMetricsToRetainV2.emplace_back(std::forward<AdditionalMetricsToRetainV2T>(value));
157 return *this;
158 }
160
162
165 inline long long GetVersion() const { return m_version; }
166 inline void SetVersion(long long value) {
167 m_versionHasBeenSet = true;
168 m_version = value;
169 }
170 inline UpdateSecurityProfileResult& WithVersion(long long value) {
171 SetVersion(value);
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
181 template <typename CreationDateT = Aws::Utils::DateTime>
182 void SetCreationDate(CreationDateT&& value) {
183 m_creationDateHasBeenSet = true;
184 m_creationDate = std::forward<CreationDateT>(value);
185 }
186 template <typename CreationDateT = Aws::Utils::DateTime>
188 SetCreationDate(std::forward<CreationDateT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
198 template <typename LastModifiedDateT = Aws::Utils::DateTime>
199 void SetLastModifiedDate(LastModifiedDateT&& value) {
200 m_lastModifiedDateHasBeenSet = true;
201 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
202 }
203 template <typename LastModifiedDateT = Aws::Utils::DateTime>
205 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
206 return *this;
207 }
209
211
214 inline const MetricsExportConfig& GetMetricsExportConfig() const { return m_metricsExportConfig; }
215 template <typename MetricsExportConfigT = MetricsExportConfig>
216 void SetMetricsExportConfig(MetricsExportConfigT&& value) {
217 m_metricsExportConfigHasBeenSet = true;
218 m_metricsExportConfig = std::forward<MetricsExportConfigT>(value);
219 }
220 template <typename MetricsExportConfigT = MetricsExportConfig>
222 SetMetricsExportConfig(std::forward<MetricsExportConfigT>(value));
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
244 Aws::String m_securityProfileName;
245
246 Aws::String m_securityProfileArn;
247
248 Aws::String m_securityProfileDescription;
249
250 Aws::Vector<Behavior> m_behaviors;
251
253
254 Aws::Vector<MetricToRetain> m_additionalMetricsToRetainV2;
255
256 long long m_version{0};
257
258 Aws::Utils::DateTime m_creationDate{};
259
260 Aws::Utils::DateTime m_lastModifiedDate{};
261
262 MetricsExportConfig m_metricsExportConfig;
263
264 Aws::String m_requestId;
265 Aws::Http::HttpResponseCode m_HttpResponseCode;
266 bool m_securityProfileNameHasBeenSet = false;
267 bool m_securityProfileArnHasBeenSet = false;
268 bool m_securityProfileDescriptionHasBeenSet = false;
269 bool m_behaviorsHasBeenSet = false;
270 bool m_alertTargetsHasBeenSet = false;
271 bool m_additionalMetricsToRetainV2HasBeenSet = false;
272 bool m_versionHasBeenSet = false;
273 bool m_creationDateHasBeenSet = false;
274 bool m_lastModifiedDateHasBeenSet = false;
275 bool m_metricsExportConfigHasBeenSet = false;
276 bool m_requestIdHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace IoT
281} // namespace Aws
AWS_IOT_API UpdateSecurityProfileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSecurityProfileResult & WithAlertTargets(AlertTargetsT &&value)
const Aws::Vector< MetricToRetain > & GetAdditionalMetricsToRetainV2() const
UpdateSecurityProfileResult & WithMetricsExportConfig(MetricsExportConfigT &&value)
const Aws::Map< AlertTargetType, AlertTarget > & GetAlertTargets() const
void SetMetricsExportConfig(MetricsExportConfigT &&value)
UpdateSecurityProfileResult & WithVersion(long long value)
UpdateSecurityProfileResult & AddAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T &&value)
void SetAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
UpdateSecurityProfileResult & WithBehaviors(BehaviorsT &&value)
AWS_IOT_API UpdateSecurityProfileResult()=default
UpdateSecurityProfileResult & WithLastModifiedDate(LastModifiedDateT &&value)
UpdateSecurityProfileResult & WithCreationDate(CreationDateT &&value)
void SetSecurityProfileArn(SecurityProfileArnT &&value)
const MetricsExportConfig & GetMetricsExportConfig() const
void SetSecurityProfileName(SecurityProfileNameT &&value)
UpdateSecurityProfileResult & WithRequestId(RequestIdT &&value)
AWS_IOT_API UpdateSecurityProfileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSecurityProfileResult & WithSecurityProfileName(SecurityProfileNameT &&value)
UpdateSecurityProfileResult & AddBehaviors(BehaviorsT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetSecurityProfileDescription(SecurityProfileDescriptionT &&value)
UpdateSecurityProfileResult & WithSecurityProfileDescription(SecurityProfileDescriptionT &&value)
UpdateSecurityProfileResult & AddAlertTargets(AlertTargetType key, AlertTarget value)
UpdateSecurityProfileResult & WithSecurityProfileArn(SecurityProfileArnT &&value)
const Aws::Vector< Behavior > & GetBehaviors() const
UpdateSecurityProfileResult & WithAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue