AWS SDK for C++  1.9.129
AWS SDK for C++
ViolationEvent.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace IoT
28 {
29 namespace Model
30 {
31 
39  {
40  public:
45 
46 
50  inline const Aws::String& GetViolationId() const{ return m_violationId; }
51 
55  inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
56 
60  inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; }
61 
65  inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); }
66 
70  inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); }
71 
75  inline ViolationEvent& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;}
76 
80  inline ViolationEvent& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;}
81 
85  inline ViolationEvent& WithViolationId(const char* value) { SetViolationId(value); return *this;}
86 
87 
91  inline const Aws::String& GetThingName() const{ return m_thingName; }
92 
96  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
97 
101  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
102 
106  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
107 
111  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
112 
116  inline ViolationEvent& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
117 
121  inline ViolationEvent& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
122 
126  inline ViolationEvent& WithThingName(const char* value) { SetThingName(value); return *this;}
127 
128 
132  inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
133 
137  inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
138 
142  inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
143 
147  inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
148 
152  inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
153 
157  inline ViolationEvent& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
158 
162  inline ViolationEvent& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
163 
167  inline ViolationEvent& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
168 
169 
173  inline const Behavior& GetBehavior() const{ return m_behavior; }
174 
178  inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
179 
183  inline void SetBehavior(const Behavior& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
184 
188  inline void SetBehavior(Behavior&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
189 
193  inline ViolationEvent& WithBehavior(const Behavior& value) { SetBehavior(value); return *this;}
194 
198  inline ViolationEvent& WithBehavior(Behavior&& value) { SetBehavior(std::move(value)); return *this;}
199 
200 
204  inline const MetricValue& GetMetricValue() const{ return m_metricValue; }
205 
209  inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
210 
214  inline void SetMetricValue(const MetricValue& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
215 
219  inline void SetMetricValue(MetricValue&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::move(value); }
220 
224  inline ViolationEvent& WithMetricValue(const MetricValue& value) { SetMetricValue(value); return *this;}
225 
229  inline ViolationEvent& WithMetricValue(MetricValue&& value) { SetMetricValue(std::move(value)); return *this;}
230 
231 
235  inline const ViolationEventAdditionalInfo& GetViolationEventAdditionalInfo() const{ return m_violationEventAdditionalInfo; }
236 
240  inline bool ViolationEventAdditionalInfoHasBeenSet() const { return m_violationEventAdditionalInfoHasBeenSet; }
241 
245  inline void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = value; }
246 
250  inline void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = std::move(value); }
251 
255  inline ViolationEvent& WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { SetViolationEventAdditionalInfo(value); return *this;}
256 
260  inline ViolationEvent& WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { SetViolationEventAdditionalInfo(std::move(value)); return *this;}
261 
262 
266  inline const ViolationEventType& GetViolationEventType() const{ return m_violationEventType; }
267 
271  inline bool ViolationEventTypeHasBeenSet() const { return m_violationEventTypeHasBeenSet; }
272 
276  inline void SetViolationEventType(const ViolationEventType& value) { m_violationEventTypeHasBeenSet = true; m_violationEventType = value; }
277 
281  inline void SetViolationEventType(ViolationEventType&& value) { m_violationEventTypeHasBeenSet = true; m_violationEventType = std::move(value); }
282 
286  inline ViolationEvent& WithViolationEventType(const ViolationEventType& value) { SetViolationEventType(value); return *this;}
287 
291  inline ViolationEvent& WithViolationEventType(ViolationEventType&& value) { SetViolationEventType(std::move(value)); return *this;}
292 
293 
297  inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
298 
302  inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
303 
307  inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
308 
312  inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
313 
317  inline ViolationEvent& WithVerificationState(const VerificationState& value) { SetVerificationState(value); return *this;}
318 
322  inline ViolationEvent& WithVerificationState(VerificationState&& value) { SetVerificationState(std::move(value)); return *this;}
323 
324 
328  inline const Aws::String& GetVerificationStateDescription() const{ return m_verificationStateDescription; }
329 
333  inline bool VerificationStateDescriptionHasBeenSet() const { return m_verificationStateDescriptionHasBeenSet; }
334 
338  inline void SetVerificationStateDescription(const Aws::String& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = value; }
339 
343  inline void SetVerificationStateDescription(Aws::String&& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = std::move(value); }
344 
348  inline void SetVerificationStateDescription(const char* value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription.assign(value); }
349 
353  inline ViolationEvent& WithVerificationStateDescription(const Aws::String& value) { SetVerificationStateDescription(value); return *this;}
354 
358  inline ViolationEvent& WithVerificationStateDescription(Aws::String&& value) { SetVerificationStateDescription(std::move(value)); return *this;}
359 
363  inline ViolationEvent& WithVerificationStateDescription(const char* value) { SetVerificationStateDescription(value); return *this;}
364 
365 
369  inline const Aws::Utils::DateTime& GetViolationEventTime() const{ return m_violationEventTime; }
370 
374  inline bool ViolationEventTimeHasBeenSet() const { return m_violationEventTimeHasBeenSet; }
375 
379  inline void SetViolationEventTime(const Aws::Utils::DateTime& value) { m_violationEventTimeHasBeenSet = true; m_violationEventTime = value; }
380 
384  inline void SetViolationEventTime(Aws::Utils::DateTime&& value) { m_violationEventTimeHasBeenSet = true; m_violationEventTime = std::move(value); }
385 
389  inline ViolationEvent& WithViolationEventTime(const Aws::Utils::DateTime& value) { SetViolationEventTime(value); return *this;}
390 
394  inline ViolationEvent& WithViolationEventTime(Aws::Utils::DateTime&& value) { SetViolationEventTime(std::move(value)); return *this;}
395 
396  private:
397 
398  Aws::String m_violationId;
399  bool m_violationIdHasBeenSet;
400 
401  Aws::String m_thingName;
402  bool m_thingNameHasBeenSet;
403 
404  Aws::String m_securityProfileName;
405  bool m_securityProfileNameHasBeenSet;
406 
407  Behavior m_behavior;
408  bool m_behaviorHasBeenSet;
409 
410  MetricValue m_metricValue;
411  bool m_metricValueHasBeenSet;
412 
413  ViolationEventAdditionalInfo m_violationEventAdditionalInfo;
414  bool m_violationEventAdditionalInfoHasBeenSet;
415 
416  ViolationEventType m_violationEventType;
417  bool m_violationEventTypeHasBeenSet;
418 
419  VerificationState m_verificationState;
420  bool m_verificationStateHasBeenSet;
421 
422  Aws::String m_verificationStateDescription;
423  bool m_verificationStateDescriptionHasBeenSet;
424 
425  Aws::Utils::DateTime m_violationEventTime;
426  bool m_violationEventTimeHasBeenSet;
427  };
428 
429 } // namespace Model
430 } // namespace IoT
431 } // namespace Aws
Aws::IoT::Model::ViolationEvent::MetricValueHasBeenSet
bool MetricValueHasBeenSet() const
Definition: ViolationEvent.h:209
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::ViolationEvent::SetViolationEventTime
void SetViolationEventTime(Aws::Utils::DateTime &&value)
Definition: ViolationEvent.h:384
Aws::IoT::Model::ViolationEvent::GetVerificationStateDescription
const Aws::String & GetVerificationStateDescription() const
Definition: ViolationEvent.h:328
Aws::IoT::Model::ViolationEvent::SetViolationEventAdditionalInfo
void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
Definition: ViolationEvent.h:245
Aws::IoT::Model::ViolationEvent::WithSecurityProfileName
ViolationEvent & WithSecurityProfileName(Aws::String &&value)
Definition: ViolationEvent.h:162
Aws::IoT::Model::ViolationEvent::WithVerificationStateDescription
ViolationEvent & WithVerificationStateDescription(Aws::String &&value)
Definition: ViolationEvent.h:358
Aws::IoT::Model::ViolationEvent::SetViolationEventType
void SetViolationEventType(const ViolationEventType &value)
Definition: ViolationEvent.h:276
Aws::IoT::Model::ViolationEvent::WithViolationEventAdditionalInfo
ViolationEvent & WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
Definition: ViolationEvent.h:255
Aws::IoT::Model::ViolationEvent::GetBehavior
const Behavior & GetBehavior() const
Definition: ViolationEvent.h:173
Aws::IoT::Model::ViolationEvent::SetThingName
void SetThingName(const Aws::String &value)
Definition: ViolationEvent.h:101
Aws::IoT::Model::ViolationEvent::GetVerificationState
const VerificationState & GetVerificationState() const
Definition: ViolationEvent.h:297
Aws::IoT::Model::ViolationEvent::GetMetricValue
const MetricValue & GetMetricValue() const
Definition: ViolationEvent.h:204
Aws::IoT::Model::ViolationEvent::SetSecurityProfileName
void SetSecurityProfileName(Aws::String &&value)
Definition: ViolationEvent.h:147
Aws::IoT::Model::ViolationEvent::WithViolationEventAdditionalInfo
ViolationEvent & WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
Definition: ViolationEvent.h:260
Aws::IoT::Model::ViolationEvent::SetViolationId
void SetViolationId(const char *value)
Definition: ViolationEvent.h:70
DateTime.h
Aws::IoT::Model::ViolationEvent::SetThingName
void SetThingName(const char *value)
Definition: ViolationEvent.h:111
Aws::IoT::Model::ViolationEvent::ViolationEventTimeHasBeenSet
bool ViolationEventTimeHasBeenSet() const
Definition: ViolationEvent.h:374
Aws::IoT::Model::MetricValue
Definition: MetricValue.h:34
Aws::IoT::Model::ViolationEvent::SetSecurityProfileName
void SetSecurityProfileName(const char *value)
Definition: ViolationEvent.h:152
Aws::IoT::Model::ViolationEvent::SetVerificationState
void SetVerificationState(const VerificationState &value)
Definition: ViolationEvent.h:307
Aws::IoT::Model::ViolationEvent::WithSecurityProfileName
ViolationEvent & WithSecurityProfileName(const Aws::String &value)
Definition: ViolationEvent.h:157
Aws::IoT::Model::ViolationEvent::SetViolationId
void SetViolationId(const Aws::String &value)
Definition: ViolationEvent.h:60
Aws::IoT::Model::ViolationEvent::SetVerificationState
void SetVerificationState(VerificationState &&value)
Definition: ViolationEvent.h:312
ViolationEventAdditionalInfo.h
Aws::IoT::Model::ViolationEvent::WithViolationEventTime
ViolationEvent & WithViolationEventTime(const Aws::Utils::DateTime &value)
Definition: ViolationEvent.h:389
Aws::IoT::Model::ViolationEvent::WithViolationEventType
ViolationEvent & WithViolationEventType(const ViolationEventType &value)
Definition: ViolationEvent.h:286
Aws::IoT::Model::ViolationEvent::WithVerificationState
ViolationEvent & WithVerificationState(VerificationState &&value)
Definition: ViolationEvent.h:322
Aws::IoT::Model::ViolationEvent
Definition: ViolationEvent.h:39
Aws::IoT::Model::ViolationEvent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ViolationEvent::SetBehavior
void SetBehavior(Behavior &&value)
Definition: ViolationEvent.h:188
Aws::IoT::Model::ViolationEvent::SetSecurityProfileName
void SetSecurityProfileName(const Aws::String &value)
Definition: ViolationEvent.h:142
Aws::IoT::Model::ViolationEvent::GetViolationEventTime
const Aws::Utils::DateTime & GetViolationEventTime() const
Definition: ViolationEvent.h:369
Aws::IoT::Model::ViolationEvent::SetViolationEventAdditionalInfo
void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
Definition: ViolationEvent.h:250
Aws::IoT::Model::ViolationEvent::WithThingName
ViolationEvent & WithThingName(Aws::String &&value)
Definition: ViolationEvent.h:121
Aws::IoT::Model::ViolationEvent::SetViolationEventType
void SetViolationEventType(ViolationEventType &&value)
Definition: ViolationEvent.h:281
Aws::IoT::Model::ViolationEvent::SetVerificationStateDescription
void SetVerificationStateDescription(const char *value)
Definition: ViolationEvent.h:348
VerificationState.h
MetricValue.h
Aws::IoT::Model::ViolationEvent::WithMetricValue
ViolationEvent & WithMetricValue(const MetricValue &value)
Definition: ViolationEvent.h:224
Aws::IoT::Model::ViolationEvent::GetSecurityProfileName
const Aws::String & GetSecurityProfileName() const
Definition: ViolationEvent.h:132
Aws::IoT::Model::ViolationEvent::WithViolationEventType
ViolationEvent & WithViolationEventType(ViolationEventType &&value)
Definition: ViolationEvent.h:291
Aws::IoT::Model::ViolationEvent::WithViolationEventTime
ViolationEvent & WithViolationEventTime(Aws::Utils::DateTime &&value)
Definition: ViolationEvent.h:394
Aws::IoT::Model::ViolationEvent::WithVerificationStateDescription
ViolationEvent & WithVerificationStateDescription(const Aws::String &value)
Definition: ViolationEvent.h:353
Aws::IoT::Model::ViolationEvent::WithVerificationState
ViolationEvent & WithVerificationState(const VerificationState &value)
Definition: ViolationEvent.h:317
Aws::IoT::Model::ViolationEvent::WithBehavior
ViolationEvent & WithBehavior(const Behavior &value)
Definition: ViolationEvent.h:193
Aws::IoT::Model::ViolationEvent::SecurityProfileNameHasBeenSet
bool SecurityProfileNameHasBeenSet() const
Definition: ViolationEvent.h:137
Aws::IoT::Model::ViolationEvent::SetMetricValue
void SetMetricValue(MetricValue &&value)
Definition: ViolationEvent.h:219
Aws::IoT::Model::ViolationEvent::SetViolationEventTime
void SetViolationEventTime(const Aws::Utils::DateTime &value)
Definition: ViolationEvent.h:379
Aws::IoT::Model::ViolationEvent::ViolationEvent
ViolationEvent()
Aws::IoT::Model::ViolationEvent::ViolationEventTypeHasBeenSet
bool ViolationEventTypeHasBeenSet() const
Definition: ViolationEvent.h:271
Aws::IoT::Model::ViolationEvent::SetBehavior
void SetBehavior(const Behavior &value)
Definition: ViolationEvent.h:183
Aws::IoT::Model::ViolationEvent::WithVerificationStateDescription
ViolationEvent & WithVerificationStateDescription(const char *value)
Definition: ViolationEvent.h:363
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::ViolationEvent::WithSecurityProfileName
ViolationEvent & WithSecurityProfileName(const char *value)
Definition: ViolationEvent.h:167
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ViolationEvent::WithBehavior
ViolationEvent & WithBehavior(Behavior &&value)
Definition: ViolationEvent.h:198
Aws::IoT::Model::ViolationEvent::GetViolationEventType
const ViolationEventType & GetViolationEventType() const
Definition: ViolationEvent.h:266
Aws::IoT::Model::ViolationEvent::WithThingName
ViolationEvent & WithThingName(const char *value)
Definition: ViolationEvent.h:126
Aws::IoT::Model::ViolationEvent::GetViolationEventAdditionalInfo
const ViolationEventAdditionalInfo & GetViolationEventAdditionalInfo() const
Definition: ViolationEvent.h:235
Aws::IoT::Model::ViolationEvent::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ViolationEvent.h:96
Aws::IoT::Model::ViolationEvent::WithViolationId
ViolationEvent & WithViolationId(Aws::String &&value)
Definition: ViolationEvent.h:80
Aws::IoT::Model::ViolationEvent::GetViolationId
const Aws::String & GetViolationId() const
Definition: ViolationEvent.h:50
Aws::IoT::Model::ViolationEvent::operator=
ViolationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ViolationEvent::WithViolationId
ViolationEvent & WithViolationId(const Aws::String &value)
Definition: ViolationEvent.h:75
Aws::IoT::Model::ViolationEvent::WithMetricValue
ViolationEvent & WithMetricValue(MetricValue &&value)
Definition: ViolationEvent.h:229
ViolationEventType.h
Aws::IoT::Model::ViolationEvent::ViolationEventAdditionalInfoHasBeenSet
bool ViolationEventAdditionalInfoHasBeenSet() const
Definition: ViolationEvent.h:240
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ViolationEvent::SetMetricValue
void SetMetricValue(const MetricValue &value)
Definition: ViolationEvent.h:214
Aws::IoT::Model::ViolationEvent::GetThingName
const Aws::String & GetThingName() const
Definition: ViolationEvent.h:91
Aws::IoT::Model::ViolationEvent::SetViolationId
void SetViolationId(Aws::String &&value)
Definition: ViolationEvent.h:65
Aws::IoT::Model::ViolationEvent::WithViolationId
ViolationEvent & WithViolationId(const char *value)
Definition: ViolationEvent.h:85
Behavior.h
Aws::IoT::Model::Behavior
Definition: Behavior.h:34
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ViolationEvent::WithThingName
ViolationEvent & WithThingName(const Aws::String &value)
Definition: ViolationEvent.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ViolationEvent::ViolationEvent
ViolationEvent(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::VerificationState
VerificationState
Definition: VerificationState.h:17
Aws::IoT::Model::ViolationEvent::BehaviorHasBeenSet
bool BehaviorHasBeenSet() const
Definition: ViolationEvent.h:178
Aws::IoT::Model::ViolationEvent::VerificationStateHasBeenSet
bool VerificationStateHasBeenSet() const
Definition: ViolationEvent.h:302
Aws::IoT::Model::ViolationEvent::SetThingName
void SetThingName(Aws::String &&value)
Definition: ViolationEvent.h:106
Aws::IoT::Model::ViolationEvent::VerificationStateDescriptionHasBeenSet
bool VerificationStateDescriptionHasBeenSet() const
Definition: ViolationEvent.h:333
Aws::IoT::Model::ViolationEventType
ViolationEventType
Definition: ViolationEventType.h:17
Aws::IoT::Model::ViolationEvent::SetVerificationStateDescription
void SetVerificationStateDescription(Aws::String &&value)
Definition: ViolationEvent.h:343
Aws::IoT::Model::ViolationEvent::ViolationIdHasBeenSet
bool ViolationIdHasBeenSet() const
Definition: ViolationEvent.h:55
Aws::IoT::Model::ViolationEvent::SetVerificationStateDescription
void SetVerificationStateDescription(const Aws::String &value)
Definition: ViolationEvent.h:338
Aws::IoT::Model::ViolationEventAdditionalInfo
Definition: ViolationEventAdditionalInfo.h:32
IoT_EXPORTS.h