AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetDatabasesRequest.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/DatabaseAttributes.h>
12#include <aws/glue/model/ResourceShareType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Glue {
18namespace Model {
19
23 public:
24 AWS_GLUE_API GetDatabasesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetDatabases"; }
31
32 AWS_GLUE_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
42 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
43 template <typename CatalogIdT = Aws::String>
44 void SetCatalogId(CatalogIdT&& value) {
45 m_catalogIdHasBeenSet = true;
46 m_catalogId = std::forward<CatalogIdT>(value);
47 }
48 template <typename CatalogIdT = Aws::String>
49 GetDatabasesRequest& WithCatalogId(CatalogIdT&& value) {
50 SetCatalogId(std::forward<CatalogIdT>(value));
51 return *this;
52 }
54
56
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 GetDatabasesRequest& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
77 inline int GetMaxResults() const { return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) {
80 m_maxResultsHasBeenSet = true;
81 m_maxResults = value;
82 }
84 SetMaxResults(value);
85 return *this;
86 }
88
90
100 inline ResourceShareType GetResourceShareType() const { return m_resourceShareType; }
101 inline bool ResourceShareTypeHasBeenSet() const { return m_resourceShareTypeHasBeenSet; }
103 m_resourceShareTypeHasBeenSet = true;
104 m_resourceShareType = value;
105 }
108 return *this;
109 }
111
113
118 inline const Aws::Vector<DatabaseAttributes>& GetAttributesToGet() const { return m_attributesToGet; }
119 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
120 template <typename AttributesToGetT = Aws::Vector<DatabaseAttributes>>
121 void SetAttributesToGet(AttributesToGetT&& value) {
122 m_attributesToGetHasBeenSet = true;
123 m_attributesToGet = std::forward<AttributesToGetT>(value);
124 }
125 template <typename AttributesToGetT = Aws::Vector<DatabaseAttributes>>
126 GetDatabasesRequest& WithAttributesToGet(AttributesToGetT&& value) {
127 SetAttributesToGet(std::forward<AttributesToGetT>(value));
128 return *this;
129 }
131 m_attributesToGetHasBeenSet = true;
132 m_attributesToGet.push_back(value);
133 return *this;
134 }
136 private:
137 Aws::String m_catalogId;
138
139 Aws::String m_nextToken;
140
141 int m_maxResults{0};
142
144
145 Aws::Vector<DatabaseAttributes> m_attributesToGet;
146 bool m_catalogIdHasBeenSet = false;
147 bool m_nextTokenHasBeenSet = false;
148 bool m_maxResultsHasBeenSet = false;
149 bool m_resourceShareTypeHasBeenSet = false;
150 bool m_attributesToGetHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Glue
155} // namespace Aws
const Aws::Vector< DatabaseAttributes > & GetAttributesToGet() const
AWS_GLUE_API GetDatabasesRequest()=default
GetDatabasesRequest & WithCatalogId(CatalogIdT &&value)
void SetResourceShareType(ResourceShareType value)
void SetAttributesToGet(AttributesToGetT &&value)
ResourceShareType GetResourceShareType() const
const Aws::String & GetCatalogId() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNextToken() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDatabasesRequest & AddAttributesToGet(DatabaseAttributes value)
GetDatabasesRequest & WithResourceShareType(ResourceShareType value)
GetDatabasesRequest & WithMaxResults(int value)
GetDatabasesRequest & WithNextToken(NextTokenT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
GetDatabasesRequest & WithAttributesToGet(AttributesToGetT &&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