AWS SDK for C++  1.9.123
AWS SDK for C++
ListViolationEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace IoT
22 {
23 namespace Model
24 {
25 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListViolationEvents"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
47  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
48 
52  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
53 
57  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
58 
62  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
63 
67  inline ListViolationEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
68 
72  inline ListViolationEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
73 
74 
78  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
79 
83  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
84 
88  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
89 
93  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
94 
98  inline ListViolationEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
99 
103  inline ListViolationEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
104 
105 
109  inline const Aws::String& GetThingName() const{ return m_thingName; }
110 
114  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
115 
119  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
120 
124  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
125 
129  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
130 
134  inline ListViolationEventsRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
135 
139  inline ListViolationEventsRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
140 
144  inline ListViolationEventsRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
145 
146 
151  inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
152 
157  inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
158 
163  inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
164 
169  inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
170 
175  inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
176 
181  inline ListViolationEventsRequest& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
182 
187  inline ListViolationEventsRequest& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
188 
193  inline ListViolationEventsRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
194 
195 
199  inline const BehaviorCriteriaType& GetBehaviorCriteriaType() const{ return m_behaviorCriteriaType; }
200 
204  inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; }
205 
209  inline void SetBehaviorCriteriaType(const BehaviorCriteriaType& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; }
210 
214  inline void SetBehaviorCriteriaType(BehaviorCriteriaType&& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = std::move(value); }
215 
219  inline ListViolationEventsRequest& WithBehaviorCriteriaType(const BehaviorCriteriaType& value) { SetBehaviorCriteriaType(value); return *this;}
220 
224  inline ListViolationEventsRequest& WithBehaviorCriteriaType(BehaviorCriteriaType&& value) { SetBehaviorCriteriaType(std::move(value)); return *this;}
225 
226 
230  inline bool GetListSuppressedAlerts() const{ return m_listSuppressedAlerts; }
231 
235  inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; }
236 
240  inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; }
241 
245  inline ListViolationEventsRequest& WithListSuppressedAlerts(bool value) { SetListSuppressedAlerts(value); return *this;}
246 
247 
251  inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
252 
256  inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
257 
261  inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
262 
266  inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
267 
271  inline ListViolationEventsRequest& WithVerificationState(const VerificationState& value) { SetVerificationState(value); return *this;}
272 
276  inline ListViolationEventsRequest& WithVerificationState(VerificationState&& value) { SetVerificationState(std::move(value)); return *this;}
277 
278 
282  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
283 
287  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
288 
292  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
293 
297  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
298 
302  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
303 
307  inline ListViolationEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
308 
312  inline ListViolationEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
313 
317  inline ListViolationEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
318 
319 
323  inline int GetMaxResults() const{ return m_maxResults; }
324 
328  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
329 
333  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
334 
338  inline ListViolationEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
339 
340  private:
341 
342  Aws::Utils::DateTime m_startTime;
343  bool m_startTimeHasBeenSet;
344 
345  Aws::Utils::DateTime m_endTime;
346  bool m_endTimeHasBeenSet;
347 
348  Aws::String m_thingName;
349  bool m_thingNameHasBeenSet;
350 
351  Aws::String m_securityProfileName;
352  bool m_securityProfileNameHasBeenSet;
353 
354  BehaviorCriteriaType m_behaviorCriteriaType;
355  bool m_behaviorCriteriaTypeHasBeenSet;
356 
357  bool m_listSuppressedAlerts;
358  bool m_listSuppressedAlertsHasBeenSet;
359 
360  VerificationState m_verificationState;
361  bool m_verificationStateHasBeenSet;
362 
363  Aws::String m_nextToken;
364  bool m_nextTokenHasBeenSet;
365 
366  int m_maxResults;
367  bool m_maxResultsHasBeenSet;
368  };
369 
370 } // namespace Model
371 } // namespace IoT
372 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::ListViolationEventsRequest::WithVerificationState
ListViolationEventsRequest & WithVerificationState(const VerificationState &value)
Definition: ListViolationEventsRequest.h:271
Aws::IoT::Model::ListViolationEventsRequest::WithThingName
ListViolationEventsRequest & WithThingName(const Aws::String &value)
Definition: ListViolationEventsRequest.h:134
Aws::IoT::Model::ListViolationEventsRequest::SetVerificationState
void SetVerificationState(VerificationState &&value)
Definition: ListViolationEventsRequest.h:266
Aws::IoT::Model::ListViolationEventsRequest::ListSuppressedAlertsHasBeenSet
bool ListSuppressedAlertsHasBeenSet() const
Definition: ListViolationEventsRequest.h:235
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListViolationEventsRequest::WithThingName
ListViolationEventsRequest & WithThingName(const char *value)
Definition: ListViolationEventsRequest.h:144
DateTime.h
Aws::IoT::Model::ListViolationEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListViolationEventsRequest.h:37
Aws::IoT::Model::ListViolationEventsRequest::WithNextToken
ListViolationEventsRequest & WithNextToken(Aws::String &&value)
Definition: ListViolationEventsRequest.h:312
Aws::IoT::Model::ListViolationEventsRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: ListViolationEventsRequest.h:62
Aws::IoT::Model::ListViolationEventsRequest::WithBehaviorCriteriaType
ListViolationEventsRequest & WithBehaviorCriteriaType(BehaviorCriteriaType &&value)
Definition: ListViolationEventsRequest.h:224
Aws::IoT::Model::ListViolationEventsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListViolationEventsRequest.h:282
Aws::IoT::Model::ListViolationEventsRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: ListViolationEventsRequest.h:47
Aws::IoT::Model::ListViolationEventsRequest::WithSecurityProfileName
ListViolationEventsRequest & WithSecurityProfileName(Aws::String &&value)
Definition: ListViolationEventsRequest.h:187
Aws::IoT::Model::ListViolationEventsRequest::SetBehaviorCriteriaType
void SetBehaviorCriteriaType(BehaviorCriteriaType &&value)
Definition: ListViolationEventsRequest.h:214
Aws::IoT::Model::ListViolationEventsRequest::SetThingName
void SetThingName(const char *value)
Definition: ListViolationEventsRequest.h:129
Aws::IoT::Model::ListViolationEventsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListViolationEventsRequest.h:323
Aws::IoT::Model::ListViolationEventsRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ListViolationEventsRequest.h:52
Aws::IoT::Model::ListViolationEventsRequest::WithEndTime
ListViolationEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: ListViolationEventsRequest.h:103
Aws::IoT::Model::ListViolationEventsRequest::WithStartTime
ListViolationEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: ListViolationEventsRequest.h:67
Aws::IoT::Model::ListViolationEventsRequest::GetListSuppressedAlerts
bool GetListSuppressedAlerts() const
Definition: ListViolationEventsRequest.h:230
Aws::IoT::Model::ListViolationEventsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListViolationEventsRequest.h:302
Aws::IoT::Model::ListViolationEventsRequest::GetBehaviorCriteriaType
const BehaviorCriteriaType & GetBehaviorCriteriaType() const
Definition: ListViolationEventsRequest.h:199
Aws::IoT::Model::ListViolationEventsRequest::SetBehaviorCriteriaType
void SetBehaviorCriteriaType(const BehaviorCriteriaType &value)
Definition: ListViolationEventsRequest.h:209
VerificationState.h
Aws::IoT::Model::ListViolationEventsRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: ListViolationEventsRequest.h:78
Aws::IoT::Model::ListViolationEventsRequest::SetVerificationState
void SetVerificationState(const VerificationState &value)
Definition: ListViolationEventsRequest.h:261
Aws::IoT::Model::ListViolationEventsRequest::WithStartTime
ListViolationEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: ListViolationEventsRequest.h:72
Aws::IoT::Model::ListViolationEventsRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ListViolationEventsRequest.h:114
Aws::IoT::Model::ListViolationEventsRequest::GetSecurityProfileName
const Aws::String & GetSecurityProfileName() const
Definition: ListViolationEventsRequest.h:151
BehaviorCriteriaType.h
Aws::IoT::Model::ListViolationEventsRequest::WithSecurityProfileName
ListViolationEventsRequest & WithSecurityProfileName(const char *value)
Definition: ListViolationEventsRequest.h:193
Aws::IoT::Model::ListViolationEventsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListViolationEventsRequest.h:287
Aws::IoT::Model::ListViolationEventsRequest::WithEndTime
ListViolationEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: ListViolationEventsRequest.h:98
Aws::IoT::Model::ListViolationEventsRequest::WithSecurityProfileName
ListViolationEventsRequest & WithSecurityProfileName(const Aws::String &value)
Definition: ListViolationEventsRequest.h:181
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListViolationEventsRequest::ListViolationEventsRequest
ListViolationEventsRequest()
Aws::IoT::Model::ListViolationEventsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListViolationEventsRequest.h:333
Aws::IoT::Model::ListViolationEventsRequest::VerificationStateHasBeenSet
bool VerificationStateHasBeenSet() const
Definition: ListViolationEventsRequest.h:256
Aws::IoT::Model::ListViolationEventsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListViolationEventsRequest.h:328
Aws::IoT::Model::ListViolationEventsRequest
Definition: ListViolationEventsRequest.h:29
Aws::IoT::Model::ListViolationEventsRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: ListViolationEventsRequest.h:119
Aws::IoT::Model::ListViolationEventsRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: ListViolationEventsRequest.h:83
Aws::IoT::Model::ListViolationEventsRequest::SetListSuppressedAlerts
void SetListSuppressedAlerts(bool value)
Definition: ListViolationEventsRequest.h:240
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListViolationEventsRequest::WithListSuppressedAlerts
ListViolationEventsRequest & WithListSuppressedAlerts(bool value)
Definition: ListViolationEventsRequest.h:245
Aws::IoT::Model::ListViolationEventsRequest::BehaviorCriteriaTypeHasBeenSet
bool BehaviorCriteriaTypeHasBeenSet() const
Definition: ListViolationEventsRequest.h:204
Aws::IoT::Model::ListViolationEventsRequest::SerializePayload
Aws::String SerializePayload() const override
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::ListViolationEventsRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: ListViolationEventsRequest.h:88
Aws::IoT::Model::ListViolationEventsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListViolationEventsRequest.h:297
Aws::IoT::Model::BehaviorCriteriaType
BehaviorCriteriaType
Definition: BehaviorCriteriaType.h:17
Aws::IoT::Model::ListViolationEventsRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: ListViolationEventsRequest.h:93
Aws::IoT::Model::ListViolationEventsRequest::WithMaxResults
ListViolationEventsRequest & WithMaxResults(int value)
Definition: ListViolationEventsRequest.h:338
Aws::IoT::Model::VerificationState
VerificationState
Definition: VerificationState.h:17
IoTRequest.h
Aws::IoT::Model::ListViolationEventsRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: ListViolationEventsRequest.h:57
Aws::IoT::Model::ListViolationEventsRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: ListViolationEventsRequest.h:124
Aws::IoT::Model::ListViolationEventsRequest::GetVerificationState
const VerificationState & GetVerificationState() const
Definition: ListViolationEventsRequest.h:251
Aws::IoT::Model::ListViolationEventsRequest::WithNextToken
ListViolationEventsRequest & WithNextToken(const Aws::String &value)
Definition: ListViolationEventsRequest.h:307
Aws::IoT::Model::ListViolationEventsRequest::SetSecurityProfileName
void SetSecurityProfileName(const Aws::String &value)
Definition: ListViolationEventsRequest.h:163
Aws::IoT::Model::ListViolationEventsRequest::GetThingName
const Aws::String & GetThingName() const
Definition: ListViolationEventsRequest.h:109
Aws::IoT::Model::ListViolationEventsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListViolationEventsRequest.h:292
Aws::IoT::Model::ListViolationEventsRequest::WithBehaviorCriteriaType
ListViolationEventsRequest & WithBehaviorCriteriaType(const BehaviorCriteriaType &value)
Definition: ListViolationEventsRequest.h:219
Aws::IoT::Model::ListViolationEventsRequest::WithNextToken
ListViolationEventsRequest & WithNextToken(const char *value)
Definition: ListViolationEventsRequest.h:317
Aws::IoT::Model::ListViolationEventsRequest::SecurityProfileNameHasBeenSet
bool SecurityProfileNameHasBeenSet() const
Definition: ListViolationEventsRequest.h:157
Aws::IoT::Model::ListViolationEventsRequest::WithVerificationState
ListViolationEventsRequest & WithVerificationState(VerificationState &&value)
Definition: ListViolationEventsRequest.h:276
Aws::IoT::Model::ListViolationEventsRequest::SetSecurityProfileName
void SetSecurityProfileName(const char *value)
Definition: ListViolationEventsRequest.h:175
Aws::IoT::Model::ListViolationEventsRequest::SetSecurityProfileName
void SetSecurityProfileName(Aws::String &&value)
Definition: ListViolationEventsRequest.h:169
IoT_EXPORTS.h
Aws::IoT::Model::ListViolationEventsRequest::WithThingName
ListViolationEventsRequest & WithThingName(Aws::String &&value)
Definition: ListViolationEventsRequest.h:139
Aws::IoT::Model::ListViolationEventsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override