AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SparkConnectorTarget.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 SparkConnectorTarget() = 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 SparkConnectorTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
64 template<typename InputsT = Aws::Vector<Aws::String>>
65 SparkConnectorTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
66 template<typename InputsT = Aws::String>
67 SparkConnectorTarget& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
75 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
76 template<typename ConnectionNameT = Aws::String>
77 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
78 template<typename ConnectionNameT = Aws::String>
79 SparkConnectorTarget& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
87 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
88 template<typename ConnectorNameT = Aws::String>
89 void SetConnectorName(ConnectorNameT&& value) { m_connectorNameHasBeenSet = true; m_connectorName = std::forward<ConnectorNameT>(value); }
90 template<typename ConnectorNameT = Aws::String>
91 SparkConnectorTarget& WithConnectorName(ConnectorNameT&& value) { SetConnectorName(std::forward<ConnectorNameT>(value)); return *this;}
93
95
99 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
100 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
101 template<typename ConnectionTypeT = Aws::String>
102 void SetConnectionType(ConnectionTypeT&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::forward<ConnectionTypeT>(value); }
103 template<typename ConnectionTypeT = Aws::String>
104 SparkConnectorTarget& WithConnectionType(ConnectionTypeT&& value) { SetConnectionType(std::forward<ConnectionTypeT>(value)); return *this;}
106
108
111 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
112 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
113 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
114 void SetAdditionalOptions(AdditionalOptionsT&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::forward<AdditionalOptionsT>(value); }
115 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
116 SparkConnectorTarget& WithAdditionalOptions(AdditionalOptionsT&& value) { SetAdditionalOptions(std::forward<AdditionalOptionsT>(value)); return *this;}
117 template<typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
118 SparkConnectorTarget& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
119 m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value)); return *this;
120 }
122
124
127 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
128 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
129 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
130 void SetOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::forward<OutputSchemasT>(value); }
131 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
132 SparkConnectorTarget& WithOutputSchemas(OutputSchemasT&& value) { SetOutputSchemas(std::forward<OutputSchemasT>(value)); return *this;}
133 template<typename OutputSchemasT = GlueSchema>
134 SparkConnectorTarget& AddOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value)); return *this; }
136 private:
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
142 bool m_inputsHasBeenSet = false;
143
144 Aws::String m_connectionName;
145 bool m_connectionNameHasBeenSet = false;
146
147 Aws::String m_connectorName;
148 bool m_connectorNameHasBeenSet = false;
149
150 Aws::String m_connectionType;
151 bool m_connectionTypeHasBeenSet = false;
152
153 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
154 bool m_additionalOptionsHasBeenSet = false;
155
156 Aws::Vector<GlueSchema> m_outputSchemas;
157 bool m_outputSchemasHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Glue
162} // 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