AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActiveViolation.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/VerificationState.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoT
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_IOT_API ActiveViolation();
44
45
47
50 inline const Aws::String& GetViolationId() const{ return m_violationId; }
51 inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; }
52 inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; }
53 inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); }
54 inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); }
55 inline ActiveViolation& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;}
56 inline ActiveViolation& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;}
57 inline ActiveViolation& WithViolationId(const char* value) { SetViolationId(value); return *this;}
59
61
64 inline const Aws::String& GetThingName() const{ return m_thingName; }
65 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
66 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
67 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
68 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
69 inline ActiveViolation& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
70 inline ActiveViolation& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
71 inline ActiveViolation& WithThingName(const char* value) { SetThingName(value); return *this;}
73
75
78 inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
79 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
80 inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
81 inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
82 inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
83 inline ActiveViolation& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
84 inline ActiveViolation& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
85 inline ActiveViolation& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
87
89
92 inline const Behavior& GetBehavior() const{ return m_behavior; }
93 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
94 inline void SetBehavior(const Behavior& value) { m_behaviorHasBeenSet = true; m_behavior = value; }
95 inline void SetBehavior(Behavior&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); }
96 inline ActiveViolation& WithBehavior(const Behavior& value) { SetBehavior(value); return *this;}
97 inline ActiveViolation& WithBehavior(Behavior&& value) { SetBehavior(std::move(value)); return *this;}
99
101
105 inline const MetricValue& GetLastViolationValue() const{ return m_lastViolationValue; }
106 inline bool LastViolationValueHasBeenSet() const { return m_lastViolationValueHasBeenSet; }
107 inline void SetLastViolationValue(const MetricValue& value) { m_lastViolationValueHasBeenSet = true; m_lastViolationValue = value; }
108 inline void SetLastViolationValue(MetricValue&& value) { m_lastViolationValueHasBeenSet = true; m_lastViolationValue = std::move(value); }
109 inline ActiveViolation& WithLastViolationValue(const MetricValue& value) { SetLastViolationValue(value); return *this;}
110 inline ActiveViolation& WithLastViolationValue(MetricValue&& value) { SetLastViolationValue(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 VerificationState& GetVerificationState() const{ return m_verificationState; }
130 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
131 inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
132 inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
134 inline ActiveViolation& WithVerificationState(VerificationState&& value) { SetVerificationState(std::move(value)); return *this;}
136
138
141 inline const Aws::String& GetVerificationStateDescription() const{ return m_verificationStateDescription; }
142 inline bool VerificationStateDescriptionHasBeenSet() const { return m_verificationStateDescriptionHasBeenSet; }
143 inline void SetVerificationStateDescription(const Aws::String& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = value; }
144 inline void SetVerificationStateDescription(Aws::String&& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = std::move(value); }
145 inline void SetVerificationStateDescription(const char* value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription.assign(value); }
148 inline ActiveViolation& WithVerificationStateDescription(const char* value) { SetVerificationStateDescription(value); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetLastViolationTime() const{ return m_lastViolationTime; }
156 inline bool LastViolationTimeHasBeenSet() const { return m_lastViolationTimeHasBeenSet; }
157 inline void SetLastViolationTime(const Aws::Utils::DateTime& value) { m_lastViolationTimeHasBeenSet = true; m_lastViolationTime = value; }
158 inline void SetLastViolationTime(Aws::Utils::DateTime&& value) { m_lastViolationTimeHasBeenSet = true; m_lastViolationTime = std::move(value); }
160 inline ActiveViolation& WithLastViolationTime(Aws::Utils::DateTime&& value) { SetLastViolationTime(std::move(value)); return *this;}
162
164
167 inline const Aws::Utils::DateTime& GetViolationStartTime() const{ return m_violationStartTime; }
168 inline bool ViolationStartTimeHasBeenSet() const { return m_violationStartTimeHasBeenSet; }
169 inline void SetViolationStartTime(const Aws::Utils::DateTime& value) { m_violationStartTimeHasBeenSet = true; m_violationStartTime = value; }
170 inline void SetViolationStartTime(Aws::Utils::DateTime&& value) { m_violationStartTimeHasBeenSet = true; m_violationStartTime = std::move(value); }
172 inline ActiveViolation& WithViolationStartTime(Aws::Utils::DateTime&& value) { SetViolationStartTime(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_lastViolationValue;
189 bool m_lastViolationValueHasBeenSet = false;
190
191 ViolationEventAdditionalInfo m_violationEventAdditionalInfo;
192 bool m_violationEventAdditionalInfoHasBeenSet = false;
193
194 VerificationState m_verificationState;
195 bool m_verificationStateHasBeenSet = false;
196
197 Aws::String m_verificationStateDescription;
198 bool m_verificationStateDescriptionHasBeenSet = false;
199
200 Aws::Utils::DateTime m_lastViolationTime;
201 bool m_lastViolationTimeHasBeenSet = false;
202
203 Aws::Utils::DateTime m_violationStartTime;
204 bool m_violationStartTimeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace IoT
209} // namespace Aws
const Aws::Utils::DateTime & GetViolationStartTime() const
ActiveViolation & WithViolationId(Aws::String &&value)
ActiveViolation & WithVerificationStateDescription(const char *value)
const MetricValue & GetLastViolationValue() const
ActiveViolation & WithViolationId(const char *value)
ActiveViolation & WithVerificationState(const VerificationState &value)
ActiveViolation & WithThingName(const Aws::String &value)
void SetLastViolationTime(Aws::Utils::DateTime &&value)
void SetViolationStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetViolationId() const
void SetSecurityProfileName(const Aws::String &value)
const Aws::String & GetThingName() const
bool VerificationStateDescriptionHasBeenSet() const
void SetSecurityProfileName(Aws::String &&value)
void SetVerificationStateDescription(Aws::String &&value)
ActiveViolation & WithVerificationStateDescription(Aws::String &&value)
void SetBehavior(const Behavior &value)
void SetViolationId(Aws::String &&value)
ActiveViolation & WithViolationStartTime(Aws::Utils::DateTime &&value)
void SetVerificationStateDescription(const char *value)
ActiveViolation & WithThingName(const char *value)
void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
ActiveViolation & WithViolationId(const Aws::String &value)
ActiveViolation & WithViolationStartTime(const Aws::Utils::DateTime &value)
ActiveViolation & WithBehavior(Behavior &&value)
void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
const Aws::Utils::DateTime & GetLastViolationTime() const
void SetVerificationStateDescription(const Aws::String &value)
AWS_IOT_API ActiveViolation(Aws::Utils::Json::JsonView jsonValue)
void SetThingName(const char *value)
void SetLastViolationValue(const MetricValue &value)
ActiveViolation & WithLastViolationValue(const MetricValue &value)
ActiveViolation & WithBehavior(const Behavior &value)
ActiveViolation & WithVerificationState(VerificationState &&value)
ActiveViolation & WithSecurityProfileName(Aws::String &&value)
void SetViolationId(const Aws::String &value)
ActiveViolation & WithLastViolationTime(const Aws::Utils::DateTime &value)
ActiveViolation & WithVerificationStateDescription(const Aws::String &value)
void SetVerificationState(const VerificationState &value)
ActiveViolation & WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo &&value)
const Aws::String & GetVerificationStateDescription() const
ActiveViolation & WithLastViolationValue(MetricValue &&value)
void SetBehavior(Behavior &&value)
const Behavior & GetBehavior() const
void SetViolationStartTime(Aws::Utils::DateTime &&value)
ActiveViolation & WithLastViolationTime(Aws::Utils::DateTime &&value)
void SetSecurityProfileName(const char *value)
ActiveViolation & WithSecurityProfileName(const Aws::String &value)
void SetViolationId(const char *value)
void SetThingName(Aws::String &&value)
void SetVerificationState(VerificationState &&value)
void SetLastViolationValue(MetricValue &&value)
void SetLastViolationTime(const Aws::Utils::DateTime &value)
ActiveViolation & WithSecurityProfileName(const char *value)
const ViolationEventAdditionalInfo & GetViolationEventAdditionalInfo() const
ActiveViolation & WithThingName(Aws::String &&value)
const VerificationState & GetVerificationState() const
const Aws::String & GetSecurityProfileName() const
void SetThingName(const Aws::String &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ViolationEventAdditionalInfoHasBeenSet() const
AWS_IOT_API ActiveViolation & operator=(Aws::Utils::Json::JsonView jsonValue)
ActiveViolation & WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue