AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ConnectorRuntimeSetting.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Appflow {
21namespace Model {
22
30 public:
31 AWS_APPFLOW_API ConnectorRuntimeSetting() = default;
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDataType() const { return m_dataType; }
59 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
60 template <typename DataTypeT = Aws::String>
61 void SetDataType(DataTypeT&& value) {
62 m_dataTypeHasBeenSet = true;
63 m_dataType = std::forward<DataTypeT>(value);
64 }
65 template <typename DataTypeT = Aws::String>
67 SetDataType(std::forward<DataTypeT>(value));
68 return *this;
69 }
71
73
76 inline bool GetIsRequired() const { return m_isRequired; }
77 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
78 inline void SetIsRequired(bool value) {
79 m_isRequiredHasBeenSet = true;
80 m_isRequired = value;
81 }
83 SetIsRequired(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetLabel() const { return m_label; }
93 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
94 template <typename LabelT = Aws::String>
95 void SetLabel(LabelT&& value) {
96 m_labelHasBeenSet = true;
97 m_label = std::forward<LabelT>(value);
98 }
99 template <typename LabelT = Aws::String>
101 SetLabel(std::forward<LabelT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 template <typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) {
114 m_descriptionHasBeenSet = true;
115 m_description = std::forward<DescriptionT>(value);
116 }
117 template <typename DescriptionT = Aws::String>
119 SetDescription(std::forward<DescriptionT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetScope() const { return m_scope; }
129 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
130 template <typename ScopeT = Aws::String>
131 void SetScope(ScopeT&& value) {
132 m_scopeHasBeenSet = true;
133 m_scope = std::forward<ScopeT>(value);
134 }
135 template <typename ScopeT = Aws::String>
137 SetScope(std::forward<ScopeT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Vector<Aws::String>& GetConnectorSuppliedValueOptions() const { return m_connectorSuppliedValueOptions; }
148 inline bool ConnectorSuppliedValueOptionsHasBeenSet() const { return m_connectorSuppliedValueOptionsHasBeenSet; }
149 template <typename ConnectorSuppliedValueOptionsT = Aws::Vector<Aws::String>>
150 void SetConnectorSuppliedValueOptions(ConnectorSuppliedValueOptionsT&& value) {
151 m_connectorSuppliedValueOptionsHasBeenSet = true;
152 m_connectorSuppliedValueOptions = std::forward<ConnectorSuppliedValueOptionsT>(value);
153 }
154 template <typename ConnectorSuppliedValueOptionsT = Aws::Vector<Aws::String>>
155 ConnectorRuntimeSetting& WithConnectorSuppliedValueOptions(ConnectorSuppliedValueOptionsT&& value) {
156 SetConnectorSuppliedValueOptions(std::forward<ConnectorSuppliedValueOptionsT>(value));
157 return *this;
158 }
159 template <typename ConnectorSuppliedValueOptionsT = Aws::String>
160 ConnectorRuntimeSetting& AddConnectorSuppliedValueOptions(ConnectorSuppliedValueOptionsT&& value) {
161 m_connectorSuppliedValueOptionsHasBeenSet = true;
162 m_connectorSuppliedValueOptions.emplace_back(std::forward<ConnectorSuppliedValueOptionsT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_key;
168
169 Aws::String m_dataType;
170
171 bool m_isRequired{false};
172
173 Aws::String m_label;
174
175 Aws::String m_description;
176
177 Aws::String m_scope;
178
179 Aws::Vector<Aws::String> m_connectorSuppliedValueOptions;
180 bool m_keyHasBeenSet = false;
181 bool m_dataTypeHasBeenSet = false;
182 bool m_isRequiredHasBeenSet = false;
183 bool m_labelHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_scopeHasBeenSet = false;
186 bool m_connectorSuppliedValueOptionsHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Appflow
191} // namespace Aws
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetConnectorSuppliedValueOptions() const
ConnectorRuntimeSetting & WithDescription(DescriptionT &&value)
ConnectorRuntimeSetting & WithKey(KeyT &&value)
ConnectorRuntimeSetting & WithLabel(LabelT &&value)
AWS_APPFLOW_API ConnectorRuntimeSetting()=default
ConnectorRuntimeSetting & WithScope(ScopeT &&value)
void SetConnectorSuppliedValueOptions(ConnectorSuppliedValueOptionsT &&value)
ConnectorRuntimeSetting & WithIsRequired(bool value)
ConnectorRuntimeSetting & AddConnectorSuppliedValueOptions(ConnectorSuppliedValueOptionsT &&value)
AWS_APPFLOW_API ConnectorRuntimeSetting(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API ConnectorRuntimeSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorRuntimeSetting & WithDataType(DataTypeT &&value)
ConnectorRuntimeSetting & WithConnectorSuppliedValueOptions(ConnectorSuppliedValueOptionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue