AWS SDK for C++  1.9.153
AWS SDK for C++
ListTasksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DataSync
17 {
18 namespace Model
19 {
20 
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 "ListTasks"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline int GetMaxResults() const{ return m_maxResults; }
46 
50  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
51 
55  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
56 
60  inline ListTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61 
62 
67  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 
73  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 
79  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
80 
85  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 
91  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
92 
97  inline ListTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 
103  inline ListTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
104 
109  inline ListTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
110 
111 
119  inline const Aws::Vector<TaskFilter>& GetFilters() const{ return m_filters; }
120 
128  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
129 
137  inline void SetFilters(const Aws::Vector<TaskFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
138 
146  inline void SetFilters(Aws::Vector<TaskFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
147 
155  inline ListTasksRequest& WithFilters(const Aws::Vector<TaskFilter>& value) { SetFilters(value); return *this;}
156 
164  inline ListTasksRequest& WithFilters(Aws::Vector<TaskFilter>&& value) { SetFilters(std::move(value)); return *this;}
165 
173  inline ListTasksRequest& AddFilters(const TaskFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
174 
182  inline ListTasksRequest& AddFilters(TaskFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
183 
184  private:
185 
186  int m_maxResults;
187  bool m_maxResultsHasBeenSet;
188 
189  Aws::String m_nextToken;
190  bool m_nextTokenHasBeenSet;
191 
192  Aws::Vector<TaskFilter> m_filters;
193  bool m_filtersHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace DataSync
198 } // namespace Aws
Aws::DataSync::Model::ListTasksRequest::WithNextToken
ListTasksRequest & WithNextToken(const char *value)
Definition: ListTasksRequest.h:109
Aws::DataSync::Model::ListTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTasksRequest.h:73
Aws::DataSync::Model::ListTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTasksRequest.h:91
Aws::DataSync::Model::ListTasksRequest::GetFilters
const Aws::Vector< TaskFilter > & GetFilters() const
Definition: ListTasksRequest.h:119
Aws::DataSync::Model::ListTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTasksRequest.h:45
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::ListTasksRequest
Definition: ListTasksRequest.h:27
DataSyncRequest.h
Aws::DataSync::Model::ListTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTasksRequest.h:50
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::ListTasksRequest::AddFilters
ListTasksRequest & AddFilters(const TaskFilter &value)
Definition: ListTasksRequest.h:173
Aws::DataSync::Model::ListTasksRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListTasksRequest.h:128
Aws::DataSync::Model::ListTasksRequest::SetFilters
void SetFilters(const Aws::Vector< TaskFilter > &value)
Definition: ListTasksRequest.h:137
Aws::DataSync::Model::ListTasksRequest::WithFilters
ListTasksRequest & WithFilters(const Aws::Vector< TaskFilter > &value)
Definition: ListTasksRequest.h:155
AWSVector.h
Aws::DataSync::Model::ListTasksRequest::WithMaxResults
ListTasksRequest & WithMaxResults(int value)
Definition: ListTasksRequest.h:60
Aws::DataSync::Model::ListTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTasksRequest.h:79
Aws::DataSync::Model::ListTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTasksRequest.h:85
Aws::DataSync::Model::ListTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTasksRequest.h:67
Aws::DataSync::Model::ListTasksRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
DataSync_EXPORTS.h
TaskFilter.h
Aws::DataSync::Model::ListTasksRequest::WithNextToken
ListTasksRequest & WithNextToken(Aws::String &&value)
Definition: ListTasksRequest.h:103
Aws::DataSync::Model::ListTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTasksRequest.h:35
Aws::DataSync::Model::ListTasksRequest::WithNextToken
ListTasksRequest & WithNextToken(const Aws::String &value)
Definition: ListTasksRequest.h:97
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::ListTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTasksRequest.h:55
Aws::DataSync::Model::ListTasksRequest::WithFilters
ListTasksRequest & WithFilters(Aws::Vector< TaskFilter > &&value)
Definition: ListTasksRequest.h:164
Aws::DataSync::Model::TaskFilter
Definition: TaskFilter.h:39
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::ListTasksRequest::SetFilters
void SetFilters(Aws::Vector< TaskFilter > &&value)
Definition: ListTasksRequest.h:146
Aws::DataSync::Model::ListTasksRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::ListTasksRequest::AddFilters
ListTasksRequest & AddFilters(TaskFilter &&value)
Definition: ListTasksRequest.h:182
Aws::DataSync::Model::ListTasksRequest::ListTasksRequest
ListTasksRequest()