AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UserDefinedFunction.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/PrincipalType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/ResourceUri.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GLUE_API UserDefinedFunction() = default;
43
44
46
49 inline const Aws::String& GetFunctionName() const { return m_functionName; }
50 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
51 template<typename FunctionNameT = Aws::String>
52 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
53 template<typename FunctionNameT = Aws::String>
54 UserDefinedFunction& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
62 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
63 template<typename DatabaseNameT = Aws::String>
64 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
65 template<typename DatabaseNameT = Aws::String>
66 UserDefinedFunction& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetClassName() const { return m_className; }
74 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
75 template<typename ClassNameT = Aws::String>
76 void SetClassName(ClassNameT&& value) { m_classNameHasBeenSet = true; m_className = std::forward<ClassNameT>(value); }
77 template<typename ClassNameT = Aws::String>
78 UserDefinedFunction& WithClassName(ClassNameT&& value) { SetClassName(std::forward<ClassNameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetOwnerName() const { return m_ownerName; }
86 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
87 template<typename OwnerNameT = Aws::String>
88 void SetOwnerName(OwnerNameT&& value) { m_ownerNameHasBeenSet = true; m_ownerName = std::forward<OwnerNameT>(value); }
89 template<typename OwnerNameT = Aws::String>
90 UserDefinedFunction& WithOwnerName(OwnerNameT&& value) { SetOwnerName(std::forward<OwnerNameT>(value)); return *this;}
92
94
97 inline PrincipalType GetOwnerType() const { return m_ownerType; }
98 inline bool OwnerTypeHasBeenSet() const { return m_ownerTypeHasBeenSet; }
99 inline void SetOwnerType(PrincipalType value) { m_ownerTypeHasBeenSet = true; m_ownerType = value; }
100 inline UserDefinedFunction& WithOwnerType(PrincipalType value) { SetOwnerType(value); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
108 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
109 template<typename CreateTimeT = Aws::Utils::DateTime>
110 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
111 template<typename CreateTimeT = Aws::Utils::DateTime>
112 UserDefinedFunction& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
114
116
119 inline const Aws::Vector<ResourceUri>& GetResourceUris() const { return m_resourceUris; }
120 inline bool ResourceUrisHasBeenSet() const { return m_resourceUrisHasBeenSet; }
121 template<typename ResourceUrisT = Aws::Vector<ResourceUri>>
122 void SetResourceUris(ResourceUrisT&& value) { m_resourceUrisHasBeenSet = true; m_resourceUris = std::forward<ResourceUrisT>(value); }
123 template<typename ResourceUrisT = Aws::Vector<ResourceUri>>
124 UserDefinedFunction& WithResourceUris(ResourceUrisT&& value) { SetResourceUris(std::forward<ResourceUrisT>(value)); return *this;}
125 template<typename ResourceUrisT = ResourceUri>
126 UserDefinedFunction& AddResourceUris(ResourceUrisT&& value) { m_resourceUrisHasBeenSet = true; m_resourceUris.emplace_back(std::forward<ResourceUrisT>(value)); return *this; }
128
130
133 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
134 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
135 template<typename CatalogIdT = Aws::String>
136 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
137 template<typename CatalogIdT = Aws::String>
138 UserDefinedFunction& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
140 private:
141
142 Aws::String m_functionName;
143 bool m_functionNameHasBeenSet = false;
144
145 Aws::String m_databaseName;
146 bool m_databaseNameHasBeenSet = false;
147
148 Aws::String m_className;
149 bool m_classNameHasBeenSet = false;
150
151 Aws::String m_ownerName;
152 bool m_ownerNameHasBeenSet = false;
153
155 bool m_ownerTypeHasBeenSet = false;
156
157 Aws::Utils::DateTime m_createTime{};
158 bool m_createTimeHasBeenSet = false;
159
160 Aws::Vector<ResourceUri> m_resourceUris;
161 bool m_resourceUrisHasBeenSet = false;
162
163 Aws::String m_catalogId;
164 bool m_catalogIdHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Glue
169} // 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)
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