AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSecurityProfileRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.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{
21namespace Http
22{
23 class URI;
24} //namespace Http
25namespace IoT
26{
27namespace Model
28{
29
33 {
34 public:
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateSecurityProfile"; }
42
43 AWS_IOT_API Aws::String SerializePayload() const override;
44
45 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46
47
49
52 inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
53 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
54 inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
55 inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
56 inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
59 inline UpdateSecurityProfileRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
61
63
66 inline const Aws::String& GetSecurityProfileDescription() const{ return m_securityProfileDescription; }
67 inline bool SecurityProfileDescriptionHasBeenSet() const { return m_securityProfileDescriptionHasBeenSet; }
68 inline void SetSecurityProfileDescription(const Aws::String& value) { m_securityProfileDescriptionHasBeenSet = true; m_securityProfileDescription = value; }
69 inline void SetSecurityProfileDescription(Aws::String&& value) { m_securityProfileDescriptionHasBeenSet = true; m_securityProfileDescription = std::move(value); }
70 inline void SetSecurityProfileDescription(const char* value) { m_securityProfileDescriptionHasBeenSet = true; m_securityProfileDescription.assign(value); }
75
77
81 inline const Aws::Vector<Behavior>& GetBehaviors() const{ return m_behaviors; }
82 inline bool BehaviorsHasBeenSet() const { return m_behaviorsHasBeenSet; }
83 inline void SetBehaviors(const Aws::Vector<Behavior>& value) { m_behaviorsHasBeenSet = true; m_behaviors = value; }
84 inline void SetBehaviors(Aws::Vector<Behavior>&& value) { m_behaviorsHasBeenSet = true; m_behaviors = std::move(value); }
86 inline UpdateSecurityProfileRequest& WithBehaviors(Aws::Vector<Behavior>&& value) { SetBehaviors(std::move(value)); return *this;}
87 inline UpdateSecurityProfileRequest& AddBehaviors(const Behavior& value) { m_behaviorsHasBeenSet = true; m_behaviors.push_back(value); return *this; }
88 inline UpdateSecurityProfileRequest& AddBehaviors(Behavior&& value) { m_behaviorsHasBeenSet = true; m_behaviors.push_back(std::move(value)); return *this; }
90
92
95 inline const Aws::Map<AlertTargetType, AlertTarget>& GetAlertTargets() const{ return m_alertTargets; }
96 inline bool AlertTargetsHasBeenSet() const { return m_alertTargetsHasBeenSet; }
97 inline void SetAlertTargets(const Aws::Map<AlertTargetType, AlertTarget>& value) { m_alertTargetsHasBeenSet = true; m_alertTargets = value; }
98 inline void SetAlertTargets(Aws::Map<AlertTargetType, AlertTarget>&& value) { m_alertTargetsHasBeenSet = true; m_alertTargets = std::move(value); }
101 inline UpdateSecurityProfileRequest& AddAlertTargets(const AlertTargetType& key, const AlertTarget& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(key, value); return *this; }
102 inline UpdateSecurityProfileRequest& AddAlertTargets(AlertTargetType&& key, const AlertTarget& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(std::move(key), value); return *this; }
103 inline UpdateSecurityProfileRequest& AddAlertTargets(const AlertTargetType& key, AlertTarget&& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(key, std::move(value)); return *this; }
104 inline UpdateSecurityProfileRequest& AddAlertTargets(AlertTargetType&& key, AlertTarget&& value) { m_alertTargetsHasBeenSet = true; m_alertTargets.emplace(std::move(key), std::move(value)); return *this; }
106
108
114 inline const Aws::Vector<MetricToRetain>& GetAdditionalMetricsToRetainV2() const{ return m_additionalMetricsToRetainV2; }
115 inline bool AdditionalMetricsToRetainV2HasBeenSet() const { return m_additionalMetricsToRetainV2HasBeenSet; }
116 inline void SetAdditionalMetricsToRetainV2(const Aws::Vector<MetricToRetain>& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = value; }
117 inline void SetAdditionalMetricsToRetainV2(Aws::Vector<MetricToRetain>&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = std::move(value); }
120 inline UpdateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(const MetricToRetain& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(value); return *this; }
121 inline UpdateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(MetricToRetain&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(std::move(value)); return *this; }
123
125
130 inline bool GetDeleteBehaviors() const{ return m_deleteBehaviors; }
131 inline bool DeleteBehaviorsHasBeenSet() const { return m_deleteBehaviorsHasBeenSet; }
132 inline void SetDeleteBehaviors(bool value) { m_deleteBehaviorsHasBeenSet = true; m_deleteBehaviors = value; }
133 inline UpdateSecurityProfileRequest& WithDeleteBehaviors(bool value) { SetDeleteBehaviors(value); return *this;}
135
137
142 inline bool GetDeleteAlertTargets() const{ return m_deleteAlertTargets; }
143 inline bool DeleteAlertTargetsHasBeenSet() const { return m_deleteAlertTargetsHasBeenSet; }
144 inline void SetDeleteAlertTargets(bool value) { m_deleteAlertTargetsHasBeenSet = true; m_deleteAlertTargets = value; }
147
149
154 inline bool GetDeleteAdditionalMetricsToRetain() const{ return m_deleteAdditionalMetricsToRetain; }
155 inline bool DeleteAdditionalMetricsToRetainHasBeenSet() const { return m_deleteAdditionalMetricsToRetainHasBeenSet; }
156 inline void SetDeleteAdditionalMetricsToRetain(bool value) { m_deleteAdditionalMetricsToRetainHasBeenSet = true; m_deleteAdditionalMetricsToRetain = value; }
159
161
167 inline long long GetExpectedVersion() const{ return m_expectedVersion; }
168 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
169 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
170 inline UpdateSecurityProfileRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
172
174
177 inline const MetricsExportConfig& GetMetricsExportConfig() const{ return m_metricsExportConfig; }
178 inline bool MetricsExportConfigHasBeenSet() const { return m_metricsExportConfigHasBeenSet; }
179 inline void SetMetricsExportConfig(const MetricsExportConfig& value) { m_metricsExportConfigHasBeenSet = true; m_metricsExportConfig = value; }
180 inline void SetMetricsExportConfig(MetricsExportConfig&& value) { m_metricsExportConfigHasBeenSet = true; m_metricsExportConfig = std::move(value); }
184
186
189 inline bool GetDeleteMetricsExportConfig() const{ return m_deleteMetricsExportConfig; }
190 inline bool DeleteMetricsExportConfigHasBeenSet() const { return m_deleteMetricsExportConfigHasBeenSet; }
191 inline void SetDeleteMetricsExportConfig(bool value) { m_deleteMetricsExportConfigHasBeenSet = true; m_deleteMetricsExportConfig = value; }
194 private:
195
196 Aws::String m_securityProfileName;
197 bool m_securityProfileNameHasBeenSet = false;
198
199 Aws::String m_securityProfileDescription;
200 bool m_securityProfileDescriptionHasBeenSet = false;
201
202 Aws::Vector<Behavior> m_behaviors;
203 bool m_behaviorsHasBeenSet = false;
204
206 bool m_alertTargetsHasBeenSet = false;
207
208 Aws::Vector<MetricToRetain> m_additionalMetricsToRetainV2;
209 bool m_additionalMetricsToRetainV2HasBeenSet = false;
210
211 bool m_deleteBehaviors;
212 bool m_deleteBehaviorsHasBeenSet = false;
213
214 bool m_deleteAlertTargets;
215 bool m_deleteAlertTargetsHasBeenSet = false;
216
217 bool m_deleteAdditionalMetricsToRetain;
218 bool m_deleteAdditionalMetricsToRetainHasBeenSet = false;
219
220 long long m_expectedVersion;
221 bool m_expectedVersionHasBeenSet = false;
222
223 MetricsExportConfig m_metricsExportConfig;
224 bool m_metricsExportConfigHasBeenSet = false;
225
226 bool m_deleteMetricsExportConfig;
227 bool m_deleteMetricsExportConfigHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace IoT
232} // namespace Aws
UpdateSecurityProfileRequest & WithSecurityProfileName(const char *value)
void SetBehaviors(const Aws::Vector< Behavior > &value)
UpdateSecurityProfileRequest & WithSecurityProfileDescription(const char *value)
UpdateSecurityProfileRequest & WithSecurityProfileDescription(Aws::String &&value)
UpdateSecurityProfileRequest & WithBehaviors(const Aws::Vector< Behavior > &value)
UpdateSecurityProfileRequest & AddAdditionalMetricsToRetainV2(const MetricToRetain &value)
UpdateSecurityProfileRequest & WithDeleteAlertTargets(bool value)
void SetMetricsExportConfig(const MetricsExportConfig &value)
void SetAlertTargets(const Aws::Map< AlertTargetType, AlertTarget > &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Behavior > & GetBehaviors() const
UpdateSecurityProfileRequest & WithAdditionalMetricsToRetainV2(Aws::Vector< MetricToRetain > &&value)
UpdateSecurityProfileRequest & WithBehaviors(Aws::Vector< Behavior > &&value)
UpdateSecurityProfileRequest & AddAlertTargets(AlertTargetType &&key, const AlertTarget &value)
UpdateSecurityProfileRequest & AddAlertTargets(const AlertTargetType &key, const AlertTarget &value)
UpdateSecurityProfileRequest & WithDeleteAdditionalMetricsToRetain(bool value)
const Aws::Map< AlertTargetType, AlertTarget > & GetAlertTargets() const
UpdateSecurityProfileRequest & AddAlertTargets(const AlertTargetType &key, AlertTarget &&value)
UpdateSecurityProfileRequest & WithAlertTargets(Aws::Map< AlertTargetType, AlertTarget > &&value)
UpdateSecurityProfileRequest & WithAdditionalMetricsToRetainV2(const Aws::Vector< MetricToRetain > &value)
UpdateSecurityProfileRequest & WithSecurityProfileName(const Aws::String &value)
UpdateSecurityProfileRequest & WithMetricsExportConfig(const MetricsExportConfig &value)
UpdateSecurityProfileRequest & WithAlertTargets(const Aws::Map< AlertTargetType, AlertTarget > &value)
UpdateSecurityProfileRequest & AddBehaviors(Behavior &&value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetAdditionalMetricsToRetainV2(Aws::Vector< MetricToRetain > &&value)
UpdateSecurityProfileRequest & AddBehaviors(const Behavior &value)
UpdateSecurityProfileRequest & WithSecurityProfileName(Aws::String &&value)
UpdateSecurityProfileRequest & WithMetricsExportConfig(MetricsExportConfig &&value)
UpdateSecurityProfileRequest & WithDeleteMetricsExportConfig(bool value)
UpdateSecurityProfileRequest & AddAdditionalMetricsToRetainV2(MetricToRetain &&value)
void SetAdditionalMetricsToRetainV2(const Aws::Vector< MetricToRetain > &value)
UpdateSecurityProfileRequest & AddAlertTargets(AlertTargetType &&key, AlertTarget &&value)
const MetricsExportConfig & GetMetricsExportConfig() const
UpdateSecurityProfileRequest & WithSecurityProfileDescription(const Aws::String &value)
void SetAlertTargets(Aws::Map< AlertTargetType, AlertTarget > &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateSecurityProfileRequest & WithExpectedVersion(long long value)
UpdateSecurityProfileRequest & WithDeleteBehaviors(bool value)
const Aws::Vector< MetricToRetain > & GetAdditionalMetricsToRetainV2() const
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