AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
45
46
48
51 inline const Aws::String& GetViolationId() const{ return m_violationId; }
52 inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
53 inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; }
54 inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); }
55 inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); }
56 inline ViolationEvent& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;}
57 inline ViolationEvent& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;}
58 inline ViolationEvent& WithViolationId(const char* value) { SetViolationId(value); return *this;}
60
62
65 inline const Aws::String& GetThingName() const{ return m_thingName; }
66 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
67 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
68 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
69 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
70 inline ViolationEvent& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
71 inline ViolationEvent& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
72 inline ViolationEvent& WithThingName(const char* value) { SetThingName(value); return *this;}
74
76
79 inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
80 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
81 inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
82 inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
83 inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
84 inline ViolationEvent& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
85 inline ViolationEvent& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
86 inline ViolationEvent& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
88
90
93 inline const Behavior& GetBehavior() const{ return m_behavior; }
94 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
95 inline void SetBehavior(const Behavior& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
96 inline void SetBehavior(Behavior&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
97 inline ViolationEvent& WithBehavior(const Behavior& value) { SetBehavior(value); return *this;}
98 inline ViolationEvent& WithBehavior(Behavior&& value) { SetBehavior(std::move(value)); return *this;}
100
102
105 inline const MetricValue& GetMetricValue() const{ return m_metricValue; }
106 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
107 inline void SetMetricValue(const MetricValue& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
108 inline void SetMetricValue(MetricValue&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::move(value); }
109 inline ViolationEvent& WithMetricValue(const MetricValue& value) { SetMetricValue(value); return *this;}
110 inline ViolationEvent& WithMetricValue(MetricValue&& value) { SetMetricValue(std::move(value)); return *this;}
112
114
117 inline const ViolationEventAdditionalInfo& GetViolationEventAdditionalInfo() const{ return m_violationEventAdditionalInfo; }
118 inline bool ViolationEventAdditionalInfoHasBeenSet() const { return m_violationEventAdditionalInfoHasBeenSet; }
119 inline void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = value; }
120 inline void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = std::move(value); }
124
126
129 inline const ViolationEventType& GetViolationEventType() const{ return m_violationEventType; }
130 inline bool ViolationEventTypeHasBeenSet() const { return m_violationEventTypeHasBeenSet; }
131 inline void SetViolationEventType(const ViolationEventType& value) { m_violationEventTypeHasBeenSet = true; m_violationEventType = value; }
132 inline void SetViolationEventType(ViolationEventType&& value) { m_violationEventTypeHasBeenSet = true; m_violationEventType = std::move(value); }
134 inline ViolationEvent& WithViolationEventType(ViolationEventType&& value) { SetViolationEventType(std::move(value)); return *this;}
136
138
141 inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
142 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
143 inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
144 inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
145 inline ViolationEvent& WithVerificationState(const VerificationState& value) { SetVerificationState(value); return *this;}
146 inline ViolationEvent& WithVerificationState(VerificationState&& value) { SetVerificationState(std::move(value)); return *this;}
148
150
153 inline const Aws::String& GetVerificationStateDescription() const{ return m_verificationStateDescription; }
154 inline bool VerificationStateDescriptionHasBeenSet() const { return m_verificationStateDescriptionHasBeenSet; }
155 inline void SetVerificationStateDescription(const Aws::String& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = value; }
156 inline void SetVerificationStateDescription(Aws::String&& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = std::move(value); }
157 inline void SetVerificationStateDescription(const char* value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription.assign(value); }
160 inline ViolationEvent& WithVerificationStateDescription(const char* value) { SetVerificationStateDescription(value); return *this;}
162
164
167 inline const Aws::Utils::DateTime& GetViolationEventTime() const{ return m_violationEventTime; }
168 inline bool ViolationEventTimeHasBeenSet() const { return m_violationEventTimeHasBeenSet; }
169 inline void SetViolationEventTime(const Aws::Utils::DateTime& value) { m_violationEventTimeHasBeenSet = true; m_violationEventTime = value; }
170 inline void SetViolationEventTime(Aws::Utils::DateTime&& value) { m_violationEventTimeHasBeenSet = true; m_violationEventTime = std::move(value); }
172 inline ViolationEvent& WithViolationEventTime(Aws::Utils::DateTime&& value) { SetViolationEventTime(std::move(value)); return *this;}
174 private:
175
176 Aws::String m_violationId;
177 bool m_violationIdHasBeenSet = false;
178
179 Aws::String m_thingName;
180 bool m_thingNameHasBeenSet = false;
181
182 Aws::String m_securityProfileName;
183 bool m_securityProfileNameHasBeenSet = false;
184
185 Behavior m_behavior;
186 bool m_behaviorHasBeenSet = false;
187
188 MetricValue m_metricValue;
189 bool m_metricValueHasBeenSet = false;
190
191 ViolationEventAdditionalInfo m_violationEventAdditionalInfo;
192 bool m_violationEventAdditionalInfoHasBeenSet = false;
193
194 ViolationEventType m_violationEventType;
195 bool m_violationEventTypeHasBeenSet = false;
196
197 VerificationState m_verificationState;
198 bool m_verificationStateHasBeenSet = false;
199
200 Aws::String m_verificationStateDescription;
201 bool m_verificationStateDescriptionHasBeenSet = false;
202
203 Aws::Utils::DateTime m_violationEventTime;
204 bool m_violationEventTimeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace IoT
209} // namespace Aws
ViolationEvent & WithViolationEventTime(Aws::Utils::DateTime &&value)
ViolationEvent & WithVerificationState(const VerificationState &value)
void SetVerificationState(VerificationState &&value)
ViolationEvent & WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
void SetMetricValue(const MetricValue &value)
void SetBehavior(Behavior &&value)
void SetViolationId(Aws::String &&value)
const MetricValue & GetMetricValue() const
ViolationEvent & WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
void SetVerificationStateDescription(const Aws::String &value)
const Aws::String & GetViolationId() const
void SetThingName(const Aws::String &value)
void SetVerificationStateDescription(Aws::String &&value)
ViolationEvent & WithThingName(Aws::String &&value)
void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
void SetSecurityProfileName(const char *value)
ViolationEvent & WithSecurityProfileName(const Aws::String &value)
ViolationEvent & WithVerificationStateDescription(const Aws::String &value)
ViolationEvent & WithThingName(const char *value)
ViolationEvent & WithViolationId(const Aws::String &value)
void SetViolationEventTime(const Aws::Utils::DateTime &value)
bool ViolationEventAdditionalInfoHasBeenSet() const
ViolationEvent & WithMetricValue(MetricValue &&value)
ViolationEvent & WithViolationEventType(const ViolationEventType &value)
ViolationEvent & WithThingName(const Aws::String &value)
void SetVerificationStateDescription(const char *value)
void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
const Behavior & GetBehavior() const
ViolationEvent & WithVerificationState(VerificationState &&value)
const ViolationEventAdditionalInfo & GetViolationEventAdditionalInfo() const
ViolationEvent & WithSecurityProfileName(Aws::String &&value)
void SetViolationEventTime(Aws::Utils::DateTime &&value)
const VerificationState & GetVerificationState() const
const Aws::Utils::DateTime & GetViolationEventTime() const
void SetViolationEventType(const ViolationEventType &value)
ViolationEvent & WithMetricValue(const MetricValue &value)
ViolationEvent & WithVerificationStateDescription(Aws::String &&value)
void SetViolationEventType(ViolationEventType &&value)
const Aws::String & GetVerificationStateDescription() const
void SetViolationId(const Aws::String &value)
const ViolationEventType & GetViolationEventType() const
ViolationEvent & WithSecurityProfileName(const char *value)
ViolationEvent & WithViolationEventTime(const Aws::Utils::DateTime &value)
ViolationEvent & WithBehavior(const Behavior &value)
AWS_IOT_API ViolationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ViolationEvent & WithVerificationStateDescription(const char *value)
void SetMetricValue(MetricValue &&value)
void SetThingName(const char *value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool VerificationStateDescriptionHasBeenSet() const
const Aws::String & GetSecurityProfileName() const
void SetViolationId(const char *value)
void SetVerificationState(const VerificationState &value)
ViolationEvent & WithViolationEventType(ViolationEventType &&value)
ViolationEvent & WithViolationId(Aws::String &&value)
ViolationEvent & WithBehavior(Behavior &&value)
AWS_IOT_API ViolationEvent(Aws::Utils::Json::JsonView jsonValue)
void SetThingName(Aws::String &&value)
void SetSecurityProfileName(const Aws::String &value)
void SetSecurityProfileName(Aws::String &&value)
void SetBehavior(const Behavior &value)
const Aws::String & GetThingName() const
ViolationEvent & WithViolationId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue