AWS SDK for C++  1.9.129
AWS SDK for C++
ActiveViolation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace IoT
27 {
28 namespace Model
29 {
30 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetViolationId() const{ return m_violationId; }
50 
54  inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
55 
59  inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; }
60 
64  inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); }
65 
69  inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); }
70 
74  inline ActiveViolation& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;}
75 
79  inline ActiveViolation& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;}
80 
84  inline ActiveViolation& WithViolationId(const char* value) { SetViolationId(value); return *this;}
85 
86 
90  inline const Aws::String& GetThingName() const{ return m_thingName; }
91 
95  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
96 
100  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
101 
105  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
106 
110  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
111 
115  inline ActiveViolation& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
116 
120  inline ActiveViolation& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
121 
125  inline ActiveViolation& WithThingName(const char* value) { SetThingName(value); return *this;}
126 
127 
131  inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
132 
136  inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
137 
141  inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
142 
146  inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
147 
151  inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
152 
156  inline ActiveViolation& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
157 
161  inline ActiveViolation& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
162 
166  inline ActiveViolation& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
167 
168 
172  inline const Behavior& GetBehavior() const{ return m_behavior; }
173 
177  inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
178 
182  inline void SetBehavior(const Behavior& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
183 
187  inline void SetBehavior(Behavior&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
188 
192  inline ActiveViolation& WithBehavior(const Behavior& value) { SetBehavior(value); return *this;}
193 
197  inline ActiveViolation& WithBehavior(Behavior&& value) { SetBehavior(std::move(value)); return *this;}
198 
199 
204  inline const MetricValue& GetLastViolationValue() const{ return m_lastViolationValue; }
205 
210  inline bool LastViolationValueHasBeenSet() const { return m_lastViolationValueHasBeenSet; }
211 
216  inline void SetLastViolationValue(const MetricValue& value) { m_lastViolationValueHasBeenSet = true; m_lastViolationValue = value; }
217 
222  inline void SetLastViolationValue(MetricValue&& value) { m_lastViolationValueHasBeenSet = true; m_lastViolationValue = std::move(value); }
223 
228  inline ActiveViolation& WithLastViolationValue(const MetricValue& value) { SetLastViolationValue(value); return *this;}
229 
234  inline ActiveViolation& WithLastViolationValue(MetricValue&& value) { SetLastViolationValue(std::move(value)); return *this;}
235 
236 
240  inline const ViolationEventAdditionalInfo& GetViolationEventAdditionalInfo() const{ return m_violationEventAdditionalInfo; }
241 
245  inline bool ViolationEventAdditionalInfoHasBeenSet() const { return m_violationEventAdditionalInfoHasBeenSet; }
246 
250  inline void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = value; }
251 
255  inline void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = std::move(value); }
256 
260  inline ActiveViolation& WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { SetViolationEventAdditionalInfo(value); return *this;}
261 
265  inline ActiveViolation& WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { SetViolationEventAdditionalInfo(std::move(value)); return *this;}
266 
267 
271  inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
272 
276  inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
277 
281  inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
282 
286  inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
287 
291  inline ActiveViolation& WithVerificationState(const VerificationState& value) { SetVerificationState(value); return *this;}
292 
296  inline ActiveViolation& WithVerificationState(VerificationState&& value) { SetVerificationState(std::move(value)); return *this;}
297 
298 
302  inline const Aws::String& GetVerificationStateDescription() const{ return m_verificationStateDescription; }
303 
307  inline bool VerificationStateDescriptionHasBeenSet() const { return m_verificationStateDescriptionHasBeenSet; }
308 
312  inline void SetVerificationStateDescription(const Aws::String& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = value; }
313 
317  inline void SetVerificationStateDescription(Aws::String&& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = std::move(value); }
318 
322  inline void SetVerificationStateDescription(const char* value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription.assign(value); }
323 
327  inline ActiveViolation& WithVerificationStateDescription(const Aws::String& value) { SetVerificationStateDescription(value); return *this;}
328 
332  inline ActiveViolation& WithVerificationStateDescription(Aws::String&& value) { SetVerificationStateDescription(std::move(value)); return *this;}
333 
337  inline ActiveViolation& WithVerificationStateDescription(const char* value) { SetVerificationStateDescription(value); return *this;}
338 
339 
343  inline const Aws::Utils::DateTime& GetLastViolationTime() const{ return m_lastViolationTime; }
344 
348  inline bool LastViolationTimeHasBeenSet() const { return m_lastViolationTimeHasBeenSet; }
349 
353  inline void SetLastViolationTime(const Aws::Utils::DateTime& value) { m_lastViolationTimeHasBeenSet = true; m_lastViolationTime = value; }
354 
358  inline void SetLastViolationTime(Aws::Utils::DateTime&& value) { m_lastViolationTimeHasBeenSet = true; m_lastViolationTime = std::move(value); }
359 
363  inline ActiveViolation& WithLastViolationTime(const Aws::Utils::DateTime& value) { SetLastViolationTime(value); return *this;}
364 
368  inline ActiveViolation& WithLastViolationTime(Aws::Utils::DateTime&& value) { SetLastViolationTime(std::move(value)); return *this;}
369 
370 
374  inline const Aws::Utils::DateTime& GetViolationStartTime() const{ return m_violationStartTime; }
375 
379  inline bool ViolationStartTimeHasBeenSet() const { return m_violationStartTimeHasBeenSet; }
380 
384  inline void SetViolationStartTime(const Aws::Utils::DateTime& value) { m_violationStartTimeHasBeenSet = true; m_violationStartTime = value; }
385 
389  inline void SetViolationStartTime(Aws::Utils::DateTime&& value) { m_violationStartTimeHasBeenSet = true; m_violationStartTime = std::move(value); }
390 
394  inline ActiveViolation& WithViolationStartTime(const Aws::Utils::DateTime& value) { SetViolationStartTime(value); return *this;}
395 
399  inline ActiveViolation& WithViolationStartTime(Aws::Utils::DateTime&& value) { SetViolationStartTime(std::move(value)); return *this;}
400 
401  private:
402 
403  Aws::String m_violationId;
404  bool m_violationIdHasBeenSet;
405 
406  Aws::String m_thingName;
407  bool m_thingNameHasBeenSet;
408 
409  Aws::String m_securityProfileName;
410  bool m_securityProfileNameHasBeenSet;
411 
412  Behavior m_behavior;
413  bool m_behaviorHasBeenSet;
414 
415  MetricValue m_lastViolationValue;
416  bool m_lastViolationValueHasBeenSet;
417 
418  ViolationEventAdditionalInfo m_violationEventAdditionalInfo;
419  bool m_violationEventAdditionalInfoHasBeenSet;
420 
421  VerificationState m_verificationState;
422  bool m_verificationStateHasBeenSet;
423 
424  Aws::String m_verificationStateDescription;
425  bool m_verificationStateDescriptionHasBeenSet;
426 
427  Aws::Utils::DateTime m_lastViolationTime;
428  bool m_lastViolationTimeHasBeenSet;
429 
430  Aws::Utils::DateTime m_violationStartTime;
431  bool m_violationStartTimeHasBeenSet;
432  };
433 
434 } // namespace Model
435 } // namespace IoT
436 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::ActiveViolation::WithThingName
ActiveViolation & WithThingName(const Aws::String &value)
Definition: ActiveViolation.h:115
Aws::IoT::Model::ActiveViolation::WithLastViolationTime
ActiveViolation & WithLastViolationTime(Aws::Utils::DateTime &&value)
Definition: ActiveViolation.h:368
Aws::IoT::Model::ActiveViolation::SetVerificationStateDescription
void SetVerificationStateDescription(const char *value)
Definition: ActiveViolation.h:322
Aws::IoT::Model::ActiveViolation::GetLastViolationValue
const MetricValue & GetLastViolationValue() const
Definition: ActiveViolation.h:204
Aws::IoT::Model::ActiveViolation::SetBehavior
void SetBehavior(const Behavior &value)
Definition: ActiveViolation.h:182
Aws::IoT::Model::ActiveViolation::GetViolationEventAdditionalInfo
const ViolationEventAdditionalInfo & GetViolationEventAdditionalInfo() const
Definition: ActiveViolation.h:240
Aws::IoT::Model::ActiveViolation::LastViolationTimeHasBeenSet
bool LastViolationTimeHasBeenSet() const
Definition: ActiveViolation.h:348
Aws::IoT::Model::ActiveViolation::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ActiveViolation::SetViolationEventAdditionalInfo
void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
Definition: ActiveViolation.h:250
Aws::IoT::Model::ActiveViolation::VerificationStateDescriptionHasBeenSet
bool VerificationStateDescriptionHasBeenSet() const
Definition: ActiveViolation.h:307
Aws::IoT::Model::ActiveViolation::SetViolationEventAdditionalInfo
void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
Definition: ActiveViolation.h:255
Aws::IoT::Model::ActiveViolation::SetViolationId
void SetViolationId(const char *value)
Definition: ActiveViolation.h:69
Aws::IoT::Model::ActiveViolation::SetLastViolationValue
void SetLastViolationValue(const MetricValue &value)
Definition: ActiveViolation.h:216
Aws::IoT::Model::ActiveViolation::SetViolationId
void SetViolationId(Aws::String &&value)
Definition: ActiveViolation.h:64
Aws::IoT::Model::ActiveViolation::WithVerificationState
ActiveViolation & WithVerificationState(const VerificationState &value)
Definition: ActiveViolation.h:291
Aws::IoT::Model::ActiveViolation::WithVerificationStateDescription
ActiveViolation & WithVerificationStateDescription(Aws::String &&value)
Definition: ActiveViolation.h:332
Aws::IoT::Model::ActiveViolation
Definition: ActiveViolation.h:38
Aws::IoT::Model::ActiveViolation::WithSecurityProfileName
ActiveViolation & WithSecurityProfileName(Aws::String &&value)
Definition: ActiveViolation.h:161
Aws::IoT::Model::ActiveViolation::SetVerificationState
void SetVerificationState(VerificationState &&value)
Definition: ActiveViolation.h:286
Aws::IoT::Model::ActiveViolation::GetVerificationStateDescription
const Aws::String & GetVerificationStateDescription() const
Definition: ActiveViolation.h:302
Aws::IoT::Model::ActiveViolation::SetViolationStartTime
void SetViolationStartTime(Aws::Utils::DateTime &&value)
Definition: ActiveViolation.h:389
DateTime.h
Aws::IoT::Model::ActiveViolation::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ActiveViolation.h:95
Aws::IoT::Model::ActiveViolation::ViolationStartTimeHasBeenSet
bool ViolationStartTimeHasBeenSet() const
Definition: ActiveViolation.h:379
Aws::IoT::Model::MetricValue
Definition: MetricValue.h:34
Aws::IoT::Model::ActiveViolation::GetBehavior
const Behavior & GetBehavior() const
Definition: ActiveViolation.h:172
Aws::IoT::Model::ActiveViolation::WithBehavior
ActiveViolation & WithBehavior(const Behavior &value)
Definition: ActiveViolation.h:192
Aws::IoT::Model::ActiveViolation::WithLastViolationTime
ActiveViolation & WithLastViolationTime(const Aws::Utils::DateTime &value)
Definition: ActiveViolation.h:363
ViolationEventAdditionalInfo.h
Aws::IoT::Model::ActiveViolation::GetViolationStartTime
const Aws::Utils::DateTime & GetViolationStartTime() const
Definition: ActiveViolation.h:374
Aws::IoT::Model::ActiveViolation::ActiveViolation
ActiveViolation()
Aws::IoT::Model::ActiveViolation::SetLastViolationValue
void SetLastViolationValue(MetricValue &&value)
Definition: ActiveViolation.h:222
Aws::IoT::Model::ActiveViolation::LastViolationValueHasBeenSet
bool LastViolationValueHasBeenSet() const
Definition: ActiveViolation.h:210
Aws::IoT::Model::ActiveViolation::SetLastViolationTime
void SetLastViolationTime(const Aws::Utils::DateTime &value)
Definition: ActiveViolation.h:353
Aws::IoT::Model::ActiveViolation::WithVerificationStateDescription
ActiveViolation & WithVerificationStateDescription(const char *value)
Definition: ActiveViolation.h:337
VerificationState.h
MetricValue.h
Aws::IoT::Model::ActiveViolation::WithVerificationStateDescription
ActiveViolation & WithVerificationStateDescription(const Aws::String &value)
Definition: ActiveViolation.h:327
Aws::IoT::Model::ActiveViolation::SetLastViolationTime
void SetLastViolationTime(Aws::Utils::DateTime &&value)
Definition: ActiveViolation.h:358
Aws::IoT::Model::ActiveViolation::GetThingName
const Aws::String & GetThingName() const
Definition: ActiveViolation.h:90
Aws::IoT::Model::ActiveViolation::WithVerificationState
ActiveViolation & WithVerificationState(VerificationState &&value)
Definition: ActiveViolation.h:296
Aws::IoT::Model::ActiveViolation::SetThingName
void SetThingName(const Aws::String &value)
Definition: ActiveViolation.h:100
Aws::IoT::Model::ActiveViolation::SetSecurityProfileName
void SetSecurityProfileName(const Aws::String &value)
Definition: ActiveViolation.h:141
Aws::IoT::Model::ActiveViolation::SecurityProfileNameHasBeenSet
bool SecurityProfileNameHasBeenSet() const
Definition: ActiveViolation.h:136
Aws::IoT::Model::ActiveViolation::ViolationIdHasBeenSet
bool ViolationIdHasBeenSet() const
Definition: ActiveViolation.h:54
Aws::IoT::Model::ActiveViolation::SetThingName
void SetThingName(Aws::String &&value)
Definition: ActiveViolation.h:105
Aws::IoT::Model::ActiveViolation::WithLastViolationValue
ActiveViolation & WithLastViolationValue(MetricValue &&value)
Definition: ActiveViolation.h:234
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::ActiveViolation::SetThingName
void SetThingName(const char *value)
Definition: ActiveViolation.h:110
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ActiveViolation::GetViolationId
const Aws::String & GetViolationId() const
Definition: ActiveViolation.h:49
Aws::IoT::Model::ActiveViolation::WithThingName
ActiveViolation & WithThingName(const char *value)
Definition: ActiveViolation.h:125
Aws::IoT::Model::ActiveViolation::WithSecurityProfileName
ActiveViolation & WithSecurityProfileName(const Aws::String &value)
Definition: ActiveViolation.h:156
Aws::IoT::Model::ActiveViolation::SetVerificationStateDescription
void SetVerificationStateDescription(Aws::String &&value)
Definition: ActiveViolation.h:317
Aws::IoT::Model::ActiveViolation::WithViolationEventAdditionalInfo
ActiveViolation & WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
Definition: ActiveViolation.h:260
Aws::IoT::Model::ActiveViolation::WithSecurityProfileName
ActiveViolation & WithSecurityProfileName(const char *value)
Definition: ActiveViolation.h:166
Aws::IoT::Model::ActiveViolation::GetVerificationState
const VerificationState & GetVerificationState() const
Definition: ActiveViolation.h:271
Aws::IoT::Model::ActiveViolation::WithViolationStartTime
ActiveViolation & WithViolationStartTime(const Aws::Utils::DateTime &value)
Definition: ActiveViolation.h:394
Aws::IoT::Model::ActiveViolation::WithBehavior
ActiveViolation & WithBehavior(Behavior &&value)
Definition: ActiveViolation.h:197
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ActiveViolation::WithViolationId
ActiveViolation & WithViolationId(const char *value)
Definition: ActiveViolation.h:84
Aws::IoT::Model::ActiveViolation::ActiveViolation
ActiveViolation(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ActiveViolation::SetBehavior
void SetBehavior(Behavior &&value)
Definition: ActiveViolation.h:187
Aws::IoT::Model::ActiveViolation::GetSecurityProfileName
const Aws::String & GetSecurityProfileName() const
Definition: ActiveViolation.h:131
Aws::IoT::Model::ActiveViolation::WithThingName
ActiveViolation & WithThingName(Aws::String &&value)
Definition: ActiveViolation.h:120
Behavior.h
Aws::IoT::Model::ActiveViolation::SetSecurityProfileName
void SetSecurityProfileName(const char *value)
Definition: ActiveViolation.h:151
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::ActiveViolation::VerificationStateHasBeenSet
bool VerificationStateHasBeenSet() const
Definition: ActiveViolation.h:276
Aws::IoT::Model::ActiveViolation::WithLastViolationValue
ActiveViolation & WithLastViolationValue(const MetricValue &value)
Definition: ActiveViolation.h:228
Aws::IoT::Model::ActiveViolation::SetSecurityProfileName
void SetSecurityProfileName(Aws::String &&value)
Definition: ActiveViolation.h:146
Aws::IoT::Model::ActiveViolation::WithViolationStartTime
ActiveViolation & WithViolationStartTime(Aws::Utils::DateTime &&value)
Definition: ActiveViolation.h:399
Aws::IoT::Model::VerificationState
VerificationState
Definition: VerificationState.h:17
Aws::IoT::Model::ActiveViolation::SetVerificationState
void SetVerificationState(const VerificationState &value)
Definition: ActiveViolation.h:281
Aws::IoT::Model::ActiveViolation::operator=
ActiveViolation & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ActiveViolation::GetLastViolationTime
const Aws::Utils::DateTime & GetLastViolationTime() const
Definition: ActiveViolation.h:343
Aws::IoT::Model::ActiveViolation::ViolationEventAdditionalInfoHasBeenSet
bool ViolationEventAdditionalInfoHasBeenSet() const
Definition: ActiveViolation.h:245
Aws::IoT::Model::ActiveViolation::BehaviorHasBeenSet
bool BehaviorHasBeenSet() const
Definition: ActiveViolation.h:177
Aws::IoT::Model::ActiveViolation::WithViolationEventAdditionalInfo
ActiveViolation & WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
Definition: ActiveViolation.h:265
Aws::IoT::Model::ActiveViolation::SetVerificationStateDescription
void SetVerificationStateDescription(const Aws::String &value)
Definition: ActiveViolation.h:312
Aws::IoT::Model::ActiveViolation::WithViolationId
ActiveViolation & WithViolationId(Aws::String &&value)
Definition: ActiveViolation.h:79
Aws::IoT::Model::ActiveViolation::SetViolationId
void SetViolationId(const Aws::String &value)
Definition: ActiveViolation.h:59
Aws::IoT::Model::ViolationEventAdditionalInfo
Definition: ViolationEventAdditionalInfo.h:32
Aws::IoT::Model::ActiveViolation::WithViolationId
ActiveViolation & WithViolationId(const Aws::String &value)
Definition: ActiveViolation.h:74
IoT_EXPORTS.h
Aws::IoT::Model::ActiveViolation::SetViolationStartTime
void SetViolationStartTime(const Aws::Utils::DateTime &value)
Definition: ActiveViolation.h:384