AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FunctionUrlConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/model/Cors.h>
10#include <aws/lambda/model/FunctionUrlAuthType.h>
11#include <aws/lambda/model/InvokeMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lambda
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_LAMBDA_API FunctionUrlConfig() = default;
40 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFunctionUrl() const { return m_functionUrl; }
48 inline bool FunctionUrlHasBeenSet() const { return m_functionUrlHasBeenSet; }
49 template<typename FunctionUrlT = Aws::String>
50 void SetFunctionUrl(FunctionUrlT&& value) { m_functionUrlHasBeenSet = true; m_functionUrl = std::forward<FunctionUrlT>(value); }
51 template<typename FunctionUrlT = Aws::String>
52 FunctionUrlConfig& WithFunctionUrl(FunctionUrlT&& value) { SetFunctionUrl(std::forward<FunctionUrlT>(value)); return *this;}
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) { m_functionArnHasBeenSet = true; m_functionArn = std::forward<FunctionArnT>(value); }
63 template<typename FunctionArnT = Aws::String>
64 FunctionUrlConfig& WithFunctionArn(FunctionArnT&& value) { SetFunctionArn(std::forward<FunctionArnT>(value)); return *this;}
66
68
73 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
74 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
75 template<typename CreationTimeT = Aws::String>
76 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
77 template<typename CreationTimeT = Aws::String>
78 FunctionUrlConfig& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
80
82
87 inline const Aws::String& GetLastModifiedTime() const { return m_lastModifiedTime; }
88 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
89 template<typename LastModifiedTimeT = Aws::String>
90 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
91 template<typename LastModifiedTimeT = Aws::String>
92 FunctionUrlConfig& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
94
96
101 inline const Cors& GetCors() const { return m_cors; }
102 inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; }
103 template<typename CorsT = Cors>
104 void SetCors(CorsT&& value) { m_corsHasBeenSet = true; m_cors = std::forward<CorsT>(value); }
105 template<typename CorsT = Cors>
106 FunctionUrlConfig& WithCors(CorsT&& value) { SetCors(std::forward<CorsT>(value)); return *this;}
108
110
118 inline FunctionUrlAuthType GetAuthType() const { return m_authType; }
119 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
120 inline void SetAuthType(FunctionUrlAuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
121 inline FunctionUrlConfig& WithAuthType(FunctionUrlAuthType value) { SetAuthType(value); return *this;}
123
125
137 inline InvokeMode GetInvokeMode() const { return m_invokeMode; }
138 inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; }
139 inline void SetInvokeMode(InvokeMode value) { m_invokeModeHasBeenSet = true; m_invokeMode = value; }
140 inline FunctionUrlConfig& WithInvokeMode(InvokeMode value) { SetInvokeMode(value); return *this;}
142 private:
143
144 Aws::String m_functionUrl;
145 bool m_functionUrlHasBeenSet = false;
146
147 Aws::String m_functionArn;
148 bool m_functionArnHasBeenSet = false;
149
150 Aws::String m_creationTime;
151 bool m_creationTimeHasBeenSet = false;
152
153 Aws::String m_lastModifiedTime;
154 bool m_lastModifiedTimeHasBeenSet = false;
155
156 Cors m_cors;
157 bool m_corsHasBeenSet = false;
158
160 bool m_authTypeHasBeenSet = false;
161
162 InvokeMode m_invokeMode{InvokeMode::NOT_SET};
163 bool m_invokeModeHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Lambda
168} // 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