AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
50 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
51 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
52 inline ListActiveViolationsRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
53 inline ListActiveViolationsRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
54 inline ListActiveViolationsRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
56
58
62 inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
63 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
64 inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
65 inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
66 inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
69 inline ListActiveViolationsRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
71
73
76 inline const BehaviorCriteriaType& GetBehaviorCriteriaType() const{ return m_behaviorCriteriaType; }
77 inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; }
78 inline void SetBehaviorCriteriaType(const BehaviorCriteriaType& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; }
79 inline void SetBehaviorCriteriaType(BehaviorCriteriaType&& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = std::move(value); }
83
85
88 inline bool GetListSuppressedAlerts() const{ return m_listSuppressedAlerts; }
89 inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; }
90 inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; }
93
95
98 inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
99 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
100 inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
101 inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
105
107
110 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
111 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
113 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
114 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
115 inline ListActiveViolationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 inline ListActiveViolationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
117 inline ListActiveViolationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
119
121
124 inline int GetMaxResults() const{ return m_maxResults; }
125 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
126 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
127 inline ListActiveViolationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
129 private:
130
131 Aws::String m_thingName;
132 bool m_thingNameHasBeenSet = false;
133
134 Aws::String m_securityProfileName;
135 bool m_securityProfileNameHasBeenSet = false;
136
137 BehaviorCriteriaType m_behaviorCriteriaType;
138 bool m_behaviorCriteriaTypeHasBeenSet = false;
139
140 bool m_listSuppressedAlerts;
141 bool m_listSuppressedAlertsHasBeenSet = false;
142
143 VerificationState m_verificationState;
144 bool m_verificationStateHasBeenSet = false;
145
146 Aws::String m_nextToken;
147 bool m_nextTokenHasBeenSet = false;
148
149 int m_maxResults;
150 bool m_maxResultsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace IoT
155} // namespace Aws
ListActiveViolationsRequest & WithBehaviorCriteriaType(const BehaviorCriteriaType &value)
void SetBehaviorCriteriaType(const BehaviorCriteriaType &value)
ListActiveViolationsRequest & WithSecurityProfileName(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
ListActiveViolationsRequest & WithMaxResults(int value)
ListActiveViolationsRequest & WithThingName(Aws::String &&value)
void SetVerificationState(const VerificationState &value)
ListActiveViolationsRequest & WithNextToken(const char *value)
ListActiveViolationsRequest & WithThingName(const char *value)
ListActiveViolationsRequest & WithSecurityProfileName(const Aws::String &value)
const BehaviorCriteriaType & GetBehaviorCriteriaType() const
ListActiveViolationsRequest & WithNextToken(Aws::String &&value)
ListActiveViolationsRequest & WithVerificationState(const VerificationState &value)
void SetBehaviorCriteriaType(BehaviorCriteriaType &&value)
ListActiveViolationsRequest & WithListSuppressedAlerts(bool value)
ListActiveViolationsRequest & WithBehaviorCriteriaType(BehaviorCriteriaType &&value)
ListActiveViolationsRequest & WithSecurityProfileName(Aws::String &&value)
ListActiveViolationsRequest & WithThingName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListActiveViolationsRequest & WithVerificationState(VerificationState &&value)
ListActiveViolationsRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String