AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListTasksRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/TaskFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataSync
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_DATASYNC_API ListTasksRequest();
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_DATASYNC_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline int GetMaxResults() const{ return m_maxResults; }
47 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
48 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
49 inline ListTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
51
53
57 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
61 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
62 inline ListTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
63 inline ListTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
64 inline ListTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
66
68
75 inline const Aws::Vector<TaskFilter>& GetFilters() const{ return m_filters; }
76 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
77 inline void SetFilters(const Aws::Vector<TaskFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
78 inline void SetFilters(Aws::Vector<TaskFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
79 inline ListTasksRequest& WithFilters(const Aws::Vector<TaskFilter>& value) { SetFilters(value); return *this;}
80 inline ListTasksRequest& WithFilters(Aws::Vector<TaskFilter>&& value) { SetFilters(std::move(value)); return *this;}
81 inline ListTasksRequest& AddFilters(const TaskFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
82 inline ListTasksRequest& AddFilters(TaskFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
84 private:
85
86 int m_maxResults;
87 bool m_maxResultsHasBeenSet = false;
88
89 Aws::String m_nextToken;
90 bool m_nextTokenHasBeenSet = false;
91
93 bool m_filtersHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace DataSync
98} // namespace Aws
ListTasksRequest & WithNextToken(const char *value)
const Aws::String & GetNextToken() const
ListTasksRequest & WithFilters(const Aws::Vector< TaskFilter > &value)
const Aws::Vector< TaskFilter > & GetFilters() const
ListTasksRequest & AddFilters(TaskFilter &&value)
ListTasksRequest & WithNextToken(const Aws::String &value)
void SetNextToken(const Aws::String &value)
ListTasksRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetFilters(const Aws::Vector< TaskFilter > &value)
ListTasksRequest & WithMaxResults(int value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTasksRequest & AddFilters(const TaskFilter &value)
void SetNextToken(Aws::String &&value)
void SetFilters(Aws::Vector< TaskFilter > &&value)
ListTasksRequest & WithFilters(Aws::Vector< TaskFilter > &&value)
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