AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/PrincipalType.h>
12#include <aws/glue/model/ResourceUri.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
33 public:
34 AWS_GLUE_API UserDefinedFunctionInput() = default;
38
40
43 inline const Aws::String& GetFunctionName() const { return m_functionName; }
44 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
45 template <typename FunctionNameT = Aws::String>
46 void SetFunctionName(FunctionNameT&& value) {
47 m_functionNameHasBeenSet = true;
48 m_functionName = std::forward<FunctionNameT>(value);
49 }
50 template <typename FunctionNameT = Aws::String>
52 SetFunctionName(std::forward<FunctionNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetClassName() const { return m_className; }
62 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
63 template <typename ClassNameT = Aws::String>
64 void SetClassName(ClassNameT&& value) {
65 m_classNameHasBeenSet = true;
66 m_className = std::forward<ClassNameT>(value);
67 }
68 template <typename ClassNameT = Aws::String>
70 SetClassName(std::forward<ClassNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetOwnerName() const { return m_ownerName; }
80 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
81 template <typename OwnerNameT = Aws::String>
82 void SetOwnerName(OwnerNameT&& value) {
83 m_ownerNameHasBeenSet = true;
84 m_ownerName = std::forward<OwnerNameT>(value);
85 }
86 template <typename OwnerNameT = Aws::String>
88 SetOwnerName(std::forward<OwnerNameT>(value));
89 return *this;
90 }
92
94
97 inline FunctionType GetFunctionType() const { return m_functionType; }
98 inline bool FunctionTypeHasBeenSet() const { return m_functionTypeHasBeenSet; }
99 inline void SetFunctionType(FunctionType value) {
100 m_functionTypeHasBeenSet = true;
101 m_functionType = value;
102 }
104 SetFunctionType(value);
105 return *this;
106 }
108
110
113 inline PrincipalType GetOwnerType() const { return m_ownerType; }
114 inline bool OwnerTypeHasBeenSet() const { return m_ownerTypeHasBeenSet; }
115 inline void SetOwnerType(PrincipalType value) {
116 m_ownerTypeHasBeenSet = true;
117 m_ownerType = value;
118 }
120 SetOwnerType(value);
121 return *this;
122 }
124
126
129 inline const Aws::Vector<ResourceUri>& GetResourceUris() const { return m_resourceUris; }
130 inline bool ResourceUrisHasBeenSet() const { return m_resourceUrisHasBeenSet; }
131 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
132 void SetResourceUris(ResourceUrisT&& value) {
133 m_resourceUrisHasBeenSet = true;
134 m_resourceUris = std::forward<ResourceUrisT>(value);
135 }
136 template <typename ResourceUrisT = Aws::Vector<ResourceUri>>
138 SetResourceUris(std::forward<ResourceUrisT>(value));
139 return *this;
140 }
141 template <typename ResourceUrisT = ResourceUri>
143 m_resourceUrisHasBeenSet = true;
144 m_resourceUris.emplace_back(std::forward<ResourceUrisT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_functionName;
150
151 Aws::String m_className;
152
153 Aws::String m_ownerName;
154
155 FunctionType m_functionType{FunctionType::NOT_SET};
156
158
159 Aws::Vector<ResourceUri> m_resourceUris;
160 bool m_functionNameHasBeenSet = false;
161 bool m_classNameHasBeenSet = false;
162 bool m_ownerNameHasBeenSet = false;
163 bool m_functionTypeHasBeenSet = false;
164 bool m_ownerTypeHasBeenSet = false;
165 bool m_resourceUrisHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Glue
170} // namespace Aws
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)
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