AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListViolationEventsRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iot/model/BehaviorCriteriaType.h>
12#include <aws/iot/model/VerificationState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace IoT
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_IOT_API ListViolationEventsRequest() = default;
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_IOT_API Aws::String SerializePayload() const override;
40
41 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
49 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
50 template<typename StartTimeT = Aws::Utils::DateTime>
51 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
52 template<typename StartTimeT = Aws::Utils::DateTime>
53 ListViolationEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
61 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
62 template<typename EndTimeT = Aws::Utils::DateTime>
63 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
64 template<typename EndTimeT = Aws::Utils::DateTime>
65 ListViolationEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
67
69
72 inline const Aws::String& GetThingName() const { return m_thingName; }
73 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
74 template<typename ThingNameT = Aws::String>
75 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
76 template<typename ThingNameT = Aws::String>
77 ListViolationEventsRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
79
81
85 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
86 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
87 template<typename SecurityProfileNameT = Aws::String>
88 void SetSecurityProfileName(SecurityProfileNameT&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::forward<SecurityProfileNameT>(value); }
89 template<typename SecurityProfileNameT = Aws::String>
90 ListViolationEventsRequest& WithSecurityProfileName(SecurityProfileNameT&& value) { SetSecurityProfileName(std::forward<SecurityProfileNameT>(value)); return *this;}
92
94
97 inline BehaviorCriteriaType GetBehaviorCriteriaType() const { return m_behaviorCriteriaType; }
98 inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; }
99 inline void SetBehaviorCriteriaType(BehaviorCriteriaType value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; }
102
104
107 inline bool GetListSuppressedAlerts() const { return m_listSuppressedAlerts; }
108 inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; }
109 inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; }
112
114
117 inline VerificationState GetVerificationState() const { return m_verificationState; }
118 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
119 inline void SetVerificationState(VerificationState value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
122
124
127 inline const Aws::String& GetNextToken() const { return m_nextToken; }
128 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
129 template<typename NextTokenT = Aws::String>
130 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
131 template<typename NextTokenT = Aws::String>
132 ListViolationEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
134
136
139 inline int GetMaxResults() const { return m_maxResults; }
140 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
141 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
142 inline ListViolationEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
144 private:
145
146 Aws::Utils::DateTime m_startTime{};
147 bool m_startTimeHasBeenSet = false;
148
149 Aws::Utils::DateTime m_endTime{};
150 bool m_endTimeHasBeenSet = false;
151
152 Aws::String m_thingName;
153 bool m_thingNameHasBeenSet = false;
154
155 Aws::String m_securityProfileName;
156 bool m_securityProfileNameHasBeenSet = false;
157
159 bool m_behaviorCriteriaTypeHasBeenSet = false;
160
161 bool m_listSuppressedAlerts{false};
162 bool m_listSuppressedAlertsHasBeenSet = false;
163
165 bool m_verificationStateHasBeenSet = false;
166
167 Aws::String m_nextToken;
168 bool m_nextTokenHasBeenSet = false;
169
170 int m_maxResults{0};
171 bool m_maxResultsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace IoT
176} // namespace Aws
ListViolationEventsRequest & WithThingName(ThingNameT &&value)
void SetSecurityProfileName(SecurityProfileNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
ListViolationEventsRequest & WithEndTime(EndTimeT &&value)
ListViolationEventsRequest & WithSecurityProfileName(SecurityProfileNameT &&value)
ListViolationEventsRequest & WithNextToken(NextTokenT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetBehaviorCriteriaType(BehaviorCriteriaType value)
ListViolationEventsRequest & WithBehaviorCriteriaType(BehaviorCriteriaType value)
ListViolationEventsRequest & WithStartTime(StartTimeT &&value)
ListViolationEventsRequest & WithMaxResults(int value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListViolationEventsRequest & WithListSuppressedAlerts(bool value)
AWS_IOT_API Aws::String SerializePayload() const override
ListViolationEventsRequest & WithVerificationState(VerificationState value)
AWS_IOT_API ListViolationEventsRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String