AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectorDataSource.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/GlueSchema.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GLUE_API ConnectorDataSource();
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ConnectorDataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ConnectorDataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ConnectorDataSource& WithName(const char* value) { SetName(value); return *this;}
57
59
67 inline const Aws::String& GetConnectionType() const{ return m_connectionType; }
68 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
69 inline void SetConnectionType(const Aws::String& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
70 inline void SetConnectionType(Aws::String&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); }
71 inline void SetConnectionType(const char* value) { m_connectionTypeHasBeenSet = true; m_connectionType.assign(value); }
72 inline ConnectorDataSource& WithConnectionType(const Aws::String& value) { SetConnectionType(value); return *this;}
73 inline ConnectorDataSource& WithConnectionType(Aws::String&& value) { SetConnectionType(std::move(value)); return *this;}
74 inline ConnectorDataSource& WithConnectionType(const char* value) { SetConnectionType(value); return *this;}
76
78
84 inline const Aws::Map<Aws::String, Aws::String>& GetData() const{ return m_data; }
85 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
86 inline void SetData(const Aws::Map<Aws::String, Aws::String>& value) { m_dataHasBeenSet = true; m_data = value; }
87 inline void SetData(Aws::Map<Aws::String, Aws::String>&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
88 inline ConnectorDataSource& WithData(const Aws::Map<Aws::String, Aws::String>& value) { SetData(value); return *this;}
89 inline ConnectorDataSource& WithData(Aws::Map<Aws::String, Aws::String>&& value) { SetData(std::move(value)); return *this;}
90 inline ConnectorDataSource& AddData(const Aws::String& key, const Aws::String& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
91 inline ConnectorDataSource& AddData(Aws::String&& key, const Aws::String& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
92 inline ConnectorDataSource& AddData(const Aws::String& key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
93 inline ConnectorDataSource& AddData(Aws::String&& key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), std::move(value)); return *this; }
94 inline ConnectorDataSource& AddData(const char* key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
95 inline ConnectorDataSource& AddData(Aws::String&& key, const char* value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
96 inline ConnectorDataSource& AddData(const char* key, const char* value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
98
100
103 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const{ return m_outputSchemas; }
104 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
105 inline void SetOutputSchemas(const Aws::Vector<GlueSchema>& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; }
106 inline void SetOutputSchemas(Aws::Vector<GlueSchema>&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); }
108 inline ConnectorDataSource& WithOutputSchemas(Aws::Vector<GlueSchema>&& value) { SetOutputSchemas(std::move(value)); return *this;}
109 inline ConnectorDataSource& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; }
110 inline ConnectorDataSource& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_connectionType;
118 bool m_connectionTypeHasBeenSet = false;
119
121 bool m_dataHasBeenSet = false;
122
123 Aws::Vector<GlueSchema> m_outputSchemas;
124 bool m_outputSchemasHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Glue
129} // namespace Aws
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
ConnectorDataSource & WithName(const Aws::String &value)
ConnectorDataSource & WithOutputSchemas(Aws::Vector< GlueSchema > &&value)
AWS_GLUE_API ConnectorDataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetData(const Aws::Map< Aws::String, Aws::String > &value)
void SetOutputSchemas(const Aws::Vector< GlueSchema > &value)
ConnectorDataSource & WithName(Aws::String &&value)
ConnectorDataSource & AddData(const Aws::String &key, Aws::String &&value)
ConnectorDataSource & WithConnectionType(const char *value)
void SetName(const Aws::String &value)
ConnectorDataSource & AddData(const Aws::String &key, const Aws::String &value)
ConnectorDataSource & AddOutputSchemas(const GlueSchema &value)
ConnectorDataSource & AddOutputSchemas(GlueSchema &&value)
ConnectorDataSource & AddData(Aws::String &&key, const Aws::String &value)
ConnectorDataSource & AddData(Aws::String &&key, Aws::String &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectorDataSource & AddData(const char *key, Aws::String &&value)
void SetConnectionType(const Aws::String &value)
ConnectorDataSource & AddData(Aws::String &&key, const char *value)
void SetData(Aws::Map< Aws::String, Aws::String > &&value)
AWS_GLUE_API ConnectorDataSource(Aws::Utils::Json::JsonView jsonValue)
ConnectorDataSource & WithData(Aws::Map< Aws::String, Aws::String > &&value)
ConnectorDataSource & WithOutputSchemas(const Aws::Vector< GlueSchema > &value)
ConnectorDataSource & WithConnectionType(Aws::String &&value)
const Aws::String & GetConnectionType() const
ConnectorDataSource & WithConnectionType(const Aws::String &value)
ConnectorDataSource & WithData(const Aws::Map< Aws::String, Aws::String > &value)
ConnectorDataSource & AddData(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
void SetConnectionType(Aws::String &&value)
void SetOutputSchemas(Aws::Vector< GlueSchema > &&value)
ConnectorDataSource & WithName(const char *value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue