AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
UserDefinedFunction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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#include <aws/glue/model/FunctionType.h>
12#include <aws/glue/model/GovernanceMode.h>
13#include <aws/glue/model/PrincipalType.h>
14#include <aws/glue/model/ResourceUri.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue {
26namespace Model {
27
35 public:
36 AWS_GLUE_API UserDefinedFunction() = default;
40
42
45 inline const Aws::String& GetFunctionName() const { return m_functionName; }
46 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
47 template <typename FunctionNameT = Aws::String>
48 void SetFunctionName(FunctionNameT&& value) {
49 m_functionNameHasBeenSet = true;
50 m_functionName = std::forward<FunctionNameT>(value);
51 }
52 template <typename FunctionNameT = Aws::String>
53 UserDefinedFunction& WithFunctionName(FunctionNameT&& value) {
54 SetFunctionName(std::forward<FunctionNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
64 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
65 template <typename DatabaseNameT = Aws::String>
66 void SetDatabaseName(DatabaseNameT&& value) {
67 m_databaseNameHasBeenSet = true;
68 m_databaseName = std::forward<DatabaseNameT>(value);
69 }
70 template <typename DatabaseNameT = Aws::String>
71 UserDefinedFunction& WithDatabaseName(DatabaseNameT&& value) {
72 SetDatabaseName(std::forward<DatabaseNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetClassName() const { return m_className; }
82 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
83 template <typename ClassNameT = Aws::String>
84 void SetClassName(ClassNameT&& value) {
85 m_classNameHasBeenSet = true;
86 m_className = std::forward<ClassNameT>(value);
87 }
88 template <typename ClassNameT = Aws::String>
89 UserDefinedFunction& WithClassName(ClassNameT&& value) {
90 SetClassName(std::forward<ClassNameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetOwnerName() const { return m_ownerName; }
100 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
101 template <typename OwnerNameT = Aws::String>
102 void SetOwnerName(OwnerNameT&& value) {
103 m_ownerNameHasBeenSet = true;
104 m_ownerName = std::forward<OwnerNameT>(value);
105 }
106 template <typename OwnerNameT = Aws::String>
107 UserDefinedFunction& WithOwnerName(OwnerNameT&& value) {
108 SetOwnerName(std::forward<OwnerNameT>(value));
109 return *this;
110 }
112
114
117 inline FunctionType GetFunctionType() const { return m_functionType; }
118 inline bool FunctionTypeHasBeenSet() const { return m_functionTypeHasBeenSet; }
119 inline void SetFunctionType(FunctionType value) {
120 m_functionTypeHasBeenSet = true;
121 m_functionType = value;
122 }
124 SetFunctionType(value);
125 return *this;
126 }
128
130
133 inline PrincipalType GetOwnerType() const { return m_ownerType; }
134 inline bool OwnerTypeHasBeenSet() const { return m_ownerTypeHasBeenSet; }
135 inline void SetOwnerType(PrincipalType value) {
136 m_ownerTypeHasBeenSet = true;
137 m_ownerType = value;
138 }
140 SetOwnerType(value);
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
150 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
151 template <typename CreateTimeT = Aws::Utils::DateTime>
152 void SetCreateTime(CreateTimeT&& value) {
153 m_createTimeHasBeenSet = true;
154 m_createTime = std::forward<CreateTimeT>(value);
155 }
156 template <typename CreateTimeT = Aws::Utils::DateTime>
157 UserDefinedFunction& WithCreateTime(CreateTimeT&& value) {
158 SetCreateTime(std::forward<CreateTimeT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Vector<ResourceUri>& GetResourceUris() const { return m_resourceUris; }
168 inline bool ResourceUrisHasBeenSet() const { return m_resourceUrisHasBeenSet; }
169 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
170 void SetResourceUris(ResourceUrisT&& value) {
171 m_resourceUrisHasBeenSet = true;
172 m_resourceUris = std::forward<ResourceUrisT>(value);
173 }
174 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
175 UserDefinedFunction& WithResourceUris(ResourceUrisT&& value) {
176 SetResourceUris(std::forward<ResourceUrisT>(value));
177 return *this;
178 }
179 template <typename ResourceUrisT = ResourceUri>
180 UserDefinedFunction& AddResourceUris(ResourceUrisT&& value) {
181 m_resourceUrisHasBeenSet = true;
182 m_resourceUris.emplace_back(std::forward<ResourceUrisT>(value));
183 return *this;
184 }
186
188
193 inline const Aws::String& GetArtifactLocation() const { return m_artifactLocation; }
194 inline bool ArtifactLocationHasBeenSet() const { return m_artifactLocationHasBeenSet; }
195 template <typename ArtifactLocationT = Aws::String>
196 void SetArtifactLocation(ArtifactLocationT&& value) {
197 m_artifactLocationHasBeenSet = true;
198 m_artifactLocation = std::forward<ArtifactLocationT>(value);
199 }
200 template <typename ArtifactLocationT = Aws::String>
201 UserDefinedFunction& WithArtifactLocation(ArtifactLocationT&& value) {
202 SetArtifactLocation(std::forward<ArtifactLocationT>(value));
203 return *this;
204 }
206
208
215 inline GovernanceMode GetGovernanceMode() const { return m_governanceMode; }
216 inline bool GovernanceModeHasBeenSet() const { return m_governanceModeHasBeenSet; }
218 m_governanceModeHasBeenSet = true;
219 m_governanceMode = value;
220 }
222 SetGovernanceMode(value);
223 return *this;
224 }
226
228
231 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
232 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
233 template <typename CatalogIdT = Aws::String>
234 void SetCatalogId(CatalogIdT&& value) {
235 m_catalogIdHasBeenSet = true;
236 m_catalogId = std::forward<CatalogIdT>(value);
237 }
238 template <typename CatalogIdT = Aws::String>
239 UserDefinedFunction& WithCatalogId(CatalogIdT&& value) {
240 SetCatalogId(std::forward<CatalogIdT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_functionName;
246
247 Aws::String m_databaseName;
248
249 Aws::String m_className;
250
251 Aws::String m_ownerName;
252
253 FunctionType m_functionType{FunctionType::NOT_SET};
254
256
257 Aws::Utils::DateTime m_createTime{};
258
259 Aws::Vector<ResourceUri> m_resourceUris;
260
261 Aws::String m_artifactLocation;
262
263 GovernanceMode m_governanceMode{GovernanceMode::NOT_SET};
264
265 Aws::String m_catalogId;
266 bool m_functionNameHasBeenSet = false;
267 bool m_databaseNameHasBeenSet = false;
268 bool m_classNameHasBeenSet = false;
269 bool m_ownerNameHasBeenSet = false;
270 bool m_functionTypeHasBeenSet = false;
271 bool m_ownerTypeHasBeenSet = false;
272 bool m_createTimeHasBeenSet = false;
273 bool m_resourceUrisHasBeenSet = false;
274 bool m_artifactLocationHasBeenSet = false;
275 bool m_governanceModeHasBeenSet = false;
276 bool m_catalogIdHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace Glue
281} // namespace Aws
const Aws::String & GetCatalogId() const
const Aws::String & GetFunctionName() const
UserDefinedFunction & WithOwnerType(PrincipalType value)
UserDefinedFunction & WithFunctionName(FunctionNameT &&value)
UserDefinedFunction & WithClassName(ClassNameT &&value)
UserDefinedFunction & WithGovernanceMode(GovernanceMode value)
UserDefinedFunction & WithDatabaseName(DatabaseNameT &&value)
const Aws::String & GetDatabaseName() const
UserDefinedFunction & WithOwnerName(OwnerNameT &&value)
const Aws::String & GetArtifactLocation() const
void SetResourceUris(ResourceUrisT &&value)
void SetArtifactLocation(ArtifactLocationT &&value)
UserDefinedFunction & WithArtifactLocation(ArtifactLocationT &&value)
UserDefinedFunction & WithCatalogId(CatalogIdT &&value)
void SetFunctionName(FunctionNameT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
UserDefinedFunction & AddResourceUris(ResourceUrisT &&value)
AWS_GLUE_API UserDefinedFunction(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API UserDefinedFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
UserDefinedFunction & WithFunctionType(FunctionType value)
AWS_GLUE_API UserDefinedFunction()=default
UserDefinedFunction & WithCreateTime(CreateTimeT &&value)
const Aws::Vector< ResourceUri > & GetResourceUris() const
void SetGovernanceMode(GovernanceMode value)
void SetDatabaseName(DatabaseNameT &&value)
const Aws::String & GetOwnerName() const
const Aws::String & GetClassName() const
UserDefinedFunction & WithResourceUris(ResourceUrisT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue