AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
UserDefinedFunctionInput.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/FunctionType.h>
11#include <aws/glue/model/GovernanceMode.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 UserDefinedFunctionInput() = 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>
53 SetFunctionName(std::forward<FunctionNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetClassName() const { return m_className; }
63 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
64 template <typename ClassNameT = Aws::String>
65 void SetClassName(ClassNameT&& value) {
66 m_classNameHasBeenSet = true;
67 m_className = std::forward<ClassNameT>(value);
68 }
69 template <typename ClassNameT = Aws::String>
71 SetClassName(std::forward<ClassNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetOwnerName() const { return m_ownerName; }
81 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
82 template <typename OwnerNameT = Aws::String>
83 void SetOwnerName(OwnerNameT&& value) {
84 m_ownerNameHasBeenSet = true;
85 m_ownerName = std::forward<OwnerNameT>(value);
86 }
87 template <typename OwnerNameT = Aws::String>
89 SetOwnerName(std::forward<OwnerNameT>(value));
90 return *this;
91 }
93
95
98 inline FunctionType GetFunctionType() const { return m_functionType; }
99 inline bool FunctionTypeHasBeenSet() const { return m_functionTypeHasBeenSet; }
100 inline void SetFunctionType(FunctionType value) {
101 m_functionTypeHasBeenSet = true;
102 m_functionType = value;
103 }
105 SetFunctionType(value);
106 return *this;
107 }
109
111
114 inline PrincipalType GetOwnerType() const { return m_ownerType; }
115 inline bool OwnerTypeHasBeenSet() const { return m_ownerTypeHasBeenSet; }
116 inline void SetOwnerType(PrincipalType value) {
117 m_ownerTypeHasBeenSet = true;
118 m_ownerType = value;
119 }
121 SetOwnerType(value);
122 return *this;
123 }
125
127
130 inline const Aws::Vector<ResourceUri>& GetResourceUris() const { return m_resourceUris; }
131 inline bool ResourceUrisHasBeenSet() const { return m_resourceUrisHasBeenSet; }
132 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
133 void SetResourceUris(ResourceUrisT&& value) {
134 m_resourceUrisHasBeenSet = true;
135 m_resourceUris = std::forward<ResourceUrisT>(value);
136 }
137 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
139 SetResourceUris(std::forward<ResourceUrisT>(value));
140 return *this;
141 }
142 template <typename ResourceUrisT = ResourceUri>
144 m_resourceUrisHasBeenSet = true;
145 m_resourceUris.emplace_back(std::forward<ResourceUrisT>(value));
146 return *this;
147 }
149
151
157 inline const Aws::String& GetArtifactLocation() const { return m_artifactLocation; }
158 inline bool ArtifactLocationHasBeenSet() const { return m_artifactLocationHasBeenSet; }
159 template <typename ArtifactLocationT = Aws::String>
160 void SetArtifactLocation(ArtifactLocationT&& value) {
161 m_artifactLocationHasBeenSet = true;
162 m_artifactLocation = std::forward<ArtifactLocationT>(value);
163 }
164 template <typename ArtifactLocationT = Aws::String>
165 UserDefinedFunctionInput& WithArtifactLocation(ArtifactLocationT&& value) {
166 SetArtifactLocation(std::forward<ArtifactLocationT>(value));
167 return *this;
168 }
170
172
186 inline GovernanceMode GetGovernanceMode() const { return m_governanceMode; }
187 inline bool GovernanceModeHasBeenSet() const { return m_governanceModeHasBeenSet; }
189 m_governanceModeHasBeenSet = true;
190 m_governanceMode = value;
191 }
193 SetGovernanceMode(value);
194 return *this;
195 }
197 private:
198 Aws::String m_functionName;
199
200 Aws::String m_className;
201
202 Aws::String m_ownerName;
203
204 FunctionType m_functionType{FunctionType::NOT_SET};
205
207
208 Aws::Vector<ResourceUri> m_resourceUris;
209
210 Aws::String m_artifactLocation;
211
212 GovernanceMode m_governanceMode{GovernanceMode::NOT_SET};
213 bool m_functionNameHasBeenSet = false;
214 bool m_classNameHasBeenSet = false;
215 bool m_ownerNameHasBeenSet = false;
216 bool m_functionTypeHasBeenSet = false;
217 bool m_ownerTypeHasBeenSet = false;
218 bool m_resourceUrisHasBeenSet = false;
219 bool m_artifactLocationHasBeenSet = false;
220 bool m_governanceModeHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace Glue
225} // namespace Aws
UserDefinedFunctionInput & WithArtifactLocation(ArtifactLocationT &&value)
UserDefinedFunctionInput & WithOwnerType(PrincipalType value)
UserDefinedFunctionInput & WithFunctionName(FunctionNameT &&value)
UserDefinedFunctionInput & AddResourceUris(ResourceUrisT &&value)
const Aws::Vector< ResourceUri > & GetResourceUris() const
UserDefinedFunctionInput & WithResourceUris(ResourceUrisT &&value)
UserDefinedFunctionInput & WithFunctionType(FunctionType value)
AWS_GLUE_API UserDefinedFunctionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
UserDefinedFunctionInput & WithClassName(ClassNameT &&value)
UserDefinedFunctionInput & WithOwnerName(OwnerNameT &&value)
void SetArtifactLocation(ArtifactLocationT &&value)
UserDefinedFunctionInput & WithGovernanceMode(GovernanceMode value)
AWS_GLUE_API UserDefinedFunctionInput()=default
AWS_GLUE_API UserDefinedFunctionInput(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue