AWS SDK for C++  1.9.109
AWS SDK for C++
ListDetectorsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoTEventsData
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListDetectors"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
45 
49  inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
50 
54  inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
55 
59  inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
60 
64  inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
65 
69  inline ListDetectorsRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
70 
74  inline ListDetectorsRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
75 
79  inline ListDetectorsRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
80 
81 
86  inline const Aws::String& GetStateName() const{ return m_stateName; }
87 
92  inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
93 
98  inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
99 
104  inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
105 
110  inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); }
111 
116  inline ListDetectorsRequest& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
117 
122  inline ListDetectorsRequest& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
123 
128  inline ListDetectorsRequest& WithStateName(const char* value) { SetStateName(value); return *this;}
129 
130 
134  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
135 
139  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 
144  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
145 
149  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
150 
154  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
155 
159  inline ListDetectorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
160 
164  inline ListDetectorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
165 
169  inline ListDetectorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
170 
171 
175  inline int GetMaxResults() const{ return m_maxResults; }
176 
180  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
181 
185  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
186 
190  inline ListDetectorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
191 
192  private:
193 
194  Aws::String m_detectorModelName;
195  bool m_detectorModelNameHasBeenSet;
196 
197  Aws::String m_stateName;
198  bool m_stateNameHasBeenSet;
199 
200  Aws::String m_nextToken;
201  bool m_nextTokenHasBeenSet;
202 
203  int m_maxResults;
204  bool m_maxResultsHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace IoTEventsData
209 } // namespace Aws
Aws::IoTEventsData::Model::ListDetectorsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDetectorsRequest.h:139
Aws::IoTEventsData::Model::ListDetectorsRequest::WithMaxResults
ListDetectorsRequest & WithMaxResults(int value)
Definition: ListDetectorsRequest.h:190
Aws::IoTEventsData::Model::ListDetectorsRequest::WithNextToken
ListDetectorsRequest & WithNextToken(const char *value)
Definition: ListDetectorsRequest.h:169
Aws::IoTEventsData::Model::ListDetectorsRequest::SetDetectorModelName
void SetDetectorModelName(Aws::String &&value)
Definition: ListDetectorsRequest.h:59
Aws::Http::URI
Definition: URI.h:32
Aws::IoTEventsData::Model::ListDetectorsRequest::SetDetectorModelName
void SetDetectorModelName(const char *value)
Definition: ListDetectorsRequest.h:64
Aws::IoTEventsData::Model::ListDetectorsRequest::WithStateName
ListDetectorsRequest & WithStateName(Aws::String &&value)
Definition: ListDetectorsRequest.h:122
Aws::IoTEventsData::Model::ListDetectorsRequest::GetDetectorModelName
const Aws::String & GetDetectorModelName() const
Definition: ListDetectorsRequest.h:44
Aws::IoTEventsData::Model::ListDetectorsRequest::WithStateName
ListDetectorsRequest & WithStateName(const char *value)
Definition: ListDetectorsRequest.h:128
Aws::IoTEventsData::Model::ListDetectorsRequest::SetStateName
void SetStateName(const Aws::String &value)
Definition: ListDetectorsRequest.h:98
Aws::IoTEventsData::Model::ListDetectorsRequest::DetectorModelNameHasBeenSet
bool DetectorModelNameHasBeenSet() const
Definition: ListDetectorsRequest.h:49
Aws::IoTEventsData::Model::ListDetectorsRequest::WithNextToken
ListDetectorsRequest & WithNextToken(Aws::String &&value)
Definition: ListDetectorsRequest.h:164
Aws::IoTEventsData::Model::ListDetectorsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDetectorsRequest.h:180
Aws::IoTEventsData::Model::ListDetectorsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoTEventsData::Model::ListDetectorsRequest::WithDetectorModelName
ListDetectorsRequest & WithDetectorModelName(Aws::String &&value)
Definition: ListDetectorsRequest.h:74
Aws::IoTEventsData::Model::ListDetectorsRequest::GetStateName
const Aws::String & GetStateName() const
Definition: ListDetectorsRequest.h:86
Aws::IoTEventsData::Model::ListDetectorsRequest
Definition: ListDetectorsRequest.h:26
Aws::IoTEventsData::Model::ListDetectorsRequest::ListDetectorsRequest
ListDetectorsRequest()
Aws::IoTEventsData::Model::ListDetectorsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDetectorsRequest.h:144
AWSString.h
IoTEventsDataRequest.h
Aws::IoTEventsData::Model::ListDetectorsRequest::WithNextToken
ListDetectorsRequest & WithNextToken(const Aws::String &value)
Definition: ListDetectorsRequest.h:159
IoTEventsData_EXPORTS.h
AWS_IOTEVENTSDATA_API
#define AWS_IOTEVENTSDATA_API
Definition: IoTEventsData_EXPORTS.h:28
Aws::IoTEventsData::Model::ListDetectorsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDetectorsRequest.h:185
Aws::IoTEventsData::Model::ListDetectorsRequest::SetStateName
void SetStateName(const char *value)
Definition: ListDetectorsRequest.h:110
Aws::IoTEventsData::Model::ListDetectorsRequest::WithDetectorModelName
ListDetectorsRequest & WithDetectorModelName(const Aws::String &value)
Definition: ListDetectorsRequest.h:69
Aws::IoTEventsData::Model::ListDetectorsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::IoTEventsData::Model::ListDetectorsRequest::WithStateName
ListDetectorsRequest & WithStateName(const Aws::String &value)
Definition: ListDetectorsRequest.h:116
Aws::IoTEventsData::Model::ListDetectorsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDetectorsRequest.h:134
Aws::IoTEventsData::Model::ListDetectorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDetectorsRequest.h:34
Aws::IoTEventsData::Model::ListDetectorsRequest::SetDetectorModelName
void SetDetectorModelName(const Aws::String &value)
Definition: ListDetectorsRequest.h:54
Aws::IoTEventsData::Model::ListDetectorsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDetectorsRequest.h:154
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTEventsData::Model::ListDetectorsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDetectorsRequest.h:175
Aws::IoTEventsData::IoTEventsDataRequest
Definition: IoTEventsDataRequest.h:17
Aws::IoTEventsData::Model::ListDetectorsRequest::SetStateName
void SetStateName(Aws::String &&value)
Definition: ListDetectorsRequest.h:104
Aws::IoTEventsData::Model::ListDetectorsRequest::StateNameHasBeenSet
bool StateNameHasBeenSet() const
Definition: ListDetectorsRequest.h:92
Aws::IoTEventsData::Model::ListDetectorsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDetectorsRequest.h:149
Aws::IoTEventsData::Model::ListDetectorsRequest::WithDetectorModelName
ListDetectorsRequest & WithDetectorModelName(const char *value)
Definition: ListDetectorsRequest.h:79