AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GlueTable.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLUE_API GlueTable() = default;
37 AWS_GLUE_API GlueTable(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
47 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
48 template<typename DatabaseNameT = Aws::String>
49 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
50 template<typename DatabaseNameT = Aws::String>
51 GlueTable& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
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) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
62 template<typename TableNameT = Aws::String>
63 GlueTable& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
71 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
72 template<typename CatalogIdT = Aws::String>
73 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
74 template<typename CatalogIdT = Aws::String>
75 GlueTable& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
83 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
84 template<typename ConnectionNameT = Aws::String>
85 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
86 template<typename ConnectionNameT = Aws::String>
87 GlueTable& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
89
91
98 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
99 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
100 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
101 void SetAdditionalOptions(AdditionalOptionsT&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::forward<AdditionalOptionsT>(value); }
102 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
103 GlueTable& WithAdditionalOptions(AdditionalOptionsT&& value) { SetAdditionalOptions(std::forward<AdditionalOptionsT>(value)); return *this;}
104 template<typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
105 GlueTable& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
106 m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value)); return *this;
107 }
109 private:
110
111 Aws::String m_databaseName;
112 bool m_databaseNameHasBeenSet = false;
113
114 Aws::String m_tableName;
115 bool m_tableNameHasBeenSet = false;
116
117 Aws::String m_catalogId;
118 bool m_catalogIdHasBeenSet = false;
119
120 Aws::String m_connectionName;
121 bool m_connectionNameHasBeenSet = false;
122
123 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
124 bool m_additionalOptionsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Glue
129} // namespace Aws
AWS_GLUE_API GlueTable & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AdditionalOptionsHasBeenSet() const
Definition GlueTable.h:99
GlueTable & WithDatabaseName(DatabaseNameT &&value)
Definition GlueTable.h:51
AWS_GLUE_API GlueTable(Aws::Utils::Json::JsonView jsonValue)
GlueTable & WithCatalogId(CatalogIdT &&value)
Definition GlueTable.h:75
const Aws::String & GetDatabaseName() const
Definition GlueTable.h:46
GlueTable & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
Definition GlueTable.h:105
GlueTable & WithAdditionalOptions(AdditionalOptionsT &&value)
Definition GlueTable.h:103
void SetCatalogId(CatalogIdT &&value)
Definition GlueTable.h:73
const Aws::String & GetCatalogId() const
Definition GlueTable.h:70
const Aws::String & GetTableName() const
Definition GlueTable.h:58
bool CatalogIdHasBeenSet() const
Definition GlueTable.h:71
bool TableNameHasBeenSet() const
Definition GlueTable.h:59
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
Definition GlueTable.h:98
bool DatabaseNameHasBeenSet() const
Definition GlueTable.h:47
GlueTable & WithTableName(TableNameT &&value)
Definition GlueTable.h:63
void SetAdditionalOptions(AdditionalOptionsT &&value)
Definition GlueTable.h:101
void SetDatabaseName(DatabaseNameT &&value)
Definition GlueTable.h:49
bool ConnectionNameHasBeenSet() const
Definition GlueTable.h:83
void SetConnectionName(ConnectionNameT &&value)
Definition GlueTable.h:85
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:82
GlueTable & WithConnectionName(ConnectionNameT &&value)
Definition GlueTable.h:87
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