AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateFunctionUrlConfigResult.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 CreateFunctionUrlConfigResult() = 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
136 inline InvokeMode GetInvokeMode() const { return m_invokeMode; }
137 inline void SetInvokeMode(InvokeMode value) {
138 m_invokeModeHasBeenSet = true;
139 m_invokeMode = value;
140 }
142 SetInvokeMode(value);
143 return *this;
144 }
146
148
149 inline const Aws::String& GetRequestId() const { return m_requestId; }
150 template <typename RequestIdT = Aws::String>
151 void SetRequestId(RequestIdT&& value) {
152 m_requestIdHasBeenSet = true;
153 m_requestId = std::forward<RequestIdT>(value);
154 }
155 template <typename RequestIdT = Aws::String>
157 SetRequestId(std::forward<RequestIdT>(value));
158 return *this;
159 }
161 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
162
163 private:
164 Aws::String m_functionUrl;
165
166 Aws::String m_functionArn;
167
169
170 Cors m_cors;
171
172 Aws::String m_creationTime;
173
174 InvokeMode m_invokeMode{InvokeMode::NOT_SET};
175
176 Aws::String m_requestId;
177 Aws::Http::HttpResponseCode m_HttpResponseCode;
178 bool m_functionUrlHasBeenSet = false;
179 bool m_functionArnHasBeenSet = false;
180 bool m_authTypeHasBeenSet = false;
181 bool m_corsHasBeenSet = false;
182 bool m_creationTimeHasBeenSet = false;
183 bool m_invokeModeHasBeenSet = false;
184 bool m_requestIdHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace Lambda
189} // namespace Aws
CreateFunctionUrlConfigResult & WithInvokeMode(InvokeMode value)
AWS_LAMBDA_API CreateFunctionUrlConfigResult()=default
CreateFunctionUrlConfigResult & WithFunctionArn(FunctionArnT &&value)
CreateFunctionUrlConfigResult & WithCors(CorsT &&value)
CreateFunctionUrlConfigResult & WithRequestId(RequestIdT &&value)
AWS_LAMBDA_API CreateFunctionUrlConfigResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFunctionUrlConfigResult & WithFunctionUrl(FunctionUrlT &&value)
CreateFunctionUrlConfigResult & WithAuthType(FunctionUrlAuthType value)
CreateFunctionUrlConfigResult & WithCreationTime(CreationTimeT &&value)
AWS_LAMBDA_API CreateFunctionUrlConfigResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue