AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
43
44
46
49 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
50 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
51 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
52 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
53 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
54 inline UserDefinedFunction& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
55 inline UserDefinedFunction& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
56 inline UserDefinedFunction& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
58
60
63 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
64 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
65 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
66 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
67 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
68 inline UserDefinedFunction& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
69 inline UserDefinedFunction& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
70 inline UserDefinedFunction& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
72
74
77 inline const Aws::String& GetClassName() const{ return m_className; }
78 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
79 inline void SetClassName(const Aws::String& value) { m_classNameHasBeenSet = true; m_className = value; }
80 inline void SetClassName(Aws::String&& value) { m_classNameHasBeenSet = true; m_className = std::move(value); }
81 inline void SetClassName(const char* value) { m_classNameHasBeenSet = true; m_className.assign(value); }
82 inline UserDefinedFunction& WithClassName(const Aws::String& value) { SetClassName(value); return *this;}
83 inline UserDefinedFunction& WithClassName(Aws::String&& value) { SetClassName(std::move(value)); return *this;}
84 inline UserDefinedFunction& WithClassName(const char* value) { SetClassName(value); return *this;}
86
88
91 inline const Aws::String& GetOwnerName() const{ return m_ownerName; }
92 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
93 inline void SetOwnerName(const Aws::String& value) { m_ownerNameHasBeenSet = true; m_ownerName = value; }
94 inline void SetOwnerName(Aws::String&& value) { m_ownerNameHasBeenSet = true; m_ownerName = std::move(value); }
95 inline void SetOwnerName(const char* value) { m_ownerNameHasBeenSet = true; m_ownerName.assign(value); }
96 inline UserDefinedFunction& WithOwnerName(const Aws::String& value) { SetOwnerName(value); return *this;}
97 inline UserDefinedFunction& WithOwnerName(Aws::String&& value) { SetOwnerName(std::move(value)); return *this;}
98 inline UserDefinedFunction& WithOwnerName(const char* value) { SetOwnerName(value); return *this;}
100
102
105 inline const PrincipalType& GetOwnerType() const{ return m_ownerType; }
106 inline bool OwnerTypeHasBeenSet() const { return m_ownerTypeHasBeenSet; }
107 inline void SetOwnerType(const PrincipalType& value) { m_ownerTypeHasBeenSet = true; m_ownerType = value; }
108 inline void SetOwnerType(PrincipalType&& value) { m_ownerTypeHasBeenSet = true; m_ownerType = std::move(value); }
109 inline UserDefinedFunction& WithOwnerType(const PrincipalType& value) { SetOwnerType(value); return *this;}
110 inline UserDefinedFunction& WithOwnerType(PrincipalType&& value) { SetOwnerType(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
118 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
119 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
120 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
121 inline UserDefinedFunction& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
122 inline UserDefinedFunction& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
124
126
129 inline const Aws::Vector<ResourceUri>& GetResourceUris() const{ return m_resourceUris; }
130 inline bool ResourceUrisHasBeenSet() const { return m_resourceUrisHasBeenSet; }
131 inline void SetResourceUris(const Aws::Vector<ResourceUri>& value) { m_resourceUrisHasBeenSet = true; m_resourceUris = value; }
132 inline void SetResourceUris(Aws::Vector<ResourceUri>&& value) { m_resourceUrisHasBeenSet = true; m_resourceUris = std::move(value); }
134 inline UserDefinedFunction& WithResourceUris(Aws::Vector<ResourceUri>&& value) { SetResourceUris(std::move(value)); return *this;}
135 inline UserDefinedFunction& AddResourceUris(const ResourceUri& value) { m_resourceUrisHasBeenSet = true; m_resourceUris.push_back(value); return *this; }
136 inline UserDefinedFunction& AddResourceUris(ResourceUri&& value) { m_resourceUrisHasBeenSet = true; m_resourceUris.push_back(std::move(value)); return *this; }
138
140
143 inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
144 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
145 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
146 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
147 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
148 inline UserDefinedFunction& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
149 inline UserDefinedFunction& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
150 inline UserDefinedFunction& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
152 private:
153
154 Aws::String m_functionName;
155 bool m_functionNameHasBeenSet = false;
156
157 Aws::String m_databaseName;
158 bool m_databaseNameHasBeenSet = false;
159
160 Aws::String m_className;
161 bool m_classNameHasBeenSet = false;
162
163 Aws::String m_ownerName;
164 bool m_ownerNameHasBeenSet = false;
165
166 PrincipalType m_ownerType;
167 bool m_ownerTypeHasBeenSet = false;
168
169 Aws::Utils::DateTime m_createTime;
170 bool m_createTimeHasBeenSet = false;
171
172 Aws::Vector<ResourceUri> m_resourceUris;
173 bool m_resourceUrisHasBeenSet = false;
174
175 Aws::String m_catalogId;
176 bool m_catalogIdHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace Glue
181} // namespace Aws
UserDefinedFunction & WithDatabaseName(const char *value)
void SetResourceUris(Aws::Vector< ResourceUri > &&value)
UserDefinedFunction & WithCatalogId(const Aws::String &value)
UserDefinedFunction & WithClassName(const Aws::String &value)
const Aws::String & GetCatalogId() const
const Aws::String & GetFunctionName() const
void SetClassName(const Aws::String &value)
void SetFunctionName(const Aws::String &value)
UserDefinedFunction & WithOwnerName(const char *value)
void SetOwnerType(PrincipalType &&value)
UserDefinedFunction & AddResourceUris(const ResourceUri &value)
UserDefinedFunction & WithCatalogId(const char *value)
UserDefinedFunction & AddResourceUris(ResourceUri &&value)
void SetDatabaseName(const Aws::String &value)
UserDefinedFunction & WithDatabaseName(Aws::String &&value)
UserDefinedFunction & WithResourceUris(const Aws::Vector< ResourceUri > &value)
void SetOwnerName(const Aws::String &value)
const Aws::String & GetDatabaseName() const
void SetResourceUris(const Aws::Vector< ResourceUri > &value)
UserDefinedFunction & WithOwnerName(const Aws::String &value)
UserDefinedFunction & WithOwnerType(const PrincipalType &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
UserDefinedFunction & WithFunctionName(Aws::String &&value)
void SetDatabaseName(Aws::String &&value)
UserDefinedFunction & WithCreateTime(Aws::Utils::DateTime &&value)
UserDefinedFunction & WithDatabaseName(const Aws::String &value)
UserDefinedFunction & WithResourceUris(Aws::Vector< ResourceUri > &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
UserDefinedFunction & WithOwnerType(PrincipalType &&value)
UserDefinedFunction & WithFunctionName(const Aws::String &value)
void SetOwnerType(const PrincipalType &value)
UserDefinedFunction & WithOwnerName(Aws::String &&value)
UserDefinedFunction & WithFunctionName(const char *value)
AWS_GLUE_API UserDefinedFunction(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API UserDefinedFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogId(const Aws::String &value)
UserDefinedFunction & WithClassName(Aws::String &&value)
const PrincipalType & GetOwnerType() const
const Aws::Vector< ResourceUri > & GetResourceUris() const
UserDefinedFunction & WithCatalogId(Aws::String &&value)
UserDefinedFunction & WithCreateTime(const Aws::Utils::DateTime &value)
UserDefinedFunction & WithClassName(const char *value)
void SetCreateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetOwnerName() const
const Aws::String & GetClassName() const
void SetFunctionName(Aws::String &&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