AWS SDK for C++  1.9.132
AWS SDK for C++
CreateSecurityProfileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <aws/iot/model/Behavior.h>
16 #include <aws/iot/model/Tag.h>
17 #include <utility>
18 
19 namespace Aws
20 {
21 namespace IoT
22 {
23 namespace Model
24 {
25 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityProfile"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
45  inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
46 
50  inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
51 
55  inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
56 
60  inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
61 
65  inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
66 
70  inline CreateSecurityProfileRequest& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
71 
75  inline CreateSecurityProfileRequest& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
76 
80  inline CreateSecurityProfileRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
81 
82 
86  inline const Aws::String& GetSecurityProfileDescription() const{ return m_securityProfileDescription; }
87 
91  inline bool SecurityProfileDescriptionHasBeenSet() const { return m_securityProfileDescriptionHasBeenSet; }
92 
96  inline void SetSecurityProfileDescription(const Aws::String& value) { m_securityProfileDescriptionHasBeenSet = true; m_securityProfileDescription = value; }
97 
101  inline void SetSecurityProfileDescription(Aws::String&& value) { m_securityProfileDescriptionHasBeenSet = true; m_securityProfileDescription = std::move(value); }
102 
106  inline void SetSecurityProfileDescription(const char* value) { m_securityProfileDescriptionHasBeenSet = true; m_securityProfileDescription.assign(value); }
107 
111  inline CreateSecurityProfileRequest& WithSecurityProfileDescription(const Aws::String& value) { SetSecurityProfileDescription(value); return *this;}
112 
116  inline CreateSecurityProfileRequest& WithSecurityProfileDescription(Aws::String&& value) { SetSecurityProfileDescription(std::move(value)); return *this;}
117 
121  inline CreateSecurityProfileRequest& WithSecurityProfileDescription(const char* value) { SetSecurityProfileDescription(value); return *this;}
122 
123 
128  inline const Aws::Vector<Behavior>& GetBehaviors() const{ return m_behaviors; }
129 
134  inline bool BehaviorsHasBeenSet() const { return m_behaviorsHasBeenSet; }
135 
140  inline void SetBehaviors(const Aws::Vector<Behavior>& value) { m_behaviorsHasBeenSet = true; m_behaviors = value; }
141 
146  inline void SetBehaviors(Aws::Vector<Behavior>&& value) { m_behaviorsHasBeenSet = true; m_behaviors = std::move(value); }
147 
152  inline CreateSecurityProfileRequest& WithBehaviors(const Aws::Vector<Behavior>& value) { SetBehaviors(value); return *this;}
153 
158  inline CreateSecurityProfileRequest& WithBehaviors(Aws::Vector<Behavior>&& value) { SetBehaviors(std::move(value)); return *this;}
159 
164  inline CreateSecurityProfileRequest& AddBehaviors(const Behavior& value) { m_behaviorsHasBeenSet = true; m_behaviors.push_back(value); return *this; }
165 
170  inline CreateSecurityProfileRequest& AddBehaviors(Behavior&& value) { m_behaviorsHasBeenSet = true; m_behaviors.push_back(std::move(value)); return *this; }
171 
172 
178  inline const Aws::Map<AlertTargetType, AlertTarget>& GetAlertTargets() const{ return m_alertTargets; }
179 
185  inline bool AlertTargetsHasBeenSet() const { return m_alertTargetsHasBeenSet; }
186 
192  inline void SetAlertTargets(const Aws::Map<AlertTargetType, AlertTarget>& value) { m_alertTargetsHasBeenSet = true; m_alertTargets = value; }
193 
199  inline void SetAlertTargets(Aws::Map<AlertTargetType, AlertTarget>&& value) { m_alertTargetsHasBeenSet = true; m_alertTargets = std::move(value); }
200 
206  inline CreateSecurityProfileRequest& WithAlertTargets(const Aws::Map<AlertTargetType, AlertTarget>& value) { SetAlertTargets(value); return *this;}
207 
213  inline CreateSecurityProfileRequest& WithAlertTargets(Aws::Map<AlertTargetType, AlertTarget>&& value) { SetAlertTargets(std::move(value)); return *this;}
214 
220  inline CreateSecurityProfileRequest& AddAlertTargets(const AlertTargetType& key, const AlertTarget& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(key, value); return *this; }
221 
227  inline CreateSecurityProfileRequest& AddAlertTargets(AlertTargetType&& key, const AlertTarget& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(std::move(key), value); return *this; }
228 
234  inline CreateSecurityProfileRequest& AddAlertTargets(const AlertTargetType& key, AlertTarget&& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(key, std::move(value)); return *this; }
235 
241  inline CreateSecurityProfileRequest& AddAlertTargets(AlertTargetType&& key, AlertTarget&& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(std::move(key), std::move(value)); return *this; }
242 
243 
250  inline const Aws::Vector<MetricToRetain>& GetAdditionalMetricsToRetainV2() const{ return m_additionalMetricsToRetainV2; }
251 
258  inline bool AdditionalMetricsToRetainV2HasBeenSet() const { return m_additionalMetricsToRetainV2HasBeenSet; }
259 
266  inline void SetAdditionalMetricsToRetainV2(const Aws::Vector<MetricToRetain>& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = value; }
267 
274  inline void SetAdditionalMetricsToRetainV2(Aws::Vector<MetricToRetain>&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = std::move(value); }
275 
282  inline CreateSecurityProfileRequest& WithAdditionalMetricsToRetainV2(const Aws::Vector<MetricToRetain>& value) { SetAdditionalMetricsToRetainV2(value); return *this;}
283 
290  inline CreateSecurityProfileRequest& WithAdditionalMetricsToRetainV2(Aws::Vector<MetricToRetain>&& value) { SetAdditionalMetricsToRetainV2(std::move(value)); return *this;}
291 
298  inline CreateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(const MetricToRetain& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(value); return *this; }
299 
306  inline CreateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(MetricToRetain&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(std::move(value)); return *this; }
307 
308 
312  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
313 
317  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
318 
322  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
323 
327  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
328 
332  inline CreateSecurityProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
333 
337  inline CreateSecurityProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
338 
342  inline CreateSecurityProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
343 
347  inline CreateSecurityProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
348 
349  private:
350 
351  Aws::String m_securityProfileName;
352  bool m_securityProfileNameHasBeenSet;
353 
354  Aws::String m_securityProfileDescription;
355  bool m_securityProfileDescriptionHasBeenSet;
356 
357  Aws::Vector<Behavior> m_behaviors;
358  bool m_behaviorsHasBeenSet;
359 
361  bool m_alertTargetsHasBeenSet;
362 
363  Aws::Vector<MetricToRetain> m_additionalMetricsToRetainV2;
364  bool m_additionalMetricsToRetainV2HasBeenSet;
365 
366  Aws::Vector<Tag> m_tags;
367  bool m_tagsHasBeenSet;
368  };
369 
370 } // namespace Model
371 } // namespace IoT
372 } // namespace Aws
Aws::IoT::Model::CreateSecurityProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateSecurityProfileRequest::AddAlertTargets
CreateSecurityProfileRequest & AddAlertTargets(const AlertTargetType &key, AlertTarget &&value)
Definition: CreateSecurityProfileRequest.h:234
Aws::IoT::Model::CreateSecurityProfileRequest::WithSecurityProfileDescription
CreateSecurityProfileRequest & WithSecurityProfileDescription(Aws::String &&value)
Definition: CreateSecurityProfileRequest.h:116
Aws::IoT::Model::CreateSecurityProfileRequest::AddAdditionalMetricsToRetainV2
CreateSecurityProfileRequest & AddAdditionalMetricsToRetainV2(const MetricToRetain &value)
Definition: CreateSecurityProfileRequest.h:298
Aws::IoT::Model::CreateSecurityProfileRequest::BehaviorsHasBeenSet
bool BehaviorsHasBeenSet() const
Definition: CreateSecurityProfileRequest.h:134
Aws::IoT::Model::CreateSecurityProfileRequest::SetAlertTargets
void SetAlertTargets(const Aws::Map< AlertTargetType, AlertTarget > &value)
Definition: CreateSecurityProfileRequest.h:192
Aws::IoT::Model::CreateSecurityProfileRequest::WithTags
CreateSecurityProfileRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateSecurityProfileRequest.h:332
Aws::IoT::Model::CreateSecurityProfileRequest::WithSecurityProfileName
CreateSecurityProfileRequest & WithSecurityProfileName(Aws::String &&value)
Definition: CreateSecurityProfileRequest.h:75
Aws::IoT::Model::AlertTarget
Definition: AlertTarget.h:33
AlertTargetType.h
Aws::IoT::Model::CreateSecurityProfileRequest::SetBehaviors
void SetBehaviors(const Aws::Vector< Behavior > &value)
Definition: CreateSecurityProfileRequest.h:140
Aws::IoT::Model::CreateSecurityProfileRequest::SetBehaviors
void SetBehaviors(Aws::Vector< Behavior > &&value)
Definition: CreateSecurityProfileRequest.h:146
Aws::IoT::Model::CreateSecurityProfileRequest::WithAdditionalMetricsToRetainV2
CreateSecurityProfileRequest & WithAdditionalMetricsToRetainV2(Aws::Vector< MetricToRetain > &&value)
Definition: CreateSecurityProfileRequest.h:290
Aws::IoT::Model::CreateSecurityProfileRequest::SetSecurityProfileName
void SetSecurityProfileName(const Aws::String &value)
Definition: CreateSecurityProfileRequest.h:55
Aws::IoT::Model::CreateSecurityProfileRequest::CreateSecurityProfileRequest
CreateSecurityProfileRequest()
Aws::IoT::Model::MetricToRetain
Definition: MetricToRetain.h:34
Aws::IoT::Model::CreateSecurityProfileRequest::WithSecurityProfileName
CreateSecurityProfileRequest & WithSecurityProfileName(const char *value)
Definition: CreateSecurityProfileRequest.h:80
Aws::IoT::Model::CreateSecurityProfileRequest::GetAlertTargets
const Aws::Map< AlertTargetType, AlertTarget > & GetAlertTargets() const
Definition: CreateSecurityProfileRequest.h:178
Aws::IoT::Model::CreateSecurityProfileRequest::WithSecurityProfileDescription
CreateSecurityProfileRequest & WithSecurityProfileDescription(const Aws::String &value)
Definition: CreateSecurityProfileRequest.h:111
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateSecurityProfileRequest::GetAdditionalMetricsToRetainV2
const Aws::Vector< MetricToRetain > & GetAdditionalMetricsToRetainV2() const
Definition: CreateSecurityProfileRequest.h:250
Aws::IoT::Model::CreateSecurityProfileRequest::WithAlertTargets
CreateSecurityProfileRequest & WithAlertTargets(const Aws::Map< AlertTargetType, AlertTarget > &value)
Definition: CreateSecurityProfileRequest.h:206
AWSVector.h
Aws::IoT::Model::CreateSecurityProfileRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateSecurityProfileRequest.h:312
Aws::IoT::Model::CreateSecurityProfileRequest::WithAdditionalMetricsToRetainV2
CreateSecurityProfileRequest & WithAdditionalMetricsToRetainV2(const Aws::Vector< MetricToRetain > &value)
Definition: CreateSecurityProfileRequest.h:282
Aws::IoT::Model::CreateSecurityProfileRequest::WithBehaviors
CreateSecurityProfileRequest & WithBehaviors(const Aws::Vector< Behavior > &value)
Definition: CreateSecurityProfileRequest.h:152
Aws::IoT::Model::CreateSecurityProfileRequest::SetAdditionalMetricsToRetainV2
void SetAdditionalMetricsToRetainV2(const Aws::Vector< MetricToRetain > &value)
Definition: CreateSecurityProfileRequest.h:266
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateSecurityProfileRequest::SetSecurityProfileName
void SetSecurityProfileName(const char *value)
Definition: CreateSecurityProfileRequest.h:65
Aws::IoT::Model::CreateSecurityProfileRequest::SetSecurityProfileName
void SetSecurityProfileName(Aws::String &&value)
Definition: CreateSecurityProfileRequest.h:60
Aws::IoT::Model::CreateSecurityProfileRequest::SetAdditionalMetricsToRetainV2
void SetAdditionalMetricsToRetainV2(Aws::Vector< MetricToRetain > &&value)
Definition: CreateSecurityProfileRequest.h:274
Aws::IoT::Model::CreateSecurityProfileRequest::SetSecurityProfileDescription
void SetSecurityProfileDescription(Aws::String &&value)
Definition: CreateSecurityProfileRequest.h:101
Aws::IoT::Model::CreateSecurityProfileRequest::WithSecurityProfileDescription
CreateSecurityProfileRequest & WithSecurityProfileDescription(const char *value)
Definition: CreateSecurityProfileRequest.h:121
Aws::IoT::Model::CreateSecurityProfileRequest::WithSecurityProfileName
CreateSecurityProfileRequest & WithSecurityProfileName(const Aws::String &value)
Definition: CreateSecurityProfileRequest.h:70
Aws::IoT::Model::CreateSecurityProfileRequest::SetAlertTargets
void SetAlertTargets(Aws::Map< AlertTargetType, AlertTarget > &&value)
Definition: CreateSecurityProfileRequest.h:199
MetricToRetain.h
Aws::IoT::Model::CreateSecurityProfileRequest::WithAlertTargets
CreateSecurityProfileRequest & WithAlertTargets(Aws::Map< AlertTargetType, AlertTarget > &&value)
Definition: CreateSecurityProfileRequest.h:213
Aws::IoT::Model::CreateSecurityProfileRequest::SecurityProfileDescriptionHasBeenSet
bool SecurityProfileDescriptionHasBeenSet() const
Definition: CreateSecurityProfileRequest.h:91
Aws::IoT::Model::CreateSecurityProfileRequest::AddTags
CreateSecurityProfileRequest & AddTags(Tag &&value)
Definition: CreateSecurityProfileRequest.h:347
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateSecurityProfileRequest::SetSecurityProfileDescription
void SetSecurityProfileDescription(const char *value)
Definition: CreateSecurityProfileRequest.h:106
Aws::IoT::Model::CreateSecurityProfileRequest::AddAlertTargets
CreateSecurityProfileRequest & AddAlertTargets(const AlertTargetType &key, const AlertTarget &value)
Definition: CreateSecurityProfileRequest.h:220
Aws::IoT::Model::AlertTargetType
AlertTargetType
Definition: AlertTargetType.h:17
Aws::IoT::Model::CreateSecurityProfileRequest::AddTags
CreateSecurityProfileRequest & AddTags(const Tag &value)
Definition: CreateSecurityProfileRequest.h:342
Aws::IoT::Model::CreateSecurityProfileRequest::WithBehaviors
CreateSecurityProfileRequest & WithBehaviors(Aws::Vector< Behavior > &&value)
Definition: CreateSecurityProfileRequest.h:158
Aws::IoT::Model::CreateSecurityProfileRequest::AddAlertTargets
CreateSecurityProfileRequest & AddAlertTargets(AlertTargetType &&key, const AlertTarget &value)
Definition: CreateSecurityProfileRequest.h:227
Aws::IoT::Model::CreateSecurityProfileRequest::GetBehaviors
const Aws::Vector< Behavior > & GetBehaviors() const
Definition: CreateSecurityProfileRequest.h:128
Aws::IoT::Model::CreateSecurityProfileRequest::AddAlertTargets
CreateSecurityProfileRequest & AddAlertTargets(AlertTargetType &&key, AlertTarget &&value)
Definition: CreateSecurityProfileRequest.h:241
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateSecurityProfileRequest::AddBehaviors
CreateSecurityProfileRequest & AddBehaviors(const Behavior &value)
Definition: CreateSecurityProfileRequest.h:164
Aws::IoT::Model::CreateSecurityProfileRequest::AddAdditionalMetricsToRetainV2
CreateSecurityProfileRequest & AddAdditionalMetricsToRetainV2(MetricToRetain &&value)
Definition: CreateSecurityProfileRequest.h:306
Aws::IoT::Model::CreateSecurityProfileRequest::AddBehaviors
CreateSecurityProfileRequest & AddBehaviors(Behavior &&value)
Definition: CreateSecurityProfileRequest.h:170
Aws::IoT::Model::CreateSecurityProfileRequest::AlertTargetsHasBeenSet
bool AlertTargetsHasBeenSet() const
Definition: CreateSecurityProfileRequest.h:185
Behavior.h
Aws::IoT::Model::Behavior
Definition: Behavior.h:34
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::CreateSecurityProfileRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateSecurityProfileRequest.h:327
AlertTarget.h
IoTRequest.h
Aws::IoT::Model::CreateSecurityProfileRequest::AdditionalMetricsToRetainV2HasBeenSet
bool AdditionalMetricsToRetainV2HasBeenSet() const
Definition: CreateSecurityProfileRequest.h:258
Aws::IoT::Model::CreateSecurityProfileRequest
Definition: CreateSecurityProfileRequest.h:29
Aws::IoT::Model::CreateSecurityProfileRequest::GetSecurityProfileName
const Aws::String & GetSecurityProfileName() const
Definition: CreateSecurityProfileRequest.h:45
Aws::IoT::Model::CreateSecurityProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSecurityProfileRequest.h:37
AWSMap.h
Aws::IoT::Model::CreateSecurityProfileRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateSecurityProfileRequest.h:322
Aws::IoT::Model::CreateSecurityProfileRequest::WithTags
CreateSecurityProfileRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateSecurityProfileRequest.h:337
Aws::IoT::Model::CreateSecurityProfileRequest::SecurityProfileNameHasBeenSet
bool SecurityProfileNameHasBeenSet() const
Definition: CreateSecurityProfileRequest.h:50
Aws::IoT::Model::CreateSecurityProfileRequest::GetSecurityProfileDescription
const Aws::String & GetSecurityProfileDescription() const
Definition: CreateSecurityProfileRequest.h:86
Tag.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoT::Model::CreateSecurityProfileRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSecurityProfileRequest.h:317
IoT_EXPORTS.h
Aws::IoT::Model::CreateSecurityProfileRequest::SetSecurityProfileDescription
void SetSecurityProfileDescription(const Aws::String &value)
Definition: CreateSecurityProfileRequest.h:96