AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
ListCrawlersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API ListCrawlersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListCrawlers"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
38 inline int GetMaxResults() const { return m_maxResults; }
39 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
40 inline void SetMaxResults(int value) {
41 m_maxResultsHasBeenSet = true;
42 m_maxResults = value;
43 }
45 SetMaxResults(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetNextToken() const { return m_nextToken; }
55 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
56 template <typename NextTokenT = Aws::String>
57 void SetNextToken(NextTokenT&& value) {
58 m_nextTokenHasBeenSet = true;
59 m_nextToken = std::forward<NextTokenT>(value);
60 }
61 template <typename NextTokenT = Aws::String>
62 ListCrawlersRequest& WithNextToken(NextTokenT&& value) {
63 SetNextToken(std::forward<NextTokenT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 void SetTags(TagsT&& value) {
76 m_tagsHasBeenSet = true;
77 m_tags = std::forward<TagsT>(value);
78 }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 ListCrawlersRequest& WithTags(TagsT&& value) {
81 SetTags(std::forward<TagsT>(value));
82 return *this;
83 }
84 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
85 ListCrawlersRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
88 return *this;
89 }
91 private:
92 int m_maxResults{0};
93 bool m_maxResultsHasBeenSet = false;
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
99 bool m_tagsHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Glue
104} // namespace Aws
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
ListCrawlersRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetNextToken() const
AWS_GLUE_API ListCrawlersRequest()=default
AWS_GLUE_API Aws::String SerializePayload() const override
ListCrawlersRequest & WithMaxResults(int value)
ListCrawlersRequest & WithNextToken(NextTokenT &&value)
ListCrawlersRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String