AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
51 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
52 inline ListViolationEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
53 inline ListViolationEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
63 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
64 inline ListViolationEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
65 inline ListViolationEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetThingName() const{ return m_thingName; }
73 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
74 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
75 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
76 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
77 inline ListViolationEventsRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
78 inline ListViolationEventsRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
79 inline ListViolationEventsRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
81
83
87 inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
88 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
89 inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
90 inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
91 inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
93 inline ListViolationEventsRequest& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
94 inline ListViolationEventsRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
96
98
101 inline const BehaviorCriteriaType& GetBehaviorCriteriaType() const{ return m_behaviorCriteriaType; }
102 inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; }
103 inline void SetBehaviorCriteriaType(const BehaviorCriteriaType& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; }
104 inline void SetBehaviorCriteriaType(BehaviorCriteriaType&& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = std::move(value); }
108
110
113 inline bool GetListSuppressedAlerts() const{ return m_listSuppressedAlerts; }
114 inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; }
115 inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; }
118
120
123 inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
124 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
125 inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
126 inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
130
132
135 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
136 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
137 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
138 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
139 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
140 inline ListViolationEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
141 inline ListViolationEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
142 inline ListViolationEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
144
146
149 inline int GetMaxResults() const{ return m_maxResults; }
150 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
151 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
152 inline ListViolationEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
154 private:
155
156 Aws::Utils::DateTime m_startTime;
157 bool m_startTimeHasBeenSet = false;
158
159 Aws::Utils::DateTime m_endTime;
160 bool m_endTimeHasBeenSet = false;
161
162 Aws::String m_thingName;
163 bool m_thingNameHasBeenSet = false;
164
165 Aws::String m_securityProfileName;
166 bool m_securityProfileNameHasBeenSet = false;
167
168 BehaviorCriteriaType m_behaviorCriteriaType;
169 bool m_behaviorCriteriaTypeHasBeenSet = false;
170
171 bool m_listSuppressedAlerts;
172 bool m_listSuppressedAlertsHasBeenSet = false;
173
174 VerificationState m_verificationState;
175 bool m_verificationStateHasBeenSet = false;
176
177 Aws::String m_nextToken;
178 bool m_nextTokenHasBeenSet = false;
179
180 int m_maxResults;
181 bool m_maxResultsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace IoT
186} // namespace Aws
ListViolationEventsRequest & WithVerificationState(const VerificationState &value)
ListViolationEventsRequest & WithThingName(Aws::String &&value)
ListViolationEventsRequest & WithThingName(const Aws::String &value)
ListViolationEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
ListViolationEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetVerificationState(const VerificationState &value)
void SetStartTime(const Aws::Utils::DateTime &value)
ListViolationEventsRequest & WithNextToken(Aws::String &&value)
ListViolationEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
ListViolationEventsRequest & WithSecurityProfileName(Aws::String &&value)
ListViolationEventsRequest & WithMaxResults(int value)
ListViolationEventsRequest & WithBehaviorCriteriaType(BehaviorCriteriaType &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListViolationEventsRequest & WithThingName(const char *value)
void SetBehaviorCriteriaType(BehaviorCriteriaType &&value)
ListViolationEventsRequest & WithBehaviorCriteriaType(const BehaviorCriteriaType &value)
ListViolationEventsRequest & WithListSuppressedAlerts(bool value)
ListViolationEventsRequest & WithVerificationState(VerificationState &&value)
ListViolationEventsRequest & WithNextToken(const Aws::String &value)
ListViolationEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
const VerificationState & GetVerificationState() const
const BehaviorCriteriaType & GetBehaviorCriteriaType() const
AWS_IOT_API Aws::String SerializePayload() const override
ListViolationEventsRequest & WithSecurityProfileName(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
ListViolationEventsRequest & WithNextToken(const char *value)
void SetBehaviorCriteriaType(const BehaviorCriteriaType &value)
virtual const char * GetServiceRequestName() const override
ListViolationEventsRequest & WithSecurityProfileName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String