AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
48 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
49 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
50 inline GetDatabasesRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
51 inline GetDatabasesRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
52 inline GetDatabasesRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
54
56
59 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
62 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
63 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
64 inline GetDatabasesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
65 inline GetDatabasesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
66 inline GetDatabasesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
68
70
73 inline int GetMaxResults() const{ return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline GetDatabasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
90 inline const ResourceShareType& GetResourceShareType() const{ return m_resourceShareType; }
91 inline bool ResourceShareTypeHasBeenSet() const { return m_resourceShareTypeHasBeenSet; }
92 inline void SetResourceShareType(const ResourceShareType& value) { m_resourceShareTypeHasBeenSet = true; m_resourceShareType = value; }
93 inline void SetResourceShareType(ResourceShareType&& value) { m_resourceShareTypeHasBeenSet = true; m_resourceShareType = std::move(value); }
95 inline GetDatabasesRequest& WithResourceShareType(ResourceShareType&& value) { SetResourceShareType(std::move(value)); return *this;}
97
99
104 inline const Aws::Vector<DatabaseAttributes>& GetAttributesToGet() const{ return m_attributesToGet; }
105 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
106 inline void SetAttributesToGet(const Aws::Vector<DatabaseAttributes>& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = value; }
107 inline void SetAttributesToGet(Aws::Vector<DatabaseAttributes>&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = std::move(value); }
110 inline GetDatabasesRequest& AddAttributesToGet(const DatabaseAttributes& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(value); return *this; }
111 inline GetDatabasesRequest& AddAttributesToGet(DatabaseAttributes&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::String m_catalogId;
116 bool m_catalogIdHasBeenSet = false;
117
118 Aws::String m_nextToken;
119 bool m_nextTokenHasBeenSet = false;
120
121 int m_maxResults;
122 bool m_maxResultsHasBeenSet = false;
123
124 ResourceShareType m_resourceShareType;
125 bool m_resourceShareTypeHasBeenSet = false;
126
127 Aws::Vector<DatabaseAttributes> m_attributesToGet;
128 bool m_attributesToGetHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Glue
133} // namespace Aws
GetDatabasesRequest & WithCatalogId(Aws::String &&value)
GetDatabasesRequest & AddAttributesToGet(const DatabaseAttributes &value)
const Aws::Vector< DatabaseAttributes > & GetAttributesToGet() const
GetDatabasesRequest & WithCatalogId(const Aws::String &value)
void SetResourceShareType(ResourceShareType &&value)
GetDatabasesRequest & WithAttributesToGet(Aws::Vector< DatabaseAttributes > &&value)
void SetAttributesToGet(Aws::Vector< DatabaseAttributes > &&value)
GetDatabasesRequest & AddAttributesToGet(DatabaseAttributes &&value)
const Aws::String & GetCatalogId() const
virtual const char * GetServiceRequestName() const override
GetDatabasesRequest & WithNextToken(const Aws::String &value)
void SetAttributesToGet(const Aws::Vector< DatabaseAttributes > &value)
const Aws::String & GetNextToken() const
GetDatabasesRequest & WithNextToken(const char *value)
void SetResourceShareType(const ResourceShareType &value)
GetDatabasesRequest & WithResourceShareType(const ResourceShareType &value)
GetDatabasesRequest & WithAttributesToGet(const Aws::Vector< DatabaseAttributes > &value)
GetDatabasesRequest & WithNextToken(Aws::String &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ResourceShareType & GetResourceShareType() const
void SetCatalogId(const Aws::String &value)
GetDatabasesRequest & WithResourceShareType(ResourceShareType &&value)
void SetNextToken(const Aws::String &value)
GetDatabasesRequest & WithMaxResults(int value)
AWS_GLUE_API Aws::String SerializePayload() const override
GetDatabasesRequest & WithCatalogId(const char *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