AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionUrl(const Aws::String& value) { m_functionUrlHasBeenSet = true; m_functionUrl = value; }
50 inline void SetFunctionUrl(Aws::String&& value) { m_functionUrlHasBeenSet = true; m_functionUrl = std::move(value); }
51 inline void SetFunctionUrl(const char* value) { m_functionUrlHasBeenSet = true; m_functionUrl.assign(value); }
52 inline FunctionUrlConfig& WithFunctionUrl(const Aws::String& value) { SetFunctionUrl(value); return *this;}
53 inline FunctionUrlConfig& WithFunctionUrl(Aws::String&& value) { SetFunctionUrl(std::move(value)); return *this;}
54 inline FunctionUrlConfig& WithFunctionUrl(const char* value) { SetFunctionUrl(value); return *this;}
56
58
61 inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
62 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
63 inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
64 inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
65 inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
66 inline FunctionUrlConfig& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
67 inline FunctionUrlConfig& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
68 inline FunctionUrlConfig& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
70
72
77 inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
78 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
79 inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
80 inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
81 inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
82 inline FunctionUrlConfig& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
83 inline FunctionUrlConfig& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
84 inline FunctionUrlConfig& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
86
88
93 inline const Aws::String& GetLastModifiedTime() const{ return m_lastModifiedTime; }
94 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
95 inline void SetLastModifiedTime(const Aws::String& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
96 inline void SetLastModifiedTime(Aws::String&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
97 inline void SetLastModifiedTime(const char* value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime.assign(value); }
98 inline FunctionUrlConfig& WithLastModifiedTime(const Aws::String& value) { SetLastModifiedTime(value); return *this;}
99 inline FunctionUrlConfig& WithLastModifiedTime(Aws::String&& value) { SetLastModifiedTime(std::move(value)); return *this;}
100 inline FunctionUrlConfig& WithLastModifiedTime(const char* value) { SetLastModifiedTime(value); return *this;}
102
104
109 inline const Cors& GetCors() const{ return m_cors; }
110 inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; }
111 inline void SetCors(const Cors& value) { m_corsHasBeenSet = true; m_cors = value; }
112 inline void SetCors(Cors&& value) { m_corsHasBeenSet = true; m_cors = std::move(value); }
113 inline FunctionUrlConfig& WithCors(const Cors& value) { SetCors(value); return *this;}
114 inline FunctionUrlConfig& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;}
116
118
126 inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; }
127 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
128 inline void SetAuthType(const FunctionUrlAuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
129 inline void SetAuthType(FunctionUrlAuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
130 inline FunctionUrlConfig& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;}
131 inline FunctionUrlConfig& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;}
133
135
147 inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; }
148 inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; }
149 inline void SetInvokeMode(const InvokeMode& value) { m_invokeModeHasBeenSet = true; m_invokeMode = value; }
150 inline void SetInvokeMode(InvokeMode&& value) { m_invokeModeHasBeenSet = true; m_invokeMode = std::move(value); }
151 inline FunctionUrlConfig& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;}
152 inline FunctionUrlConfig& WithInvokeMode(InvokeMode&& value) { SetInvokeMode(std::move(value)); return *this;}
154 private:
155
156 Aws::String m_functionUrl;
157 bool m_functionUrlHasBeenSet = false;
158
159 Aws::String m_functionArn;
160 bool m_functionArnHasBeenSet = false;
161
162 Aws::String m_creationTime;
163 bool m_creationTimeHasBeenSet = false;
164
165 Aws::String m_lastModifiedTime;
166 bool m_lastModifiedTimeHasBeenSet = false;
167
168 Cors m_cors;
169 bool m_corsHasBeenSet = false;
170
171 FunctionUrlAuthType m_authType;
172 bool m_authTypeHasBeenSet = false;
173
174 InvokeMode m_invokeMode;
175 bool m_invokeModeHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace Lambda
180} // namespace Aws
void SetLastModifiedTime(const Aws::String &value)
FunctionUrlConfig & WithCreationTime(const Aws::String &value)
FunctionUrlConfig & WithFunctionUrl(const Aws::String &value)
void SetAuthType(FunctionUrlAuthType &&value)
FunctionUrlConfig & WithFunctionUrl(Aws::String &&value)
FunctionUrlConfig & WithFunctionArn(Aws::String &&value)
void SetFunctionUrl(const Aws::String &value)
FunctionUrlConfig & WithInvokeMode(InvokeMode &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionUrlConfig & WithInvokeMode(const InvokeMode &value)
void SetCreationTime(Aws::String &&value)
FunctionUrlConfig & WithLastModifiedTime(const char *value)
FunctionUrlConfig & WithCreationTime(Aws::String &&value)
FunctionUrlConfig & WithCreationTime(const char *value)
void SetFunctionUrl(Aws::String &&value)
FunctionUrlConfig & WithLastModifiedTime(const Aws::String &value)
AWS_LAMBDA_API FunctionUrlConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionUrlConfig & WithCors(Cors &&value)
void SetLastModifiedTime(const char *value)
FunctionUrlConfig & WithCors(const Cors &value)
void SetFunctionArn(const Aws::String &value)
FunctionUrlConfig & WithLastModifiedTime(Aws::String &&value)
AWS_LAMBDA_API FunctionUrlConfig(Aws::Utils::Json::JsonView jsonValue)
const InvokeMode & GetInvokeMode() const
const FunctionUrlAuthType & GetAuthType() const
FunctionUrlConfig & WithAuthType(const FunctionUrlAuthType &value)
FunctionUrlConfig & WithFunctionUrl(const char *value)
const Aws::String & GetCreationTime() const
FunctionUrlConfig & WithFunctionArn(const char *value)
void SetFunctionArn(Aws::String &&value)
FunctionUrlConfig & WithFunctionArn(const Aws::String &value)
void SetInvokeMode(const InvokeMode &value)
const Aws::String & GetFunctionArn() const
const Aws::String & GetLastModifiedTime() const
void SetLastModifiedTime(Aws::String &&value)
void SetAuthType(const FunctionUrlAuthType &value)
const Aws::String & GetFunctionUrl() const
void SetCreationTime(const Aws::String &value)
FunctionUrlConfig & WithAuthType(FunctionUrlAuthType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue