AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SparkConnectorSource.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 SparkConnectorSource() = 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 SparkConnectorSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
61 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
62 template<typename ConnectionNameT = Aws::String>
63 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
64 template<typename ConnectionNameT = Aws::String>
65 SparkConnectorSource& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
67
69
73 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
74 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
75 template<typename ConnectorNameT = Aws::String>
76 void SetConnectorName(ConnectorNameT&& value) { m_connectorNameHasBeenSet = true; m_connectorName = std::forward<ConnectorNameT>(value); }
77 template<typename ConnectorNameT = Aws::String>
78 SparkConnectorSource& WithConnectorName(ConnectorNameT&& value) { SetConnectorName(std::forward<ConnectorNameT>(value)); return *this;}
80
82
86 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
87 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
88 template<typename ConnectionTypeT = Aws::String>
89 void SetConnectionType(ConnectionTypeT&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::forward<ConnectionTypeT>(value); }
90 template<typename ConnectionTypeT = Aws::String>
91 SparkConnectorSource& WithConnectionType(ConnectionTypeT&& value) { SetConnectionType(std::forward<ConnectionTypeT>(value)); return *this;}
93
95
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 SparkConnectorSource& WithAdditionalOptions(AdditionalOptionsT&& value) { SetAdditionalOptions(std::forward<AdditionalOptionsT>(value)); return *this;}
104 template<typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
105 SparkConnectorSource& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
106 m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value)); return *this;
107 }
109
111
114 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
115 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
116 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
117 void SetOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::forward<OutputSchemasT>(value); }
118 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
119 SparkConnectorSource& WithOutputSchemas(OutputSchemasT&& value) { SetOutputSchemas(std::forward<OutputSchemasT>(value)); return *this;}
120 template<typename OutputSchemasT = GlueSchema>
121 SparkConnectorSource& AddOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value)); return *this; }
123 private:
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::String m_connectionName;
129 bool m_connectionNameHasBeenSet = false;
130
131 Aws::String m_connectorName;
132 bool m_connectorNameHasBeenSet = false;
133
134 Aws::String m_connectionType;
135 bool m_connectionTypeHasBeenSet = false;
136
137 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
138 bool m_additionalOptionsHasBeenSet = false;
139
140 Aws::Vector<GlueSchema> m_outputSchemas;
141 bool m_outputSchemasHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Glue
146} // namespace Aws
AWS_GLUE_API SparkConnectorSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API SparkConnectorSource()=default
const Aws::String & GetConnectionType() const
AWS_GLUE_API SparkConnectorSource(Aws::Utils::Json::JsonView jsonValue)
SparkConnectorSource & WithAdditionalOptions(AdditionalOptionsT &&value)
SparkConnectorSource & WithConnectionName(ConnectionNameT &&value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
SparkConnectorSource & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
const Aws::String & GetConnectionName() const
SparkConnectorSource & WithConnectorName(ConnectorNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
void SetConnectionType(ConnectionTypeT &&value)
SparkConnectorSource & AddOutputSchemas(OutputSchemasT &&value)
void SetConnectorName(ConnectorNameT &&value)
SparkConnectorSource & WithName(NameT &&value)
SparkConnectorSource & WithConnectionType(ConnectionTypeT &&value)
SparkConnectorSource & WithOutputSchemas(OutputSchemasT &&value)
void SetOutputSchemas(OutputSchemasT &&value)
void SetConnectionName(ConnectionNameT &&value)
const Aws::String & GetConnectorName() const
const Aws::Vector< GlueSchema > & GetOutputSchemas() 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