AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListTasksRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datasync/DataSyncRequest.h>
10#include <aws/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/TaskFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataSync {
17namespace Model {
18
25 public:
26 AWS_DATASYNC_API ListTasksRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListTasks"; }
33
34 AWS_DATASYNC_API Aws::String SerializePayload() const override;
35
37
39
42 inline int GetMaxResults() const { return m_maxResults; }
43 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
44 inline void SetMaxResults(int value) {
45 m_maxResultsHasBeenSet = true;
46 m_maxResults = value;
47 }
48 inline ListTasksRequest& WithMaxResults(int value) {
49 SetMaxResults(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 ListTasksRequest& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::Vector<TaskFilter>& GetFilters() const { return m_filters; }
82 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
83 template <typename FiltersT = Aws::Vector<TaskFilter>>
84 void SetFilters(FiltersT&& value) {
85 m_filtersHasBeenSet = true;
86 m_filters = std::forward<FiltersT>(value);
87 }
88 template <typename FiltersT = Aws::Vector<TaskFilter>>
89 ListTasksRequest& WithFilters(FiltersT&& value) {
90 SetFilters(std::forward<FiltersT>(value));
91 return *this;
92 }
93 template <typename FiltersT = TaskFilter>
94 ListTasksRequest& AddFilters(FiltersT&& value) {
95 m_filtersHasBeenSet = true;
96 m_filters.emplace_back(std::forward<FiltersT>(value));
97 return *this;
98 }
100 private:
101 int m_maxResults{0};
102
103 Aws::String m_nextToken;
104
105 Aws::Vector<TaskFilter> m_filters;
106 bool m_maxResultsHasBeenSet = false;
107 bool m_nextTokenHasBeenSet = false;
108 bool m_filtersHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace DataSync
113} // namespace Aws
const Aws::String & GetNextToken() const
const Aws::Vector< TaskFilter > & GetFilters() const
AWS_DATASYNC_API ListTasksRequest()=default
ListTasksRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListTasksRequest & WithFilters(FiltersT &&value)
ListTasksRequest & WithMaxResults(int value)
ListTasksRequest & AddFilters(FiltersT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector