AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GlueTable.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/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29class GlueTable {
30 public:
31 AWS_GLUE_API GlueTable() = default;
32 AWS_GLUE_API GlueTable(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
41 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
42 template <typename DatabaseNameT = Aws::String>
43 void SetDatabaseName(DatabaseNameT&& value) {
44 m_databaseNameHasBeenSet = true;
45 m_databaseName = std::forward<DatabaseNameT>(value);
46 }
47 template <typename DatabaseNameT = Aws::String>
48 GlueTable& WithDatabaseName(DatabaseNameT&& value) {
49 SetDatabaseName(std::forward<DatabaseNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTableName() const { return m_tableName; }
59 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
60 template <typename TableNameT = Aws::String>
61 void SetTableName(TableNameT&& value) {
62 m_tableNameHasBeenSet = true;
63 m_tableName = std::forward<TableNameT>(value);
64 }
65 template <typename TableNameT = Aws::String>
66 GlueTable& WithTableName(TableNameT&& value) {
67 SetTableName(std::forward<TableNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
77 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
78 template <typename CatalogIdT = Aws::String>
79 void SetCatalogId(CatalogIdT&& value) {
80 m_catalogIdHasBeenSet = true;
81 m_catalogId = std::forward<CatalogIdT>(value);
82 }
83 template <typename CatalogIdT = Aws::String>
84 GlueTable& WithCatalogId(CatalogIdT&& value) {
85 SetCatalogId(std::forward<CatalogIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
95 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
96 template <typename ConnectionNameT = Aws::String>
97 void SetConnectionName(ConnectionNameT&& value) {
98 m_connectionNameHasBeenSet = true;
99 m_connectionName = std::forward<ConnectionNameT>(value);
100 }
101 template <typename ConnectionNameT = Aws::String>
102 GlueTable& WithConnectionName(ConnectionNameT&& value) {
103 SetConnectionName(std::forward<ConnectionNameT>(value));
104 return *this;
105 }
107
109
116 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
117 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
118 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
119 void SetAdditionalOptions(AdditionalOptionsT&& value) {
120 m_additionalOptionsHasBeenSet = true;
121 m_additionalOptions = std::forward<AdditionalOptionsT>(value);
122 }
123 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
124 GlueTable& WithAdditionalOptions(AdditionalOptionsT&& value) {
125 SetAdditionalOptions(std::forward<AdditionalOptionsT>(value));
126 return *this;
127 }
128 template <typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
129 GlueTable& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
130 m_additionalOptionsHasBeenSet = true;
131 m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_databaseName;
137
138 Aws::String m_tableName;
139
140 Aws::String m_catalogId;
141
142 Aws::String m_connectionName;
143
144 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
145 bool m_databaseNameHasBeenSet = false;
146 bool m_tableNameHasBeenSet = false;
147 bool m_catalogIdHasBeenSet = false;
148 bool m_connectionNameHasBeenSet = false;
149 bool m_additionalOptionsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Glue
154} // namespace Aws
AWS_GLUE_API GlueTable & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AdditionalOptionsHasBeenSet() const
Definition GlueTable.h:117
GlueTable & WithDatabaseName(DatabaseNameT &&value)
Definition GlueTable.h:48
AWS_GLUE_API GlueTable(Aws::Utils::Json::JsonView jsonValue)
GlueTable & WithCatalogId(CatalogIdT &&value)
Definition GlueTable.h:84
const Aws::String & GetDatabaseName() const
Definition GlueTable.h:40
GlueTable & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
Definition GlueTable.h:129
GlueTable & WithAdditionalOptions(AdditionalOptionsT &&value)
Definition GlueTable.h:124
void SetCatalogId(CatalogIdT &&value)
Definition GlueTable.h:79
const Aws::String & GetCatalogId() const
Definition GlueTable.h:76
const Aws::String & GetTableName() const
Definition GlueTable.h:58
bool CatalogIdHasBeenSet() const
Definition GlueTable.h:77
bool TableNameHasBeenSet() const
Definition GlueTable.h:59
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
Definition GlueTable.h:116
bool DatabaseNameHasBeenSet() const
Definition GlueTable.h:41
GlueTable & WithTableName(TableNameT &&value)
Definition GlueTable.h:66
void SetAdditionalOptions(AdditionalOptionsT &&value)
Definition GlueTable.h:119
void SetDatabaseName(DatabaseNameT &&value)
Definition GlueTable.h:43
bool ConnectionNameHasBeenSet() const
Definition GlueTable.h:95
void SetConnectionName(ConnectionNameT &&value)
Definition GlueTable.h:97
void SetTableName(TableNameT &&value)
Definition GlueTable.h:61
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API GlueTable()=default
const Aws::String & GetConnectionName() const
Definition GlueTable.h:94
GlueTable & WithConnectionName(ConnectionNameT &&value)
Definition GlueTable.h:102
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
Aws::Utils::Json::JsonValue JsonValue