AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetFunctionUrlConfigResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10#include <aws/lambda/model/Cors.h>
11#include <aws/lambda/model/FunctionUrlAuthType.h>
12#include <aws/lambda/model/InvokeMode.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Lambda {
26namespace Model {
28 public:
29 AWS_LAMBDA_API GetFunctionUrlConfigResult() = default;
32
34
37 inline const Aws::String& GetFunctionUrl() const { return m_functionUrl; }
38 template <typename FunctionUrlT = Aws::String>
39 void SetFunctionUrl(FunctionUrlT&& value) {
40 m_functionUrlHasBeenSet = true;
41 m_functionUrl = std::forward<FunctionUrlT>(value);
42 }
43 template <typename FunctionUrlT = Aws::String>
45 SetFunctionUrl(std::forward<FunctionUrlT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
55 template <typename FunctionArnT = Aws::String>
56 void SetFunctionArn(FunctionArnT&& value) {
57 m_functionArnHasBeenSet = true;
58 m_functionArn = std::forward<FunctionArnT>(value);
59 }
60 template <typename FunctionArnT = Aws::String>
62 SetFunctionArn(std::forward<FunctionArnT>(value));
63 return *this;
64 }
66
68
76 inline FunctionUrlAuthType GetAuthType() const { return m_authType; }
77 inline void SetAuthType(FunctionUrlAuthType value) {
78 m_authTypeHasBeenSet = true;
79 m_authType = value;
80 }
82 SetAuthType(value);
83 return *this;
84 }
86
88
93 inline const Cors& GetCors() const { return m_cors; }
94 template <typename CorsT = Cors>
95 void SetCors(CorsT&& value) {
96 m_corsHasBeenSet = true;
97 m_cors = std::forward<CorsT>(value);
98 }
99 template <typename CorsT = Cors>
101 SetCors(std::forward<CorsT>(value));
102 return *this;
103 }
105
107
112 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
113 template <typename CreationTimeT = Aws::String>
114 void SetCreationTime(CreationTimeT&& value) {
115 m_creationTimeHasBeenSet = true;
116 m_creationTime = std::forward<CreationTimeT>(value);
117 }
118 template <typename CreationTimeT = Aws::String>
120 SetCreationTime(std::forward<CreationTimeT>(value));
121 return *this;
122 }
124
126
131 inline const Aws::String& GetLastModifiedTime() const { return m_lastModifiedTime; }
132 template <typename LastModifiedTimeT = Aws::String>
133 void SetLastModifiedTime(LastModifiedTimeT&& value) {
134 m_lastModifiedTimeHasBeenSet = true;
135 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
136 }
137 template <typename LastModifiedTimeT = Aws::String>
139 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
140 return *this;
141 }
143
145
155 inline InvokeMode GetInvokeMode() const { return m_invokeMode; }
156 inline void SetInvokeMode(InvokeMode value) {
157 m_invokeModeHasBeenSet = true;
158 m_invokeMode = value;
159 }
161 SetInvokeMode(value);
162 return *this;
163 }
165
167
168 inline const Aws::String& GetRequestId() const { return m_requestId; }
169 template <typename RequestIdT = Aws::String>
170 void SetRequestId(RequestIdT&& value) {
171 m_requestIdHasBeenSet = true;
172 m_requestId = std::forward<RequestIdT>(value);
173 }
174 template <typename RequestIdT = Aws::String>
176 SetRequestId(std::forward<RequestIdT>(value));
177 return *this;
178 }
180 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
181
182 private:
183 Aws::String m_functionUrl;
184
185 Aws::String m_functionArn;
186
188
189 Cors m_cors;
190
191 Aws::String m_creationTime;
192
193 Aws::String m_lastModifiedTime;
194
195 InvokeMode m_invokeMode{InvokeMode::NOT_SET};
196
197 Aws::String m_requestId;
198 Aws::Http::HttpResponseCode m_HttpResponseCode;
199 bool m_functionUrlHasBeenSet = false;
200 bool m_functionArnHasBeenSet = false;
201 bool m_authTypeHasBeenSet = false;
202 bool m_corsHasBeenSet = false;
203 bool m_creationTimeHasBeenSet = false;
204 bool m_lastModifiedTimeHasBeenSet = false;
205 bool m_invokeModeHasBeenSet = false;
206 bool m_requestIdHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace Lambda
211} // namespace Aws
AWS_LAMBDA_API GetFunctionUrlConfigResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFunctionUrlConfigResult & WithFunctionUrl(FunctionUrlT &&value)
GetFunctionUrlConfigResult & WithRequestId(RequestIdT &&value)
GetFunctionUrlConfigResult & WithFunctionArn(FunctionArnT &&value)
GetFunctionUrlConfigResult & WithCors(CorsT &&value)
GetFunctionUrlConfigResult & WithInvokeMode(InvokeMode value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetFunctionUrlConfigResult & WithCreationTime(CreationTimeT &&value)
GetFunctionUrlConfigResult & WithAuthType(FunctionUrlAuthType value)
AWS_LAMBDA_API GetFunctionUrlConfigResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LAMBDA_API GetFunctionUrlConfigResult()=default
GetFunctionUrlConfigResult & WithLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue