AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
ListDatabasesRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Athena {
15namespace Model {
16
20 public:
21 AWS_ATHENA_API ListDatabasesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListDatabases"; }
28
29 AWS_ATHENA_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetCatalogName() const { return m_catalogName; }
38 inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; }
39 template <typename CatalogNameT = Aws::String>
40 void SetCatalogName(CatalogNameT&& value) {
41 m_catalogNameHasBeenSet = true;
42 m_catalogName = std::forward<CatalogNameT>(value);
43 }
44 template <typename CatalogNameT = Aws::String>
45 ListDatabasesRequest& WithCatalogName(CatalogNameT&& value) {
46 SetCatalogName(std::forward<CatalogNameT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 ListDatabasesRequest& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) {
79 m_maxResultsHasBeenSet = true;
80 m_maxResults = value;
81 }
83 SetMaxResults(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
94 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
95 template <typename WorkGroupT = Aws::String>
96 void SetWorkGroup(WorkGroupT&& value) {
97 m_workGroupHasBeenSet = true;
98 m_workGroup = std::forward<WorkGroupT>(value);
99 }
100 template <typename WorkGroupT = Aws::String>
101 ListDatabasesRequest& WithWorkGroup(WorkGroupT&& value) {
102 SetWorkGroup(std::forward<WorkGroupT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_catalogName;
108 bool m_catalogNameHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
113 int m_maxResults{0};
114 bool m_maxResultsHasBeenSet = false;
115
116 Aws::String m_workGroup;
117 bool m_workGroupHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Athena
122} // namespace Aws
AWS_ATHENA_API Aws::String SerializePayload() const override
ListDatabasesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListDatabasesRequest & WithWorkGroup(WorkGroupT &&value)
AWS_ATHENA_API ListDatabasesRequest()=default
ListDatabasesRequest & WithCatalogName(CatalogNameT &&value)
ListDatabasesRequest & WithNextToken(NextTokenT &&value)
AWS_ATHENA_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