AWS SDK for C++  1.9.109
AWS SDK for C++
ListAuditTasksRequest.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>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace IoT
22 {
23 namespace 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 "ListAuditTasks"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
49  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
50 
56  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
57 
63  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
64 
70  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
71 
77  inline ListAuditTasksRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
78 
84  inline ListAuditTasksRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
85 
86 
90  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
91 
95  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
96 
100  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
101 
105  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
106 
110  inline ListAuditTasksRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
111 
115  inline ListAuditTasksRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
116 
117 
122  inline const AuditTaskType& GetTaskType() const{ return m_taskType; }
123 
128  inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
129 
134  inline void SetTaskType(const AuditTaskType& value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
135 
140  inline void SetTaskType(AuditTaskType&& value) { m_taskTypeHasBeenSet = true; m_taskType = std::move(value); }
141 
146  inline ListAuditTasksRequest& WithTaskType(const AuditTaskType& value) { SetTaskType(value); return *this;}
147 
152  inline ListAuditTasksRequest& WithTaskType(AuditTaskType&& value) { SetTaskType(std::move(value)); return *this;}
153 
154 
159  inline const AuditTaskStatus& GetTaskStatus() const{ return m_taskStatus; }
160 
165  inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
166 
171  inline void SetTaskStatus(const AuditTaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
172 
177  inline void SetTaskStatus(AuditTaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); }
178 
183  inline ListAuditTasksRequest& WithTaskStatus(const AuditTaskStatus& value) { SetTaskStatus(value); return *this;}
184 
189  inline ListAuditTasksRequest& WithTaskStatus(AuditTaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;}
190 
191 
195  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
196 
200  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
201 
205  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
206 
210  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
211 
215  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
216 
220  inline ListAuditTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
221 
225  inline ListAuditTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
226 
230  inline ListAuditTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
231 
232 
236  inline int GetMaxResults() const{ return m_maxResults; }
237 
241  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
242 
246  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
247 
251  inline ListAuditTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
252 
253  private:
254 
255  Aws::Utils::DateTime m_startTime;
256  bool m_startTimeHasBeenSet;
257 
258  Aws::Utils::DateTime m_endTime;
259  bool m_endTimeHasBeenSet;
260 
261  AuditTaskType m_taskType;
262  bool m_taskTypeHasBeenSet;
263 
264  AuditTaskStatus m_taskStatus;
265  bool m_taskStatusHasBeenSet;
266 
267  Aws::String m_nextToken;
268  bool m_nextTokenHasBeenSet;
269 
270  int m_maxResults;
271  bool m_maxResultsHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace IoT
276 } // namespace Aws
Aws::IoT::Model::ListAuditTasksRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: ListAuditTasksRequest.h:95
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::ListAuditTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAuditTasksRequest.h:37
Aws::IoT::Model::ListAuditTasksRequest::WithEndTime
ListAuditTasksRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: ListAuditTasksRequest.h:110
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListAuditTasksRequest::TaskStatusHasBeenSet
bool TaskStatusHasBeenSet() const
Definition: ListAuditTasksRequest.h:165
Aws::IoT::Model::ListAuditTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAuditTasksRequest.h:195
Aws::IoT::Model::ListAuditTasksRequest::WithTaskType
ListAuditTasksRequest & WithTaskType(const AuditTaskType &value)
Definition: ListAuditTasksRequest.h:146
Aws::IoT::Model::ListAuditTasksRequest::SetTaskStatus
void SetTaskStatus(AuditTaskStatus &&value)
Definition: ListAuditTasksRequest.h:177
Aws::IoT::Model::ListAuditTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAuditTasksRequest.h:200
Aws::IoT::Model::ListAuditTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAuditTasksRequest.h:241
Aws::IoT::Model::ListAuditTasksRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: ListAuditTasksRequest.h:90
Aws::IoT::Model::ListAuditTasksRequest::WithTaskStatus
ListAuditTasksRequest & WithTaskStatus(AuditTaskStatus &&value)
Definition: ListAuditTasksRequest.h:189
DateTime.h
Aws::IoT::Model::ListAuditTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListAuditTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAuditTasksRequest.h:205
Aws::IoT::Model::ListAuditTasksRequest::GetTaskType
const AuditTaskType & GetTaskType() const
Definition: ListAuditTasksRequest.h:122
Aws::IoT::Model::AuditTaskType
AuditTaskType
Definition: AuditTaskType.h:17
Aws::IoT::Model::ListAuditTasksRequest::ListAuditTasksRequest
ListAuditTasksRequest()
Aws::IoT::Model::ListAuditTasksRequest::WithStartTime
ListAuditTasksRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: ListAuditTasksRequest.h:77
Aws::IoT::Model::ListAuditTasksRequest::TaskTypeHasBeenSet
bool TaskTypeHasBeenSet() const
Definition: ListAuditTasksRequest.h:128
Aws::IoT::Model::AuditTaskStatus
AuditTaskStatus
Definition: AuditTaskStatus.h:17
Aws::IoT::Model::ListAuditTasksRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: ListAuditTasksRequest.h:70
Aws::IoT::Model::ListAuditTasksRequest::WithNextToken
ListAuditTasksRequest & WithNextToken(const Aws::String &value)
Definition: ListAuditTasksRequest.h:220
Aws::IoT::Model::ListAuditTasksRequest::WithTaskStatus
ListAuditTasksRequest & WithTaskStatus(const AuditTaskStatus &value)
Definition: ListAuditTasksRequest.h:183
Aws::IoT::Model::ListAuditTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAuditTasksRequest.h:236
Aws::IoT::Model::ListAuditTasksRequest::GetTaskStatus
const AuditTaskStatus & GetTaskStatus() const
Definition: ListAuditTasksRequest.h:159
Aws::IoT::Model::ListAuditTasksRequest::SetTaskType
void SetTaskType(const AuditTaskType &value)
Definition: ListAuditTasksRequest.h:134
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListAuditTasksRequest::SetTaskType
void SetTaskType(AuditTaskType &&value)
Definition: ListAuditTasksRequest.h:140
Aws::IoT::Model::ListAuditTasksRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: ListAuditTasksRequest.h:100
Aws::IoT::Model::ListAuditTasksRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: ListAuditTasksRequest.h:105
Aws::IoT::Model::ListAuditTasksRequest::WithEndTime
ListAuditTasksRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: ListAuditTasksRequest.h:115
AuditTaskType.h
Aws::IoT::Model::ListAuditTasksRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ListAuditTasksRequest.h:56
Aws::IoT::Model::ListAuditTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAuditTasksRequest.h:215
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListAuditTasksRequest
Definition: ListAuditTasksRequest.h:29
Aws::IoT::Model::ListAuditTasksRequest::WithTaskType
ListAuditTasksRequest & WithTaskType(AuditTaskType &&value)
Definition: ListAuditTasksRequest.h:152
Aws::IoT::Model::ListAuditTasksRequest::WithMaxResults
ListAuditTasksRequest & WithMaxResults(int value)
Definition: ListAuditTasksRequest.h:251
AuditTaskStatus.h
Aws::IoT::Model::ListAuditTasksRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: ListAuditTasksRequest.h:49
Aws::IoT::Model::ListAuditTasksRequest::WithNextToken
ListAuditTasksRequest & WithNextToken(const char *value)
Definition: ListAuditTasksRequest.h:230
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::ListAuditTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAuditTasksRequest.h:210
Aws::IoT::Model::ListAuditTasksRequest::WithStartTime
ListAuditTasksRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: ListAuditTasksRequest.h:84
Aws::IoT::Model::ListAuditTasksRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: ListAuditTasksRequest.h:63
IoTRequest.h
Aws::IoT::Model::ListAuditTasksRequest::WithNextToken
ListAuditTasksRequest & WithNextToken(Aws::String &&value)
Definition: ListAuditTasksRequest.h:225
Aws::IoT::Model::ListAuditTasksRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListAuditTasksRequest::SetTaskStatus
void SetTaskStatus(const AuditTaskStatus &value)
Definition: ListAuditTasksRequest.h:171
Aws::IoT::Model::ListAuditTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAuditTasksRequest.h:246
IoT_EXPORTS.h