AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateSecurityProfileResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/iot/model/MetricsExportConfig.h>
13#include <aws/iot/model/Behavior.h>
14#include <aws/iot/model/AlertTargetType.h>
15#include <aws/iot/model/AlertTarget.h>
16#include <aws/iot/model/MetricToRetain.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace IoT
32{
33namespace Model
34{
36 {
37 public:
38 AWS_IOT_API UpdateSecurityProfileResult() = default;
41
42
44
47 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
48 template<typename SecurityProfileNameT = Aws::String>
49 void SetSecurityProfileName(SecurityProfileNameT&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::forward<SecurityProfileNameT>(value); }
50 template<typename SecurityProfileNameT = Aws::String>
51 UpdateSecurityProfileResult& WithSecurityProfileName(SecurityProfileNameT&& value) { SetSecurityProfileName(std::forward<SecurityProfileNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetSecurityProfileArn() const { return m_securityProfileArn; }
59 template<typename SecurityProfileArnT = Aws::String>
60 void SetSecurityProfileArn(SecurityProfileArnT&& value) { m_securityProfileArnHasBeenSet = true; m_securityProfileArn = std::forward<SecurityProfileArnT>(value); }
61 template<typename SecurityProfileArnT = Aws::String>
62 UpdateSecurityProfileResult& WithSecurityProfileArn(SecurityProfileArnT&& value) { SetSecurityProfileArn(std::forward<SecurityProfileArnT>(value)); return *this;}
64
66
69 inline const Aws::String& GetSecurityProfileDescription() const { return m_securityProfileDescription; }
70 template<typename SecurityProfileDescriptionT = Aws::String>
71 void SetSecurityProfileDescription(SecurityProfileDescriptionT&& value) { m_securityProfileDescriptionHasBeenSet = true; m_securityProfileDescription = std::forward<SecurityProfileDescriptionT>(value); }
72 template<typename SecurityProfileDescriptionT = Aws::String>
73 UpdateSecurityProfileResult& WithSecurityProfileDescription(SecurityProfileDescriptionT&& value) { SetSecurityProfileDescription(std::forward<SecurityProfileDescriptionT>(value)); return *this;}
75
77
81 inline const Aws::Vector<Behavior>& GetBehaviors() const { return m_behaviors; }
82 template<typename BehaviorsT = Aws::Vector<Behavior>>
83 void SetBehaviors(BehaviorsT&& value) { m_behaviorsHasBeenSet = true; m_behaviors = std::forward<BehaviorsT>(value); }
84 template<typename BehaviorsT = Aws::Vector<Behavior>>
85 UpdateSecurityProfileResult& WithBehaviors(BehaviorsT&& value) { SetBehaviors(std::forward<BehaviorsT>(value)); return *this;}
86 template<typename BehaviorsT = Behavior>
87 UpdateSecurityProfileResult& AddBehaviors(BehaviorsT&& value) { m_behaviorsHasBeenSet = true; m_behaviors.emplace_back(std::forward<BehaviorsT>(value)); return *this; }
89
91
94 inline const Aws::Map<AlertTargetType, AlertTarget>& GetAlertTargets() const { return m_alertTargets; }
95 template<typename AlertTargetsT = Aws::Map<AlertTargetType, AlertTarget>>
96 void SetAlertTargets(AlertTargetsT&& value) { m_alertTargetsHasBeenSet = true; m_alertTargets = std::forward<AlertTargetsT>(value); }
97 template<typename AlertTargetsT = Aws::Map<AlertTargetType, AlertTarget>>
98 UpdateSecurityProfileResult& WithAlertTargets(AlertTargetsT&& value) { SetAlertTargets(std::forward<AlertTargetsT>(value)); return *this;}
100 m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(key, value); return *this;
101 }
103
105
111 inline const Aws::Vector<MetricToRetain>& GetAdditionalMetricsToRetainV2() const { return m_additionalMetricsToRetainV2; }
112 template<typename AdditionalMetricsToRetainV2T = Aws::Vector<MetricToRetain>>
113 void SetAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = std::forward<AdditionalMetricsToRetainV2T>(value); }
114 template<typename AdditionalMetricsToRetainV2T = Aws::Vector<MetricToRetain>>
115 UpdateSecurityProfileResult& WithAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T&& value) { SetAdditionalMetricsToRetainV2(std::forward<AdditionalMetricsToRetainV2T>(value)); return *this;}
116 template<typename AdditionalMetricsToRetainV2T = MetricToRetain>
117 UpdateSecurityProfileResult& AddAdditionalMetricsToRetainV2(AdditionalMetricsToRetainV2T&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.emplace_back(std::forward<AdditionalMetricsToRetainV2T>(value)); return *this; }
119
121
124 inline long long GetVersion() const { return m_version; }
125 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
126 inline UpdateSecurityProfileResult& WithVersion(long long value) { SetVersion(value); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
134 template<typename CreationDateT = Aws::Utils::DateTime>
135 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
136 template<typename CreationDateT = Aws::Utils::DateTime>
137 UpdateSecurityProfileResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
145 template<typename LastModifiedDateT = Aws::Utils::DateTime>
146 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
147 template<typename LastModifiedDateT = Aws::Utils::DateTime>
148 UpdateSecurityProfileResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
150
152
155 inline const MetricsExportConfig& GetMetricsExportConfig() const { return m_metricsExportConfig; }
156 template<typename MetricsExportConfigT = MetricsExportConfig>
157 void SetMetricsExportConfig(MetricsExportConfigT&& value) { m_metricsExportConfigHasBeenSet = true; m_metricsExportConfig = std::forward<MetricsExportConfigT>(value); }
158 template<typename MetricsExportConfigT = MetricsExportConfig>
159 UpdateSecurityProfileResult& WithMetricsExportConfig(MetricsExportConfigT&& value) { SetMetricsExportConfig(std::forward<MetricsExportConfigT>(value)); return *this;}
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template<typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
167 template<typename RequestIdT = Aws::String>
168 UpdateSecurityProfileResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
170 private:
171
172 Aws::String m_securityProfileName;
173 bool m_securityProfileNameHasBeenSet = false;
174
175 Aws::String m_securityProfileArn;
176 bool m_securityProfileArnHasBeenSet = false;
177
178 Aws::String m_securityProfileDescription;
179 bool m_securityProfileDescriptionHasBeenSet = false;
180
181 Aws::Vector<Behavior> m_behaviors;
182 bool m_behaviorsHasBeenSet = false;
183
185 bool m_alertTargetsHasBeenSet = false;
186
187 Aws::Vector<MetricToRetain> m_additionalMetricsToRetainV2;
188 bool m_additionalMetricsToRetainV2HasBeenSet = false;
189
190 long long m_version{0};
191 bool m_versionHasBeenSet = false;
192
193 Aws::Utils::DateTime m_creationDate{};
194 bool m_creationDateHasBeenSet = false;
195
196 Aws::Utils::DateTime m_lastModifiedDate{};
197 bool m_lastModifiedDateHasBeenSet = false;
198
199 MetricsExportConfig m_metricsExportConfig;
200 bool m_metricsExportConfigHasBeenSet = false;
201
202 Aws::String m_requestId;
203 bool m_requestIdHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace IoT
208} // 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
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