AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ConnectorProperty.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/PropertyLocation.h>
11#include <aws/glue/model/PropertyType.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 ConnectorProperty() = 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>
50 ConnectorProperty& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetKeyOverride() const { return m_keyOverride; }
62 inline bool KeyOverrideHasBeenSet() const { return m_keyOverrideHasBeenSet; }
63 template <typename KeyOverrideT = Aws::String>
64 void SetKeyOverride(KeyOverrideT&& value) {
65 m_keyOverrideHasBeenSet = true;
66 m_keyOverride = std::forward<KeyOverrideT>(value);
67 }
68 template <typename KeyOverrideT = Aws::String>
69 ConnectorProperty& WithKeyOverride(KeyOverrideT&& value) {
70 SetKeyOverride(std::forward<KeyOverrideT>(value));
71 return *this;
72 }
74
76
79 inline bool GetRequired() const { return m_required; }
80 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
81 inline void SetRequired(bool value) {
82 m_requiredHasBeenSet = true;
83 m_required = value;
84 }
85 inline ConnectorProperty& WithRequired(bool value) {
86 SetRequired(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
96 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
97 template <typename DefaultValueT = Aws::String>
98 void SetDefaultValue(DefaultValueT&& value) {
99 m_defaultValueHasBeenSet = true;
100 m_defaultValue = std::forward<DefaultValueT>(value);
101 }
102 template <typename DefaultValueT = Aws::String>
103 ConnectorProperty& WithDefaultValue(DefaultValueT&& value) {
104 SetDefaultValue(std::forward<DefaultValueT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
115 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
116 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
117 void SetAllowedValues(AllowedValuesT&& value) {
118 m_allowedValuesHasBeenSet = true;
119 m_allowedValues = std::forward<AllowedValuesT>(value);
120 }
121 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
122 ConnectorProperty& WithAllowedValues(AllowedValuesT&& value) {
123 SetAllowedValues(std::forward<AllowedValuesT>(value));
124 return *this;
125 }
126 template <typename AllowedValuesT = Aws::String>
127 ConnectorProperty& AddAllowedValues(AllowedValuesT&& value) {
128 m_allowedValuesHasBeenSet = true;
129 m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value));
130 return *this;
131 }
133
135
139 inline PropertyLocation GetPropertyLocation() const { return m_propertyLocation; }
140 inline bool PropertyLocationHasBeenSet() const { return m_propertyLocationHasBeenSet; }
142 m_propertyLocationHasBeenSet = true;
143 m_propertyLocation = value;
144 }
146 SetPropertyLocation(value);
147 return *this;
148 }
150
152
155 inline PropertyType GetPropertyType() const { return m_propertyType; }
156 inline bool PropertyTypeHasBeenSet() const { return m_propertyTypeHasBeenSet; }
157 inline void SetPropertyType(PropertyType value) {
158 m_propertyTypeHasBeenSet = true;
159 m_propertyType = value;
160 }
162 SetPropertyType(value);
163 return *this;
164 }
166 private:
167 Aws::String m_name;
168
169 Aws::String m_keyOverride;
170
171 bool m_required{false};
172
173 Aws::String m_defaultValue;
174
175 Aws::Vector<Aws::String> m_allowedValues;
176
178
179 PropertyType m_propertyType{PropertyType::NOT_SET};
180 bool m_nameHasBeenSet = false;
181 bool m_keyOverrideHasBeenSet = false;
182 bool m_requiredHasBeenSet = false;
183 bool m_defaultValueHasBeenSet = false;
184 bool m_allowedValuesHasBeenSet = false;
185 bool m_propertyLocationHasBeenSet = false;
186 bool m_propertyTypeHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Glue
191} // namespace Aws
const Aws::Vector< Aws::String > & GetAllowedValues() const
ConnectorProperty & WithRequired(bool value)
ConnectorProperty & WithDefaultValue(DefaultValueT &&value)
ConnectorProperty & AddAllowedValues(AllowedValuesT &&value)
PropertyLocation GetPropertyLocation() const
ConnectorProperty & WithKeyOverride(KeyOverrideT &&value)
const Aws::String & GetKeyOverride() const
ConnectorProperty & WithName(NameT &&value)
const Aws::String & GetDefaultValue() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyOverride(KeyOverrideT &&value)
ConnectorProperty & WithPropertyLocation(PropertyLocation value)
void SetAllowedValues(AllowedValuesT &&value)
AWS_GLUE_API ConnectorProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPropertyType(PropertyType value)
void SetPropertyLocation(PropertyLocation value)
const Aws::String & GetName() const
void SetDefaultValue(DefaultValueT &&value)
AWS_GLUE_API ConnectorProperty()=default
AWS_GLUE_API ConnectorProperty(Aws::Utils::Json::JsonView jsonValue)
ConnectorProperty & WithAllowedValues(AllowedValuesT &&value)
ConnectorProperty & WithPropertyType(PropertyType 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