AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeSecurityProfileResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <aws/iot/model/Behavior.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 template<typename RESULT_TYPE>
21 class AmazonWebServiceResult;
22 
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace IoT
31 {
32 namespace Model
33 {
35  {
36  public:
40 
41 
45  inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
46 
50  inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileName = value; }
51 
55  inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileName = std::move(value); }
56 
60  inline void SetSecurityProfileName(const char* value) { m_securityProfileName.assign(value); }
61 
65  inline DescribeSecurityProfileResult& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
66 
70  inline DescribeSecurityProfileResult& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
71 
75  inline DescribeSecurityProfileResult& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
76 
77 
81  inline const Aws::String& GetSecurityProfileArn() const{ return m_securityProfileArn; }
82 
86  inline void SetSecurityProfileArn(const Aws::String& value) { m_securityProfileArn = value; }
87 
91  inline void SetSecurityProfileArn(Aws::String&& value) { m_securityProfileArn = std::move(value); }
92 
96  inline void SetSecurityProfileArn(const char* value) { m_securityProfileArn.assign(value); }
97 
101  inline DescribeSecurityProfileResult& WithSecurityProfileArn(const Aws::String& value) { SetSecurityProfileArn(value); return *this;}
102 
106  inline DescribeSecurityProfileResult& WithSecurityProfileArn(Aws::String&& value) { SetSecurityProfileArn(std::move(value)); return *this;}
107 
111  inline DescribeSecurityProfileResult& WithSecurityProfileArn(const char* value) { SetSecurityProfileArn(value); return *this;}
112 
113 
118  inline const Aws::String& GetSecurityProfileDescription() const{ return m_securityProfileDescription; }
119 
124  inline void SetSecurityProfileDescription(const Aws::String& value) { m_securityProfileDescription = value; }
125 
130  inline void SetSecurityProfileDescription(Aws::String&& value) { m_securityProfileDescription = std::move(value); }
131 
136  inline void SetSecurityProfileDescription(const char* value) { m_securityProfileDescription.assign(value); }
137 
142  inline DescribeSecurityProfileResult& WithSecurityProfileDescription(const Aws::String& value) { SetSecurityProfileDescription(value); return *this;}
143 
148  inline DescribeSecurityProfileResult& WithSecurityProfileDescription(Aws::String&& value) { SetSecurityProfileDescription(std::move(value)); return *this;}
149 
154  inline DescribeSecurityProfileResult& WithSecurityProfileDescription(const char* value) { SetSecurityProfileDescription(value); return *this;}
155 
156 
161  inline const Aws::Vector<Behavior>& GetBehaviors() const{ return m_behaviors; }
162 
167  inline void SetBehaviors(const Aws::Vector<Behavior>& value) { m_behaviors = value; }
168 
173  inline void SetBehaviors(Aws::Vector<Behavior>&& value) { m_behaviors = std::move(value); }
174 
179  inline DescribeSecurityProfileResult& WithBehaviors(const Aws::Vector<Behavior>& value) { SetBehaviors(value); return *this;}
180 
185  inline DescribeSecurityProfileResult& WithBehaviors(Aws::Vector<Behavior>&& value) { SetBehaviors(std::move(value)); return *this;}
186 
191  inline DescribeSecurityProfileResult& AddBehaviors(const Behavior& value) { m_behaviors.push_back(value); return *this; }
192 
197  inline DescribeSecurityProfileResult& AddBehaviors(Behavior&& value) { m_behaviors.push_back(std::move(value)); return *this; }
198 
199 
203  inline const Aws::Map<AlertTargetType, AlertTarget>& GetAlertTargets() const{ return m_alertTargets; }
204 
208  inline void SetAlertTargets(const Aws::Map<AlertTargetType, AlertTarget>& value) { m_alertTargets = value; }
209 
213  inline void SetAlertTargets(Aws::Map<AlertTargetType, AlertTarget>&& value) { m_alertTargets = std::move(value); }
214 
218  inline DescribeSecurityProfileResult& WithAlertTargets(const Aws::Map<AlertTargetType, AlertTarget>& value) { SetAlertTargets(value); return *this;}
219 
223  inline DescribeSecurityProfileResult& WithAlertTargets(Aws::Map<AlertTargetType, AlertTarget>&& value) { SetAlertTargets(std::move(value)); return *this;}
224 
228  inline DescribeSecurityProfileResult& AddAlertTargets(const AlertTargetType& key, const AlertTarget& value) { m_alertTargets.emplace(key, value); return *this; }
229 
233  inline DescribeSecurityProfileResult& AddAlertTargets(AlertTargetType&& key, const AlertTarget& value) { m_alertTargets.emplace(std::move(key), value); return *this; }
234 
238  inline DescribeSecurityProfileResult& AddAlertTargets(const AlertTargetType& key, AlertTarget&& value) { m_alertTargets.emplace(key, std::move(value)); return *this; }
239 
243  inline DescribeSecurityProfileResult& AddAlertTargets(AlertTargetType&& key, AlertTarget&& value) { m_alertTargets.emplace(std::move(key), std::move(value)); return *this; }
244 
245 
251  inline const Aws::Vector<MetricToRetain>& GetAdditionalMetricsToRetainV2() const{ return m_additionalMetricsToRetainV2; }
252 
258  inline void SetAdditionalMetricsToRetainV2(const Aws::Vector<MetricToRetain>& value) { m_additionalMetricsToRetainV2 = value; }
259 
265  inline void SetAdditionalMetricsToRetainV2(Aws::Vector<MetricToRetain>&& value) { m_additionalMetricsToRetainV2 = std::move(value); }
266 
272  inline DescribeSecurityProfileResult& WithAdditionalMetricsToRetainV2(const Aws::Vector<MetricToRetain>& value) { SetAdditionalMetricsToRetainV2(value); return *this;}
273 
279  inline DescribeSecurityProfileResult& WithAdditionalMetricsToRetainV2(Aws::Vector<MetricToRetain>&& value) { SetAdditionalMetricsToRetainV2(std::move(value)); return *this;}
280 
286  inline DescribeSecurityProfileResult& AddAdditionalMetricsToRetainV2(const MetricToRetain& value) { m_additionalMetricsToRetainV2.push_back(value); return *this; }
287 
293  inline DescribeSecurityProfileResult& AddAdditionalMetricsToRetainV2(MetricToRetain&& value) { m_additionalMetricsToRetainV2.push_back(std::move(value)); return *this; }
294 
295 
300  inline long long GetVersion() const{ return m_version; }
301 
306  inline void SetVersion(long long value) { m_version = value; }
307 
312  inline DescribeSecurityProfileResult& WithVersion(long long value) { SetVersion(value); return *this;}
313 
314 
318  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
319 
323  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
324 
328  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
329 
333  inline DescribeSecurityProfileResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
334 
338  inline DescribeSecurityProfileResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
339 
340 
344  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
345 
349  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
350 
354  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
355 
359  inline DescribeSecurityProfileResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
360 
364  inline DescribeSecurityProfileResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
365 
366  private:
367 
368  Aws::String m_securityProfileName;
369 
370  Aws::String m_securityProfileArn;
371 
372  Aws::String m_securityProfileDescription;
373 
374  Aws::Vector<Behavior> m_behaviors;
375 
377 
378  Aws::Vector<MetricToRetain> m_additionalMetricsToRetainV2;
379 
380  long long m_version;
381 
382  Aws::Utils::DateTime m_creationDate;
383 
384  Aws::Utils::DateTime m_lastModifiedDate;
385  };
386 
387 } // namespace Model
388 } // namespace IoT
389 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::DescribeSecurityProfileResult::SetLastModifiedDate
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: DescribeSecurityProfileResult.h:349
Aws::IoT::Model::DescribeSecurityProfileResult::GetSecurityProfileArn
const Aws::String & GetSecurityProfileArn() const
Definition: DescribeSecurityProfileResult.h:81
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::DescribeSecurityProfileResult::AddBehaviors
DescribeSecurityProfileResult & AddBehaviors(const Behavior &value)
Definition: DescribeSecurityProfileResult.h:191
Aws::IoT::Model::DescribeSecurityProfileResult
Definition: DescribeSecurityProfileResult.h:35
Aws::IoT::Model::AlertTarget
Definition: AlertTarget.h:33
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileName
DescribeSecurityProfileResult & WithSecurityProfileName(Aws::String &&value)
Definition: DescribeSecurityProfileResult.h:70
Aws::IoT::Model::DescribeSecurityProfileResult::GetVersion
long long GetVersion() const
Definition: DescribeSecurityProfileResult.h:300
AlertTargetType.h
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileArn
void SetSecurityProfileArn(const char *value)
Definition: DescribeSecurityProfileResult.h:96
Aws::IoT::Model::DescribeSecurityProfileResult::WithBehaviors
DescribeSecurityProfileResult & WithBehaviors(const Aws::Vector< Behavior > &value)
Definition: DescribeSecurityProfileResult.h:179
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileArn
DescribeSecurityProfileResult & WithSecurityProfileArn(const Aws::String &value)
Definition: DescribeSecurityProfileResult.h:101
Aws::IoT::Model::MetricToRetain
Definition: MetricToRetain.h:34
Aws::IoT::Model::DescribeSecurityProfileResult::GetSecurityProfileName
const Aws::String & GetSecurityProfileName() const
Definition: DescribeSecurityProfileResult.h:45
DateTime.h
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileDescription
void SetSecurityProfileDescription(const char *value)
Definition: DescribeSecurityProfileResult.h:136
Aws::IoT::Model::DescribeSecurityProfileResult::SetAlertTargets
void SetAlertTargets(Aws::Map< AlertTargetType, AlertTarget > &&value)
Definition: DescribeSecurityProfileResult.h:213
Aws::IoT::Model::DescribeSecurityProfileResult::SetBehaviors
void SetBehaviors(Aws::Vector< Behavior > &&value)
Definition: DescribeSecurityProfileResult.h:173
Aws::IoT::Model::DescribeSecurityProfileResult::AddAlertTargets
DescribeSecurityProfileResult & AddAlertTargets(const AlertTargetType &key, const AlertTarget &value)
Definition: DescribeSecurityProfileResult.h:228
Aws::IoT::Model::DescribeSecurityProfileResult::WithCreationDate
DescribeSecurityProfileResult & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: DescribeSecurityProfileResult.h:338
Aws::IoT::Model::DescribeSecurityProfileResult::WithAlertTargets
DescribeSecurityProfileResult & WithAlertTargets(const Aws::Map< AlertTargetType, AlertTarget > &value)
Definition: DescribeSecurityProfileResult.h:218
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileArn
void SetSecurityProfileArn(const Aws::String &value)
Definition: DescribeSecurityProfileResult.h:86
Aws::IoT::Model::DescribeSecurityProfileResult::AddBehaviors
DescribeSecurityProfileResult & AddBehaviors(Behavior &&value)
Definition: DescribeSecurityProfileResult.h:197
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileDescription
void SetSecurityProfileDescription(const Aws::String &value)
Definition: DescribeSecurityProfileResult.h:124
Aws::IoT::Model::DescribeSecurityProfileResult::SetVersion
void SetVersion(long long value)
Definition: DescribeSecurityProfileResult.h:306
AWSVector.h
Aws::IoT::Model::DescribeSecurityProfileResult::WithAdditionalMetricsToRetainV2
DescribeSecurityProfileResult & WithAdditionalMetricsToRetainV2(Aws::Vector< MetricToRetain > &&value)
Definition: DescribeSecurityProfileResult.h:279
Aws::IoT::Model::DescribeSecurityProfileResult::SetAdditionalMetricsToRetainV2
void SetAdditionalMetricsToRetainV2(Aws::Vector< MetricToRetain > &&value)
Definition: DescribeSecurityProfileResult.h:265
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileDescription
DescribeSecurityProfileResult & WithSecurityProfileDescription(const char *value)
Definition: DescribeSecurityProfileResult.h:154
Aws::IoT::Model::DescribeSecurityProfileResult::DescribeSecurityProfileResult
DescribeSecurityProfileResult()
Aws::IoT::Model::DescribeSecurityProfileResult::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: DescribeSecurityProfileResult.h:318
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileName
DescribeSecurityProfileResult & WithSecurityProfileName(const char *value)
Definition: DescribeSecurityProfileResult.h:75
Aws::IoT::Model::DescribeSecurityProfileResult::WithAdditionalMetricsToRetainV2
DescribeSecurityProfileResult & WithAdditionalMetricsToRetainV2(const Aws::Vector< MetricToRetain > &value)
Definition: DescribeSecurityProfileResult.h:272
Aws::IoT::Model::DescribeSecurityProfileResult::AddAlertTargets
DescribeSecurityProfileResult & AddAlertTargets(const AlertTargetType &key, AlertTarget &&value)
Definition: DescribeSecurityProfileResult.h:238
Aws::IoT::Model::DescribeSecurityProfileResult::WithBehaviors
DescribeSecurityProfileResult & WithBehaviors(Aws::Vector< Behavior > &&value)
Definition: DescribeSecurityProfileResult.h:185
Aws::IoT::Model::DescribeSecurityProfileResult::AddAlertTargets
DescribeSecurityProfileResult & AddAlertTargets(AlertTargetType &&key, AlertTarget &&value)
Definition: DescribeSecurityProfileResult.h:243
Aws::IoT::Model::DescribeSecurityProfileResult::SetAdditionalMetricsToRetainV2
void SetAdditionalMetricsToRetainV2(const Aws::Vector< MetricToRetain > &value)
Definition: DescribeSecurityProfileResult.h:258
Aws::IoT::Model::DescribeSecurityProfileResult::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: DescribeSecurityProfileResult.h:323
MetricToRetain.h
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileDescription
void SetSecurityProfileDescription(Aws::String &&value)
Definition: DescribeSecurityProfileResult.h:130
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileName
void SetSecurityProfileName(Aws::String &&value)
Definition: DescribeSecurityProfileResult.h:55
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileArn
DescribeSecurityProfileResult & WithSecurityProfileArn(const char *value)
Definition: DescribeSecurityProfileResult.h:111
Aws::IoT::Model::DescribeSecurityProfileResult::GetAdditionalMetricsToRetainV2
const Aws::Vector< MetricToRetain > & GetAdditionalMetricsToRetainV2() const
Definition: DescribeSecurityProfileResult.h:251
Aws::IoT::Model::DescribeSecurityProfileResult::WithLastModifiedDate
DescribeSecurityProfileResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: DescribeSecurityProfileResult.h:364
AWSString.h
Aws::IoT::Model::DescribeSecurityProfileResult::GetLastModifiedDate
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition: DescribeSecurityProfileResult.h:344
Aws::IoT::Model::DescribeSecurityProfileResult::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: DescribeSecurityProfileResult.h:328
Aws::IoT::Model::DescribeSecurityProfileResult::operator=
DescribeSecurityProfileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::DescribeSecurityProfileResult::AddAlertTargets
DescribeSecurityProfileResult & AddAlertTargets(AlertTargetType &&key, const AlertTarget &value)
Definition: DescribeSecurityProfileResult.h:233
Aws::IoT::Model::AlertTargetType
AlertTargetType
Definition: AlertTargetType.h:17
Aws::IoT::Model::DescribeSecurityProfileResult::GetAlertTargets
const Aws::Map< AlertTargetType, AlertTarget > & GetAlertTargets() const
Definition: DescribeSecurityProfileResult.h:203
Aws::IoT::Model::DescribeSecurityProfileResult::DescribeSecurityProfileResult
DescribeSecurityProfileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::DescribeSecurityProfileResult::GetSecurityProfileDescription
const Aws::String & GetSecurityProfileDescription() const
Definition: DescribeSecurityProfileResult.h:118
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileDescription
DescribeSecurityProfileResult & WithSecurityProfileDescription(const Aws::String &value)
Definition: DescribeSecurityProfileResult.h:142
Aws::IoT::Model::DescribeSecurityProfileResult::AddAdditionalMetricsToRetainV2
DescribeSecurityProfileResult & AddAdditionalMetricsToRetainV2(MetricToRetain &&value)
Definition: DescribeSecurityProfileResult.h:293
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileName
DescribeSecurityProfileResult & WithSecurityProfileName(const Aws::String &value)
Definition: DescribeSecurityProfileResult.h:65
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileArn
void SetSecurityProfileArn(Aws::String &&value)
Definition: DescribeSecurityProfileResult.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileArn
DescribeSecurityProfileResult & WithSecurityProfileArn(Aws::String &&value)
Definition: DescribeSecurityProfileResult.h:106
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileName
void SetSecurityProfileName(const Aws::String &value)
Definition: DescribeSecurityProfileResult.h:50
Aws::IoT::Model::DescribeSecurityProfileResult::SetBehaviors
void SetBehaviors(const Aws::Vector< Behavior > &value)
Definition: DescribeSecurityProfileResult.h:167
Behavior.h
Aws::IoT::Model::Behavior
Definition: Behavior.h:34
Aws::IoT::Model::DescribeSecurityProfileResult::WithCreationDate
DescribeSecurityProfileResult & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: DescribeSecurityProfileResult.h:333
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::DescribeSecurityProfileResult::WithSecurityProfileDescription
DescribeSecurityProfileResult & WithSecurityProfileDescription(Aws::String &&value)
Definition: DescribeSecurityProfileResult.h:148
AlertTarget.h
Aws::IoT::Model::DescribeSecurityProfileResult::SetLastModifiedDate
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: DescribeSecurityProfileResult.h:354
Aws::IoT::Model::DescribeSecurityProfileResult::GetBehaviors
const Aws::Vector< Behavior > & GetBehaviors() const
Definition: DescribeSecurityProfileResult.h:161
Aws::IoT::Model::DescribeSecurityProfileResult::AddAdditionalMetricsToRetainV2
DescribeSecurityProfileResult & AddAdditionalMetricsToRetainV2(const MetricToRetain &value)
Definition: DescribeSecurityProfileResult.h:286
AWSMap.h
Aws::IoT::Model::DescribeSecurityProfileResult::WithAlertTargets
DescribeSecurityProfileResult & WithAlertTargets(Aws::Map< AlertTargetType, AlertTarget > &&value)
Definition: DescribeSecurityProfileResult.h:223
Aws::IoT::Model::DescribeSecurityProfileResult::WithVersion
DescribeSecurityProfileResult & WithVersion(long long value)
Definition: DescribeSecurityProfileResult.h:312
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoT::Model::DescribeSecurityProfileResult::WithLastModifiedDate
DescribeSecurityProfileResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: DescribeSecurityProfileResult.h:359
Aws::IoT::Model::DescribeSecurityProfileResult::SetAlertTargets
void SetAlertTargets(const Aws::Map< AlertTargetType, AlertTarget > &value)
Definition: DescribeSecurityProfileResult.h:208
IoT_EXPORTS.h
Aws::IoT::Model::DescribeSecurityProfileResult::SetSecurityProfileName
void SetSecurityProfileName(const char *value)
Definition: DescribeSecurityProfileResult.h:60