AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetDatabasesRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/ResourceShareType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/DatabaseAttributes.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Glue
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GLUE_API GetDatabasesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetDatabases"; }
34
35 AWS_GLUE_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
46 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
47 template<typename CatalogIdT = Aws::String>
48 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
49 template<typename CatalogIdT = Aws::String>
50 GetDatabasesRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template<typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
61 template<typename NextTokenT = Aws::String>
62 GetDatabasesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
64
66
69 inline int GetMaxResults() const { return m_maxResults; }
70 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
71 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
72 inline GetDatabasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
74
76
86 inline ResourceShareType GetResourceShareType() const { return m_resourceShareType; }
87 inline bool ResourceShareTypeHasBeenSet() const { return m_resourceShareTypeHasBeenSet; }
88 inline void SetResourceShareType(ResourceShareType value) { m_resourceShareTypeHasBeenSet = true; m_resourceShareType = value; }
91
93
98 inline const Aws::Vector<DatabaseAttributes>& GetAttributesToGet() const { return m_attributesToGet; }
99 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
100 template<typename AttributesToGetT = Aws::Vector<DatabaseAttributes>>
101 void SetAttributesToGet(AttributesToGetT&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = std::forward<AttributesToGetT>(value); }
102 template<typename AttributesToGetT = Aws::Vector<DatabaseAttributes>>
103 GetDatabasesRequest& WithAttributesToGet(AttributesToGetT&& value) { SetAttributesToGet(std::forward<AttributesToGetT>(value)); return *this;}
104 inline GetDatabasesRequest& AddAttributesToGet(DatabaseAttributes value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(value); return *this; }
106 private:
107
108 Aws::String m_catalogId;
109 bool m_catalogIdHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116
118 bool m_resourceShareTypeHasBeenSet = false;
119
120 Aws::Vector<DatabaseAttributes> m_attributesToGet;
121 bool m_attributesToGetHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Glue
126} // 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