AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 SparkConnectorSource& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline SparkConnectorSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline SparkConnectorSource& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
63 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
64 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
65 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
66 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
67 inline SparkConnectorSource& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
68 inline SparkConnectorSource& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
69 inline SparkConnectorSource& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
71
73
77 inline const Aws::String& GetConnectorName() const{ return m_connectorName; }
78 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
79 inline void SetConnectorName(const Aws::String& value) { m_connectorNameHasBeenSet = true; m_connectorName = value; }
80 inline void SetConnectorName(Aws::String&& value) { m_connectorNameHasBeenSet = true; m_connectorName = std::move(value); }
81 inline void SetConnectorName(const char* value) { m_connectorNameHasBeenSet = true; m_connectorName.assign(value); }
82 inline SparkConnectorSource& WithConnectorName(const Aws::String& value) { SetConnectorName(value); return *this;}
83 inline SparkConnectorSource& WithConnectorName(Aws::String&& value) { SetConnectorName(std::move(value)); return *this;}
84 inline SparkConnectorSource& WithConnectorName(const char* value) { SetConnectorName(value); return *this;}
86
88
92 inline const Aws::String& GetConnectionType() const{ return m_connectionType; }
93 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
94 inline void SetConnectionType(const Aws::String& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
95 inline void SetConnectionType(Aws::String&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); }
96 inline void SetConnectionType(const char* value) { m_connectionTypeHasBeenSet = true; m_connectionType.assign(value); }
97 inline SparkConnectorSource& WithConnectionType(const Aws::String& value) { SetConnectionType(value); return *this;}
98 inline SparkConnectorSource& WithConnectionType(Aws::String&& value) { SetConnectionType(std::move(value)); return *this;}
99 inline SparkConnectorSource& WithConnectionType(const char* value) { SetConnectionType(value); return *this;}
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const{ return m_additionalOptions; }
107 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
108 inline void SetAdditionalOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = value; }
109 inline void SetAdditionalOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::move(value); }
112 inline SparkConnectorSource& AddAdditionalOptions(const Aws::String& key, const Aws::String& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, value); return *this; }
113 inline SparkConnectorSource& AddAdditionalOptions(Aws::String&& key, const Aws::String& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::move(key), value); return *this; }
114 inline SparkConnectorSource& AddAdditionalOptions(const Aws::String& key, Aws::String&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, std::move(value)); return *this; }
115 inline SparkConnectorSource& AddAdditionalOptions(Aws::String&& key, Aws::String&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::move(key), std::move(value)); return *this; }
116 inline SparkConnectorSource& AddAdditionalOptions(const char* key, Aws::String&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, std::move(value)); return *this; }
117 inline SparkConnectorSource& AddAdditionalOptions(Aws::String&& key, const char* value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::move(key), value); return *this; }
118 inline SparkConnectorSource& AddAdditionalOptions(const char* key, const char* value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(key, value); return *this; }
120
122
125 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const{ return m_outputSchemas; }
126 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
127 inline void SetOutputSchemas(const Aws::Vector<GlueSchema>& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; }
128 inline void SetOutputSchemas(Aws::Vector<GlueSchema>&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); }
130 inline SparkConnectorSource& WithOutputSchemas(Aws::Vector<GlueSchema>&& value) { SetOutputSchemas(std::move(value)); return *this;}
131 inline SparkConnectorSource& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; }
132 inline SparkConnectorSource& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; }
134 private:
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 Aws::String m_connectionName;
140 bool m_connectionNameHasBeenSet = false;
141
142 Aws::String m_connectorName;
143 bool m_connectorNameHasBeenSet = false;
144
145 Aws::String m_connectionType;
146 bool m_connectionTypeHasBeenSet = false;
147
148 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
149 bool m_additionalOptionsHasBeenSet = false;
150
151 Aws::Vector<GlueSchema> m_outputSchemas;
152 bool m_outputSchemasHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Glue
157} // namespace Aws
AWS_GLUE_API SparkConnectorSource & operator=(Aws::Utils::Json::JsonView jsonValue)
SparkConnectorSource & AddAdditionalOptions(const Aws::String &key, Aws::String &&value)
SparkConnectorSource & AddAdditionalOptions(Aws::String &&key, Aws::String &&value)
const Aws::String & GetConnectionType() const
SparkConnectorSource & AddAdditionalOptions(const char *key, const char *value)
AWS_GLUE_API SparkConnectorSource(Aws::Utils::Json::JsonView jsonValue)
SparkConnectorSource & WithConnectorName(Aws::String &&value)
void SetOutputSchemas(Aws::Vector< GlueSchema > &&value)
SparkConnectorSource & WithOutputSchemas(const Aws::Vector< GlueSchema > &value)
void SetName(const Aws::String &value)
SparkConnectorSource & AddAdditionalOptions(Aws::String &&key, const char *value)
SparkConnectorSource & WithName(Aws::String &&value)
SparkConnectorSource & AddOutputSchemas(GlueSchema &&value)
void SetAdditionalOptions(const Aws::Map< Aws::String, Aws::String > &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
SparkConnectorSource & WithConnectionName(Aws::String &&value)
SparkConnectorSource & WithName(const Aws::String &value)
SparkConnectorSource & WithConnectionType(const char *value)
SparkConnectorSource & WithAdditionalOptions(Aws::Map< Aws::String, Aws::String > &&value)
void SetOutputSchemas(const Aws::Vector< GlueSchema > &value)
const Aws::String & GetConnectionName() const
SparkConnectorSource & WithConnectionName(const Aws::String &value)
SparkConnectorSource & AddAdditionalOptions(Aws::String &&key, const Aws::String &value)
SparkConnectorSource & WithOutputSchemas(Aws::Vector< GlueSchema > &&value)
SparkConnectorSource & AddAdditionalOptions(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
void SetConnectorName(const Aws::String &value)
SparkConnectorSource & WithConnectionType(Aws::String &&value)
SparkConnectorSource & WithAdditionalOptions(const Aws::Map< Aws::String, Aws::String > &value)
SparkConnectorSource & WithConnectionName(const char *value)
SparkConnectorSource & WithConnectionType(const Aws::String &value)
void SetConnectionType(const Aws::String &value)
void SetAdditionalOptions(Aws::Map< Aws::String, Aws::String > &&value)
SparkConnectorSource & WithName(const char *value)
SparkConnectorSource & AddOutputSchemas(const GlueSchema &value)
SparkConnectorSource & WithConnectorName(const Aws::String &value)
SparkConnectorSource & WithConnectorName(const char *value)
SparkConnectorSource & AddAdditionalOptions(const char *key, Aws::String &&value)
const Aws::String & GetConnectorName() const
void SetConnectionName(const Aws::String &value)
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