AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ConnectorDataTarget.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API ConnectorDataTarget() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ConnectorDataTarget& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
64 inline const Aws::String& GetConnectionType() const { return m_connectionType; }
65 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
66 template <typename ConnectionTypeT = Aws::String>
67 void SetConnectionType(ConnectionTypeT&& value) {
68 m_connectionTypeHasBeenSet = true;
69 m_connectionType = std::forward<ConnectionTypeT>(value);
70 }
71 template <typename ConnectionTypeT = Aws::String>
72 ConnectorDataTarget& WithConnectionType(ConnectionTypeT&& value) {
73 SetConnectionType(std::forward<ConnectionTypeT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
86 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
87 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
88 void SetData(DataT&& value) {
89 m_dataHasBeenSet = true;
90 m_data = std::forward<DataT>(value);
91 }
92 template <typename DataT = Aws::Map<Aws::String, Aws::String>>
93 ConnectorDataTarget& WithData(DataT&& value) {
94 SetData(std::forward<DataT>(value));
95 return *this;
96 }
97 template <typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
98 ConnectorDataTarget& AddData(DataKeyT&& key, DataValueT&& value) {
99 m_dataHasBeenSet = true;
100 m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
110 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
111 template <typename InputsT = Aws::Vector<Aws::String>>
112 void SetInputs(InputsT&& value) {
113 m_inputsHasBeenSet = true;
114 m_inputs = std::forward<InputsT>(value);
115 }
116 template <typename InputsT = Aws::Vector<Aws::String>>
117 ConnectorDataTarget& WithInputs(InputsT&& value) {
118 SetInputs(std::forward<InputsT>(value));
119 return *this;
120 }
121 template <typename InputsT = Aws::String>
122 ConnectorDataTarget& AddInputs(InputsT&& value) {
123 m_inputsHasBeenSet = true;
124 m_inputs.emplace_back(std::forward<InputsT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_name;
130
131 Aws::String m_connectionType;
132
134
136 bool m_nameHasBeenSet = false;
137 bool m_connectionTypeHasBeenSet = false;
138 bool m_dataHasBeenSet = false;
139 bool m_inputsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Glue
144} // namespace Aws
ConnectorDataTarget & AddInputs(InputsT &&value)
ConnectorDataTarget & WithInputs(InputsT &&value)
ConnectorDataTarget & WithData(DataT &&value)
AWS_GLUE_API ConnectorDataTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetData() const
AWS_GLUE_API ConnectorDataTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectionType() const
void SetConnectionType(ConnectionTypeT &&value)
ConnectorDataTarget & WithName(NameT &&value)
AWS_GLUE_API ConnectorDataTarget()=default
const Aws::Vector< Aws::String > & GetInputs() const
ConnectorDataTarget & AddData(DataKeyT &&key, DataValueT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectorDataTarget & WithConnectionType(ConnectionTypeT &&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