AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ViolationEvent.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/Behavior.h>
10#include <aws/iot/model/MetricValue.h>
11#include <aws/iot/model/ViolationEventAdditionalInfo.h>
12#include <aws/iot/model/ViolationEventType.h>
13#include <aws/iot/model/VerificationState.h>
14#include <aws/core/utils/DateTime.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace IoT
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_IOT_API ViolationEvent() = default;
45
46
48
51 inline const Aws::String& GetViolationId() const { return m_violationId; }
52 inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
53 template<typename ViolationIdT = Aws::String>
54 void SetViolationId(ViolationIdT&& value) { m_violationIdHasBeenSet = true; m_violationId = std::forward<ViolationIdT>(value); }
55 template<typename ViolationIdT = Aws::String>
56 ViolationEvent& WithViolationId(ViolationIdT&& value) { SetViolationId(std::forward<ViolationIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetThingName() const { return m_thingName; }
64 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
65 template<typename ThingNameT = Aws::String>
66 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
67 template<typename ThingNameT = Aws::String>
68 ViolationEvent& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
76 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
77 template<typename SecurityProfileNameT = Aws::String>
78 void SetSecurityProfileName(SecurityProfileNameT&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::forward<SecurityProfileNameT>(value); }
79 template<typename SecurityProfileNameT = Aws::String>
80 ViolationEvent& WithSecurityProfileName(SecurityProfileNameT&& value) { SetSecurityProfileName(std::forward<SecurityProfileNameT>(value)); return *this;}
82
84
87 inline const Behavior& GetBehavior() const { return m_behavior; }
88 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
89 template<typename BehaviorT = Behavior>
90 void SetBehavior(BehaviorT&& value) { m_behaviorHasBeenSet = true; m_behavior = std::forward<BehaviorT>(value); }
91 template<typename BehaviorT = Behavior>
92 ViolationEvent& WithBehavior(BehaviorT&& value) { SetBehavior(std::forward<BehaviorT>(value)); return *this;}
94
96
99 inline const MetricValue& GetMetricValue() const { return m_metricValue; }
100 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
101 template<typename MetricValueT = MetricValue>
102 void SetMetricValue(MetricValueT&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::forward<MetricValueT>(value); }
103 template<typename MetricValueT = MetricValue>
104 ViolationEvent& WithMetricValue(MetricValueT&& value) { SetMetricValue(std::forward<MetricValueT>(value)); return *this;}
106
108
111 inline const ViolationEventAdditionalInfo& GetViolationEventAdditionalInfo() const { return m_violationEventAdditionalInfo; }
112 inline bool ViolationEventAdditionalInfoHasBeenSet() const { return m_violationEventAdditionalInfoHasBeenSet; }
113 template<typename ViolationEventAdditionalInfoT = ViolationEventAdditionalInfo>
114 void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfoT&& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = std::forward<ViolationEventAdditionalInfoT>(value); }
115 template<typename ViolationEventAdditionalInfoT = ViolationEventAdditionalInfo>
116 ViolationEvent& WithViolationEventAdditionalInfo(ViolationEventAdditionalInfoT&& value) { SetViolationEventAdditionalInfo(std::forward<ViolationEventAdditionalInfoT>(value)); return *this;}
118
120
123 inline ViolationEventType GetViolationEventType() const { return m_violationEventType; }
124 inline bool ViolationEventTypeHasBeenSet() const { return m_violationEventTypeHasBeenSet; }
125 inline void SetViolationEventType(ViolationEventType value) { m_violationEventTypeHasBeenSet = true; m_violationEventType = value; }
128
130
133 inline VerificationState GetVerificationState() const { return m_verificationState; }
134 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
135 inline void SetVerificationState(VerificationState value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
138
140
143 inline const Aws::String& GetVerificationStateDescription() const { return m_verificationStateDescription; }
144 inline bool VerificationStateDescriptionHasBeenSet() const { return m_verificationStateDescriptionHasBeenSet; }
145 template<typename VerificationStateDescriptionT = Aws::String>
146 void SetVerificationStateDescription(VerificationStateDescriptionT&& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = std::forward<VerificationStateDescriptionT>(value); }
147 template<typename VerificationStateDescriptionT = Aws::String>
148 ViolationEvent& WithVerificationStateDescription(VerificationStateDescriptionT&& value) { SetVerificationStateDescription(std::forward<VerificationStateDescriptionT>(value)); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetViolationEventTime() const { return m_violationEventTime; }
156 inline bool ViolationEventTimeHasBeenSet() const { return m_violationEventTimeHasBeenSet; }
157 template<typename ViolationEventTimeT = Aws::Utils::DateTime>
158 void SetViolationEventTime(ViolationEventTimeT&& value) { m_violationEventTimeHasBeenSet = true; m_violationEventTime = std::forward<ViolationEventTimeT>(value); }
159 template<typename ViolationEventTimeT = Aws::Utils::DateTime>
160 ViolationEvent& WithViolationEventTime(ViolationEventTimeT&& value) { SetViolationEventTime(std::forward<ViolationEventTimeT>(value)); return *this;}
162 private:
163
164 Aws::String m_violationId;
165 bool m_violationIdHasBeenSet = false;
166
167 Aws::String m_thingName;
168 bool m_thingNameHasBeenSet = false;
169
170 Aws::String m_securityProfileName;
171 bool m_securityProfileNameHasBeenSet = false;
172
173 Behavior m_behavior;
174 bool m_behaviorHasBeenSet = false;
175
176 MetricValue m_metricValue;
177 bool m_metricValueHasBeenSet = false;
178
179 ViolationEventAdditionalInfo m_violationEventAdditionalInfo;
180 bool m_violationEventAdditionalInfoHasBeenSet = false;
181
183 bool m_violationEventTypeHasBeenSet = false;
184
186 bool m_verificationStateHasBeenSet = false;
187
188 Aws::String m_verificationStateDescription;
189 bool m_verificationStateDescriptionHasBeenSet = false;
190
191 Aws::Utils::DateTime m_violationEventTime{};
192 bool m_violationEventTimeHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace IoT
197} // namespace Aws
VerificationState GetVerificationState() const
ViolationEvent & WithBehavior(BehaviorT &&value)
ViolationEvent & WithViolationId(ViolationIdT &&value)
const MetricValue & GetMetricValue() const
ViolationEventType GetViolationEventType() const
void SetSecurityProfileName(SecurityProfileNameT &&value)
void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfoT &&value)
const Aws::String & GetViolationId() const
AWS_IOT_API ViolationEvent()=default
ViolationEvent & WithSecurityProfileName(SecurityProfileNameT &&value)
void SetVerificationState(VerificationState value)
bool ViolationEventAdditionalInfoHasBeenSet() const
void SetViolationEventTime(ViolationEventTimeT &&value)
ViolationEvent & WithMetricValue(MetricValueT &&value)
ViolationEvent & WithViolationEventType(ViolationEventType value)
ViolationEvent & WithVerificationState(VerificationState value)
void SetThingName(ThingNameT &&value)
const Behavior & GetBehavior() const
const ViolationEventAdditionalInfo & GetViolationEventAdditionalInfo() const
const Aws::Utils::DateTime & GetViolationEventTime() const
void SetMetricValue(MetricValueT &&value)
const Aws::String & GetVerificationStateDescription() const
ViolationEvent & WithVerificationStateDescription(VerificationStateDescriptionT &&value)
void SetViolationId(ViolationIdT &&value)
ViolationEvent & WithThingName(ThingNameT &&value)
void SetVerificationStateDescription(VerificationStateDescriptionT &&value)
AWS_IOT_API ViolationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetViolationEventType(ViolationEventType value)
ViolationEvent & WithViolationEventTime(ViolationEventTimeT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool VerificationStateDescriptionHasBeenSet() const
const Aws::String & GetSecurityProfileName() const
AWS_IOT_API ViolationEvent(Aws::Utils::Json::JsonView jsonValue)
ViolationEvent & WithViolationEventAdditionalInfo(ViolationEventAdditionalInfoT &&value)
void SetBehavior(BehaviorT &&value)
const Aws::String & GetThingName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue