AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FunctionUrlConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/Cors.h>
10#include <aws/lambda/model/FunctionUrlAuthType.h>
11#include <aws/lambda/model/InvokeMode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda {
23namespace Model {
24
31 public:
32 AWS_LAMBDA_API FunctionUrlConfig() = default;
35 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetFunctionUrl() const { return m_functionUrl; }
42 inline bool FunctionUrlHasBeenSet() const { return m_functionUrlHasBeenSet; }
43 template <typename FunctionUrlT = Aws::String>
44 void SetFunctionUrl(FunctionUrlT&& value) {
45 m_functionUrlHasBeenSet = true;
46 m_functionUrl = std::forward<FunctionUrlT>(value);
47 }
48 template <typename FunctionUrlT = Aws::String>
49 FunctionUrlConfig& WithFunctionUrl(FunctionUrlT&& value) {
50 SetFunctionUrl(std::forward<FunctionUrlT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
60 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
61 template <typename FunctionArnT = Aws::String>
62 void SetFunctionArn(FunctionArnT&& value) {
63 m_functionArnHasBeenSet = true;
64 m_functionArn = std::forward<FunctionArnT>(value);
65 }
66 template <typename FunctionArnT = Aws::String>
67 FunctionUrlConfig& WithFunctionArn(FunctionArnT&& value) {
68 SetFunctionArn(std::forward<FunctionArnT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
80 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
81 template <typename CreationTimeT = Aws::String>
82 void SetCreationTime(CreationTimeT&& value) {
83 m_creationTimeHasBeenSet = true;
84 m_creationTime = std::forward<CreationTimeT>(value);
85 }
86 template <typename CreationTimeT = Aws::String>
87 FunctionUrlConfig& WithCreationTime(CreationTimeT&& value) {
88 SetCreationTime(std::forward<CreationTimeT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetLastModifiedTime() const { return m_lastModifiedTime; }
100 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
101 template <typename LastModifiedTimeT = Aws::String>
102 void SetLastModifiedTime(LastModifiedTimeT&& value) {
103 m_lastModifiedTimeHasBeenSet = true;
104 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
105 }
106 template <typename LastModifiedTimeT = Aws::String>
107 FunctionUrlConfig& WithLastModifiedTime(LastModifiedTimeT&& value) {
108 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
109 return *this;
110 }
112
114
119 inline const Cors& GetCors() const { return m_cors; }
120 inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; }
121 template <typename CorsT = Cors>
122 void SetCors(CorsT&& value) {
123 m_corsHasBeenSet = true;
124 m_cors = std::forward<CorsT>(value);
125 }
126 template <typename CorsT = Cors>
127 FunctionUrlConfig& WithCors(CorsT&& value) {
128 SetCors(std::forward<CorsT>(value));
129 return *this;
130 }
132
134
142 inline FunctionUrlAuthType GetAuthType() const { return m_authType; }
143 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
144 inline void SetAuthType(FunctionUrlAuthType value) {
145 m_authTypeHasBeenSet = true;
146 m_authType = value;
147 }
149 SetAuthType(value);
150 return *this;
151 }
153
155
165 inline InvokeMode GetInvokeMode() const { return m_invokeMode; }
166 inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; }
167 inline void SetInvokeMode(InvokeMode value) {
168 m_invokeModeHasBeenSet = true;
169 m_invokeMode = value;
170 }
172 SetInvokeMode(value);
173 return *this;
174 }
176 private:
177 Aws::String m_functionUrl;
178
179 Aws::String m_functionArn;
180
181 Aws::String m_creationTime;
182
183 Aws::String m_lastModifiedTime;
184
185 Cors m_cors;
186
188
189 InvokeMode m_invokeMode{InvokeMode::NOT_SET};
190 bool m_functionUrlHasBeenSet = false;
191 bool m_functionArnHasBeenSet = false;
192 bool m_creationTimeHasBeenSet = false;
193 bool m_lastModifiedTimeHasBeenSet = false;
194 bool m_corsHasBeenSet = false;
195 bool m_authTypeHasBeenSet = false;
196 bool m_invokeModeHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace Lambda
201} // namespace Aws
FunctionUrlAuthType GetAuthType() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API FunctionUrlConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
FunctionUrlConfig & WithInvokeMode(InvokeMode value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_LAMBDA_API FunctionUrlConfig()=default
FunctionUrlConfig & WithLastModifiedTime(LastModifiedTimeT &&value)
FunctionUrlConfig & WithCreationTime(CreationTimeT &&value)
AWS_LAMBDA_API FunctionUrlConfig(Aws::Utils::Json::JsonView jsonValue)
FunctionUrlConfig & WithFunctionArn(FunctionArnT &&value)
void SetFunctionUrl(FunctionUrlT &&value)
FunctionUrlConfig & WithCors(CorsT &&value)
const Aws::String & GetCreationTime() const
void SetFunctionArn(FunctionArnT &&value)
FunctionUrlConfig & WithAuthType(FunctionUrlAuthType value)
const Aws::String & GetFunctionArn() const
const Aws::String & GetLastModifiedTime() const
void SetAuthType(FunctionUrlAuthType value)
const Aws::String & GetFunctionUrl() const
FunctionUrlConfig & WithFunctionUrl(FunctionUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue