AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SparkConnectorTarget.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/GlueSchema.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32 public:
33 AWS_GLUE_API SparkConnectorTarget() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
61 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
62 template <typename InputsT = Aws::Vector<Aws::String>>
63 void SetInputs(InputsT&& value) {
64 m_inputsHasBeenSet = true;
65 m_inputs = std::forward<InputsT>(value);
66 }
67 template <typename InputsT = Aws::Vector<Aws::String>>
68 SparkConnectorTarget& WithInputs(InputsT&& value) {
69 SetInputs(std::forward<InputsT>(value));
70 return *this;
71 }
72 template <typename InputsT = Aws::String>
73 SparkConnectorTarget& AddInputs(InputsT&& value) {
74 m_inputsHasBeenSet = true;
75 m_inputs.emplace_back(std::forward<InputsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
85 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
86 template <typename ConnectionNameT = Aws::String>
87 void SetConnectionName(ConnectionNameT&& value) {
88 m_connectionNameHasBeenSet = true;
89 m_connectionName = std::forward<ConnectionNameT>(value);
90 }
91 template <typename ConnectionNameT = Aws::String>
92 SparkConnectorTarget& WithConnectionName(ConnectionNameT&& value) {
93 SetConnectionName(std::forward<ConnectionNameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
103 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
104 template <typename ConnectorNameT = Aws::String>
105 void SetConnectorName(ConnectorNameT&& value) {
106 m_connectorNameHasBeenSet = true;
107 m_connectorName = std::forward<ConnectorNameT>(value);
108 }
109 template <typename ConnectorNameT = Aws::String>
110 SparkConnectorTarget& WithConnectorName(ConnectorNameT&& value) {
111 SetConnectorName(std::forward<ConnectorNameT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
122 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
123 template <typename ConnectionTypeT = Aws::String>
124 void SetConnectionType(ConnectionTypeT&& value) {
125 m_connectionTypeHasBeenSet = true;
126 m_connectionType = std::forward<ConnectionTypeT>(value);
127 }
128 template <typename ConnectionTypeT = Aws::String>
129 SparkConnectorTarget& WithConnectionType(ConnectionTypeT&& value) {
130 SetConnectionType(std::forward<ConnectionTypeT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
140 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
141 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
142 void SetAdditionalOptions(AdditionalOptionsT&& value) {
143 m_additionalOptionsHasBeenSet = true;
144 m_additionalOptions = std::forward<AdditionalOptionsT>(value);
145 }
146 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
147 SparkConnectorTarget& WithAdditionalOptions(AdditionalOptionsT&& value) {
148 SetAdditionalOptions(std::forward<AdditionalOptionsT>(value));
149 return *this;
150 }
151 template <typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
152 SparkConnectorTarget& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
153 m_additionalOptionsHasBeenSet = true;
154 m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
164 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
165 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
166 void SetOutputSchemas(OutputSchemasT&& value) {
167 m_outputSchemasHasBeenSet = true;
168 m_outputSchemas = std::forward<OutputSchemasT>(value);
169 }
170 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
171 SparkConnectorTarget& WithOutputSchemas(OutputSchemasT&& value) {
172 SetOutputSchemas(std::forward<OutputSchemasT>(value));
173 return *this;
174 }
175 template <typename OutputSchemasT = GlueSchema>
176 SparkConnectorTarget& AddOutputSchemas(OutputSchemasT&& value) {
177 m_outputSchemasHasBeenSet = true;
178 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_name;
184
186
187 Aws::String m_connectionName;
188
189 Aws::String m_connectorName;
190
191 Aws::String m_connectionType;
192
193 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
194
195 Aws::Vector<GlueSchema> m_outputSchemas;
196 bool m_nameHasBeenSet = false;
197 bool m_inputsHasBeenSet = false;
198 bool m_connectionNameHasBeenSet = false;
199 bool m_connectorNameHasBeenSet = false;
200 bool m_connectionTypeHasBeenSet = false;
201 bool m_additionalOptionsHasBeenSet = false;
202 bool m_outputSchemasHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace Glue
207} // namespace Aws
SparkConnectorTarget & WithInputs(InputsT &&value)
void SetConnectionType(ConnectionTypeT &&value)
SparkConnectorTarget & AddInputs(InputsT &&value)
AWS_GLUE_API SparkConnectorTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
SparkConnectorTarget & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
const Aws::String & GetConnectorName() const
const Aws::String & GetConnectionName() const
SparkConnectorTarget & WithConnectionType(ConnectionTypeT &&value)
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
const Aws::String & GetConnectionType() const
void SetConnectionName(ConnectionNameT &&value)
void SetConnectorName(ConnectorNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
SparkConnectorTarget & AddOutputSchemas(OutputSchemasT &&value)
void SetOutputSchemas(OutputSchemasT &&value)
SparkConnectorTarget & WithOutputSchemas(OutputSchemasT &&value)
const Aws::Vector< Aws::String > & GetInputs() const
AWS_GLUE_API SparkConnectorTarget()=default
SparkConnectorTarget & WithConnectionName(ConnectionNameT &&value)
SparkConnectorTarget & WithName(NameT &&value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
SparkConnectorTarget & WithAdditionalOptions(AdditionalOptionsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API SparkConnectorTarget(Aws::Utils::Json::JsonView jsonValue)
SparkConnectorTarget & WithConnectorName(ConnectorNameT &&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