AWS SDK for C++  1.9.104
AWS SDK for C++
ListActiveViolationsRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListActiveViolations"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetThingName() const{ return m_thingName; }
46 
50  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
51 
55  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
56 
60  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
61 
65  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
66 
70  inline ListActiveViolationsRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
71 
75  inline ListActiveViolationsRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
76 
80  inline ListActiveViolationsRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
81 
82 
87  inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
88 
93  inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
94 
99  inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
100 
105  inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
106 
111  inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
112 
117  inline ListActiveViolationsRequest& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
118 
123  inline ListActiveViolationsRequest& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
124 
129  inline ListActiveViolationsRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
130 
131 
135  inline const BehaviorCriteriaType& GetBehaviorCriteriaType() const{ return m_behaviorCriteriaType; }
136 
140  inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; }
141 
145  inline void SetBehaviorCriteriaType(const BehaviorCriteriaType& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; }
146 
150  inline void SetBehaviorCriteriaType(BehaviorCriteriaType&& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = std::move(value); }
151 
155  inline ListActiveViolationsRequest& WithBehaviorCriteriaType(const BehaviorCriteriaType& value) { SetBehaviorCriteriaType(value); return *this;}
156 
160  inline ListActiveViolationsRequest& WithBehaviorCriteriaType(BehaviorCriteriaType&& value) { SetBehaviorCriteriaType(std::move(value)); return *this;}
161 
162 
166  inline bool GetListSuppressedAlerts() const{ return m_listSuppressedAlerts; }
167 
171  inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; }
172 
176  inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; }
177 
181  inline ListActiveViolationsRequest& WithListSuppressedAlerts(bool value) { SetListSuppressedAlerts(value); return *this;}
182 
183 
187  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
188 
192  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
193 
197  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
198 
202  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
203 
207  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
208 
212  inline ListActiveViolationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
213 
217  inline ListActiveViolationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
218 
222  inline ListActiveViolationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
223 
224 
228  inline int GetMaxResults() const{ return m_maxResults; }
229 
233  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
234 
238  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
239 
243  inline ListActiveViolationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
244 
245  private:
246 
247  Aws::String m_thingName;
248  bool m_thingNameHasBeenSet;
249 
250  Aws::String m_securityProfileName;
251  bool m_securityProfileNameHasBeenSet;
252 
253  BehaviorCriteriaType m_behaviorCriteriaType;
254  bool m_behaviorCriteriaTypeHasBeenSet;
255 
256  bool m_listSuppressedAlerts;
257  bool m_listSuppressedAlertsHasBeenSet;
258 
259  Aws::String m_nextToken;
260  bool m_nextTokenHasBeenSet;
261 
262  int m_maxResults;
263  bool m_maxResultsHasBeenSet;
264  };
265 
266 } // namespace Model
267 } // namespace IoT
268 } // namespace Aws
Aws::IoT::Model::ListActiveViolationsRequest::WithBehaviorCriteriaType
ListActiveViolationsRequest & WithBehaviorCriteriaType(const BehaviorCriteriaType &value)
Definition: ListActiveViolationsRequest.h:155
Aws::IoT::Model::ListActiveViolationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListActiveViolationsRequest::WithNextToken
ListActiveViolationsRequest & WithNextToken(const char *value)
Definition: ListActiveViolationsRequest.h:222
Aws::IoT::Model::ListActiveViolationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListActiveViolationsRequest.h:192
Aws::IoT::Model::ListActiveViolationsRequest::WithThingName
ListActiveViolationsRequest & WithThingName(const Aws::String &value)
Definition: ListActiveViolationsRequest.h:70
Aws::IoT::Model::ListActiveViolationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListActiveViolationsRequest.h:202
Aws::IoT::Model::ListActiveViolationsRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: ListActiveViolationsRequest.h:60
Aws::IoT::Model::ListActiveViolationsRequest::SetSecurityProfileName
void SetSecurityProfileName(const char *value)
Definition: ListActiveViolationsRequest.h:111
Aws::IoT::Model::ListActiveViolationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListActiveViolationsRequest.h:233
Aws::IoT::Model::ListActiveViolationsRequest::SetSecurityProfileName
void SetSecurityProfileName(const Aws::String &value)
Definition: ListActiveViolationsRequest.h:99
Aws::IoT::Model::ListActiveViolationsRequest
Definition: ListActiveViolationsRequest.h:27
Aws::IoT::Model::ListActiveViolationsRequest::BehaviorCriteriaTypeHasBeenSet
bool BehaviorCriteriaTypeHasBeenSet() const
Definition: ListActiveViolationsRequest.h:140
Aws::IoT::Model::ListActiveViolationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListActiveViolationsRequest.h:35
Aws::IoT::Model::ListActiveViolationsRequest::GetThingName
const Aws::String & GetThingName() const
Definition: ListActiveViolationsRequest.h:45
Aws::IoT::Model::ListActiveViolationsRequest::WithBehaviorCriteriaType
ListActiveViolationsRequest & WithBehaviorCriteriaType(BehaviorCriteriaType &&value)
Definition: ListActiveViolationsRequest.h:160
Aws::IoT::Model::ListActiveViolationsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListActiveViolationsRequest.h:228
Aws::IoT::Model::ListActiveViolationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListActiveViolationsRequest.h:238
Aws::IoT::Model::ListActiveViolationsRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: ListActiveViolationsRequest.h:55
Aws::IoT::Model::ListActiveViolationsRequest::ListActiveViolationsRequest
ListActiveViolationsRequest()
Aws::IoT::Model::ListActiveViolationsRequest::WithSecurityProfileName
ListActiveViolationsRequest & WithSecurityProfileName(const Aws::String &value)
Definition: ListActiveViolationsRequest.h:117
Aws::IoT::Model::ListActiveViolationsRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ListActiveViolationsRequest.h:50
Aws::IoT::Model::ListActiveViolationsRequest::SetListSuppressedAlerts
void SetListSuppressedAlerts(bool value)
Definition: ListActiveViolationsRequest.h:176
Aws::IoT::Model::ListActiveViolationsRequest::WithListSuppressedAlerts
ListActiveViolationsRequest & WithListSuppressedAlerts(bool value)
Definition: ListActiveViolationsRequest.h:181
Aws::IoT::Model::ListActiveViolationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListActiveViolationsRequest.h:187
Aws::IoT::Model::ListActiveViolationsRequest::GetSecurityProfileName
const Aws::String & GetSecurityProfileName() const
Definition: ListActiveViolationsRequest.h:87
BehaviorCriteriaType.h
Aws::IoT::Model::ListActiveViolationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListActiveViolationsRequest::SetBehaviorCriteriaType
void SetBehaviorCriteriaType(BehaviorCriteriaType &&value)
Definition: ListActiveViolationsRequest.h:150
Aws::IoT::Model::ListActiveViolationsRequest::SetThingName
void SetThingName(const char *value)
Definition: ListActiveViolationsRequest.h:65
Aws::IoT::Model::ListActiveViolationsRequest::SecurityProfileNameHasBeenSet
bool SecurityProfileNameHasBeenSet() const
Definition: ListActiveViolationsRequest.h:93
Aws::IoT::Model::ListActiveViolationsRequest::GetBehaviorCriteriaType
const BehaviorCriteriaType & GetBehaviorCriteriaType() const
Definition: ListActiveViolationsRequest.h:135
Aws::IoT::Model::ListActiveViolationsRequest::WithSecurityProfileName
ListActiveViolationsRequest & WithSecurityProfileName(Aws::String &&value)
Definition: ListActiveViolationsRequest.h:123
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListActiveViolationsRequest::SetSecurityProfileName
void SetSecurityProfileName(Aws::String &&value)
Definition: ListActiveViolationsRequest.h:105
Aws::IoT::Model::ListActiveViolationsRequest::GetListSuppressedAlerts
bool GetListSuppressedAlerts() const
Definition: ListActiveViolationsRequest.h:166
Aws::IoT::Model::ListActiveViolationsRequest::WithNextToken
ListActiveViolationsRequest & WithNextToken(Aws::String &&value)
Definition: ListActiveViolationsRequest.h:217
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListActiveViolationsRequest::ListSuppressedAlertsHasBeenSet
bool ListSuppressedAlertsHasBeenSet() const
Definition: ListActiveViolationsRequest.h:171
Aws::IoT::Model::ListActiveViolationsRequest::WithNextToken
ListActiveViolationsRequest & WithNextToken(const Aws::String &value)
Definition: ListActiveViolationsRequest.h:212
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::ListActiveViolationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListActiveViolationsRequest.h:207
Aws::IoT::Model::ListActiveViolationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListActiveViolationsRequest.h:197
Aws::IoT::Model::ListActiveViolationsRequest::WithThingName
ListActiveViolationsRequest & WithThingName(Aws::String &&value)
Definition: ListActiveViolationsRequest.h:75
Aws::IoT::Model::ListActiveViolationsRequest::WithSecurityProfileName
ListActiveViolationsRequest & WithSecurityProfileName(const char *value)
Definition: ListActiveViolationsRequest.h:129
Aws::IoT::Model::ListActiveViolationsRequest::SetBehaviorCriteriaType
void SetBehaviorCriteriaType(const BehaviorCriteriaType &value)
Definition: ListActiveViolationsRequest.h:145
Aws::IoT::Model::BehaviorCriteriaType
BehaviorCriteriaType
Definition: BehaviorCriteriaType.h:17
IoTRequest.h
IoT_EXPORTS.h
Aws::IoT::Model::ListActiveViolationsRequest::WithThingName
ListActiveViolationsRequest & WithThingName(const char *value)
Definition: ListActiveViolationsRequest.h:80
Aws::IoT::Model::ListActiveViolationsRequest::WithMaxResults
ListActiveViolationsRequest & WithMaxResults(int value)
Definition: ListActiveViolationsRequest.h:243