AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 ConnectorDataSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
65 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
66 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
67 template<typename ConnectionTypeT = Aws::String>
68 void SetConnectionType(ConnectionTypeT&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::forward<ConnectionTypeT>(value); }
69 template<typename ConnectionTypeT = Aws::String>
70 ConnectorDataSource& WithConnectionType(ConnectionTypeT&& value) { SetConnectionType(std::forward<ConnectionTypeT>(value)); return *this;}
72
74
80 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
81 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
82 template<typename DataT = Aws::Map<Aws::String, Aws::String>>
83 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
84 template<typename DataT = Aws::Map<Aws::String, Aws::String>>
85 ConnectorDataSource& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
86 template<typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
87 ConnectorDataSource& AddData(DataKeyT&& key, DataValueT&& value) {
88 m_dataHasBeenSet = true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value)); return *this;
89 }
91
93
96 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
97 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
98 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
99 void SetOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::forward<OutputSchemasT>(value); }
100 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
101 ConnectorDataSource& WithOutputSchemas(OutputSchemasT&& value) { SetOutputSchemas(std::forward<OutputSchemasT>(value)); return *this;}
102 template<typename OutputSchemasT = GlueSchema>
103 ConnectorDataSource& AddOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value)); return *this; }
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::String m_connectionType;
111 bool m_connectionTypeHasBeenSet = false;
112
114 bool m_dataHasBeenSet = false;
115
116 Aws::Vector<GlueSchema> m_outputSchemas;
117 bool m_outputSchemasHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Glue
122} // namespace Aws
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
ConnectorDataSource & WithName(NameT &&value)
AWS_GLUE_API ConnectorDataSource()=default
AWS_GLUE_API ConnectorDataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorDataSource & AddOutputSchemas(OutputSchemasT &&value)
ConnectorDataSource & AddData(DataKeyT &&key, DataValueT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API ConnectorDataSource(Aws::Utils::Json::JsonView jsonValue)
ConnectorDataSource & WithData(DataT &&value)
void SetOutputSchemas(OutputSchemasT &&value)
ConnectorDataSource & WithConnectionType(ConnectionTypeT &&value)
void SetConnectionType(ConnectionTypeT &&value)
const Aws::String & GetConnectionType() const
ConnectorDataSource & WithOutputSchemas(OutputSchemasT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
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