AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/PrincipalType.h>
13#include <aws/glue/model/ResourceUri.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26
34 public:
35 AWS_GLUE_API UserDefinedFunction() = default;
39
41
44 inline const Aws::String& GetFunctionName() const { return m_functionName; }
45 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
46 template <typename FunctionNameT = Aws::String>
47 void SetFunctionName(FunctionNameT&& value) {
48 m_functionNameHasBeenSet = true;
49 m_functionName = std::forward<FunctionNameT>(value);
50 }
51 template <typename FunctionNameT = Aws::String>
52 UserDefinedFunction& WithFunctionName(FunctionNameT&& value) {
53 SetFunctionName(std::forward<FunctionNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
63 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
64 template <typename DatabaseNameT = Aws::String>
65 void SetDatabaseName(DatabaseNameT&& value) {
66 m_databaseNameHasBeenSet = true;
67 m_databaseName = std::forward<DatabaseNameT>(value);
68 }
69 template <typename DatabaseNameT = Aws::String>
70 UserDefinedFunction& WithDatabaseName(DatabaseNameT&& value) {
71 SetDatabaseName(std::forward<DatabaseNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetClassName() const { return m_className; }
81 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
82 template <typename ClassNameT = Aws::String>
83 void SetClassName(ClassNameT&& value) {
84 m_classNameHasBeenSet = true;
85 m_className = std::forward<ClassNameT>(value);
86 }
87 template <typename ClassNameT = Aws::String>
88 UserDefinedFunction& WithClassName(ClassNameT&& value) {
89 SetClassName(std::forward<ClassNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetOwnerName() const { return m_ownerName; }
99 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
100 template <typename OwnerNameT = Aws::String>
101 void SetOwnerName(OwnerNameT&& value) {
102 m_ownerNameHasBeenSet = true;
103 m_ownerName = std::forward<OwnerNameT>(value);
104 }
105 template <typename OwnerNameT = Aws::String>
106 UserDefinedFunction& WithOwnerName(OwnerNameT&& value) {
107 SetOwnerName(std::forward<OwnerNameT>(value));
108 return *this;
109 }
111
113
116 inline FunctionType GetFunctionType() const { return m_functionType; }
117 inline bool FunctionTypeHasBeenSet() const { return m_functionTypeHasBeenSet; }
118 inline void SetFunctionType(FunctionType value) {
119 m_functionTypeHasBeenSet = true;
120 m_functionType = value;
121 }
123 SetFunctionType(value);
124 return *this;
125 }
127
129
132 inline PrincipalType GetOwnerType() const { return m_ownerType; }
133 inline bool OwnerTypeHasBeenSet() const { return m_ownerTypeHasBeenSet; }
134 inline void SetOwnerType(PrincipalType value) {
135 m_ownerTypeHasBeenSet = true;
136 m_ownerType = value;
137 }
139 SetOwnerType(value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
149 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
150 template <typename CreateTimeT = Aws::Utils::DateTime>
151 void SetCreateTime(CreateTimeT&& value) {
152 m_createTimeHasBeenSet = true;
153 m_createTime = std::forward<CreateTimeT>(value);
154 }
155 template <typename CreateTimeT = Aws::Utils::DateTime>
156 UserDefinedFunction& WithCreateTime(CreateTimeT&& value) {
157 SetCreateTime(std::forward<CreateTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Vector<ResourceUri>& GetResourceUris() const { return m_resourceUris; }
167 inline bool ResourceUrisHasBeenSet() const { return m_resourceUrisHasBeenSet; }
168 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
169 void SetResourceUris(ResourceUrisT&& value) {
170 m_resourceUrisHasBeenSet = true;
171 m_resourceUris = std::forward<ResourceUrisT>(value);
172 }
173 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
174 UserDefinedFunction& WithResourceUris(ResourceUrisT&& value) {
175 SetResourceUris(std::forward<ResourceUrisT>(value));
176 return *this;
177 }
178 template <typename ResourceUrisT = ResourceUri>
179 UserDefinedFunction& AddResourceUris(ResourceUrisT&& value) {
180 m_resourceUrisHasBeenSet = true;
181 m_resourceUris.emplace_back(std::forward<ResourceUrisT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
191 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
192 template <typename CatalogIdT = Aws::String>
193 void SetCatalogId(CatalogIdT&& value) {
194 m_catalogIdHasBeenSet = true;
195 m_catalogId = std::forward<CatalogIdT>(value);
196 }
197 template <typename CatalogIdT = Aws::String>
198 UserDefinedFunction& WithCatalogId(CatalogIdT&& value) {
199 SetCatalogId(std::forward<CatalogIdT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_functionName;
205
206 Aws::String m_databaseName;
207
208 Aws::String m_className;
209
210 Aws::String m_ownerName;
211
212 FunctionType m_functionType{FunctionType::NOT_SET};
213
215
216 Aws::Utils::DateTime m_createTime{};
217
218 Aws::Vector<ResourceUri> m_resourceUris;
219
220 Aws::String m_catalogId;
221 bool m_functionNameHasBeenSet = false;
222 bool m_databaseNameHasBeenSet = false;
223 bool m_classNameHasBeenSet = false;
224 bool m_ownerNameHasBeenSet = false;
225 bool m_functionTypeHasBeenSet = false;
226 bool m_ownerTypeHasBeenSet = false;
227 bool m_createTimeHasBeenSet = false;
228 bool m_resourceUrisHasBeenSet = false;
229 bool m_catalogIdHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace Glue
234} // 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 & WithDatabaseName(DatabaseNameT &&value)
const Aws::String & GetDatabaseName() const
UserDefinedFunction & WithOwnerName(OwnerNameT &&value)
void SetResourceUris(ResourceUrisT &&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 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