AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ListCrawlsRequest.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/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/CrawlsFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API ListCrawlsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListCrawls"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetCrawlerName() const { return m_crawlerName; }
40 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
41 template <typename CrawlerNameT = Aws::String>
42 void SetCrawlerName(CrawlerNameT&& value) {
43 m_crawlerNameHasBeenSet = true;
44 m_crawlerName = std::forward<CrawlerNameT>(value);
45 }
46 template <typename CrawlerNameT = Aws::String>
47 ListCrawlsRequest& WithCrawlerName(CrawlerNameT&& value) {
48 SetCrawlerName(std::forward<CrawlerNameT>(value));
49 return *this;
50 }
52
54
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) {
61 m_maxResultsHasBeenSet = true;
62 m_maxResults = value;
63 }
64 inline ListCrawlsRequest& WithMaxResults(int value) {
65 SetMaxResults(value);
66 return *this;
67 }
69
71
75 inline const Aws::Vector<CrawlsFilter>& GetFilters() const { return m_filters; }
76 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
77 template <typename FiltersT = Aws::Vector<CrawlsFilter>>
78 void SetFilters(FiltersT&& value) {
79 m_filtersHasBeenSet = true;
80 m_filters = std::forward<FiltersT>(value);
81 }
82 template <typename FiltersT = Aws::Vector<CrawlsFilter>>
83 ListCrawlsRequest& WithFilters(FiltersT&& value) {
84 SetFilters(std::forward<FiltersT>(value));
85 return *this;
86 }
87 template <typename FiltersT = CrawlsFilter>
88 ListCrawlsRequest& AddFilters(FiltersT&& value) {
89 m_filtersHasBeenSet = true;
90 m_filters.emplace_back(std::forward<FiltersT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetNextToken() const { return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 template <typename NextTokenT = Aws::String>
102 void SetNextToken(NextTokenT&& value) {
103 m_nextTokenHasBeenSet = true;
104 m_nextToken = std::forward<NextTokenT>(value);
105 }
106 template <typename NextTokenT = Aws::String>
107 ListCrawlsRequest& WithNextToken(NextTokenT&& value) {
108 SetNextToken(std::forward<NextTokenT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_crawlerName;
114 bool m_crawlerNameHasBeenSet = false;
115
116 int m_maxResults{0};
117 bool m_maxResultsHasBeenSet = false;
118
120 bool m_filtersHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Glue
128} // namespace Aws
ListCrawlsRequest & WithCrawlerName(CrawlerNameT &&value)
AWS_GLUE_API ListCrawlsRequest()=default
ListCrawlsRequest & AddFilters(FiltersT &&value)
ListCrawlsRequest & WithFilters(FiltersT &&value)
ListCrawlsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< CrawlsFilter > & GetFilters() const
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API Aws::String SerializePayload() const override
void SetNextToken(NextTokenT &&value)
void SetCrawlerName(CrawlerNameT &&value)
ListCrawlsRequest & WithMaxResults(int value)
const Aws::String & GetCrawlerName() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetNextToken() const
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