AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListActiveViolationsRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/BehaviorCriteriaType.h>
11#include <aws/iot/model/VerificationState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoT
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOT_API ListActiveViolationsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListActiveViolations"; }
37
38 AWS_IOT_API Aws::String SerializePayload() const override;
39
40 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetThingName() const { return m_thingName; }
48 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
49 template<typename ThingNameT = Aws::String>
50 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
51 template<typename ThingNameT = Aws::String>
52 ListActiveViolationsRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
61 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
62 template<typename SecurityProfileNameT = Aws::String>
63 void SetSecurityProfileName(SecurityProfileNameT&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::forward<SecurityProfileNameT>(value); }
64 template<typename SecurityProfileNameT = Aws::String>
65 ListActiveViolationsRequest& WithSecurityProfileName(SecurityProfileNameT&& value) { SetSecurityProfileName(std::forward<SecurityProfileNameT>(value)); return *this;}
67
69
72 inline BehaviorCriteriaType GetBehaviorCriteriaType() const { return m_behaviorCriteriaType; }
73 inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; }
74 inline void SetBehaviorCriteriaType(BehaviorCriteriaType value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; }
77
79
82 inline bool GetListSuppressedAlerts() const { return m_listSuppressedAlerts; }
83 inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; }
84 inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; }
87
89
92 inline VerificationState GetVerificationState() const { return m_verificationState; }
93 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
94 inline void SetVerificationState(VerificationState value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
97
99
102 inline const Aws::String& GetNextToken() const { return m_nextToken; }
103 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
104 template<typename NextTokenT = Aws::String>
105 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
106 template<typename NextTokenT = Aws::String>
107 ListActiveViolationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
109
111
114 inline int GetMaxResults() const { return m_maxResults; }
115 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
117 inline ListActiveViolationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
119 private:
120
121 Aws::String m_thingName;
122 bool m_thingNameHasBeenSet = false;
123
124 Aws::String m_securityProfileName;
125 bool m_securityProfileNameHasBeenSet = false;
126
128 bool m_behaviorCriteriaTypeHasBeenSet = false;
129
130 bool m_listSuppressedAlerts{false};
131 bool m_listSuppressedAlertsHasBeenSet = false;
132
134 bool m_verificationStateHasBeenSet = false;
135
136 Aws::String m_nextToken;
137 bool m_nextTokenHasBeenSet = false;
138
139 int m_maxResults{0};
140 bool m_maxResultsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace IoT
145} // namespace Aws
ListActiveViolationsRequest & WithNextToken(NextTokenT &&value)
ListActiveViolationsRequest & WithThingName(ThingNameT &&value)
ListActiveViolationsRequest & WithVerificationState(VerificationState value)
ListActiveViolationsRequest & WithSecurityProfileName(SecurityProfileNameT &&value)
ListActiveViolationsRequest & WithBehaviorCriteriaType(BehaviorCriteriaType value)
AWS_IOT_API Aws::String SerializePayload() const override
ListActiveViolationsRequest & WithMaxResults(int value)
void SetSecurityProfileName(SecurityProfileNameT &&value)
AWS_IOT_API ListActiveViolationsRequest()=default
ListActiveViolationsRequest & WithListSuppressedAlerts(bool value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String