AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFunctionUrlConfigResult.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/FunctionUrlAuthType.h>
10#include <aws/lambda/model/Cors.h>
11#include <aws/lambda/model/InvokeMode.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Lambda
27{
28namespace Model
29{
31 {
32 public:
33 AWS_LAMBDA_API CreateFunctionUrlConfigResult() = default;
36
37
39
42 inline const Aws::String& GetFunctionUrl() const { return m_functionUrl; }
43 template<typename FunctionUrlT = Aws::String>
44 void SetFunctionUrl(FunctionUrlT&& value) { m_functionUrlHasBeenSet = true; m_functionUrl = std::forward<FunctionUrlT>(value); }
45 template<typename FunctionUrlT = Aws::String>
46 CreateFunctionUrlConfigResult& WithFunctionUrl(FunctionUrlT&& value) { SetFunctionUrl(std::forward<FunctionUrlT>(value)); return *this;}
48
50
53 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
54 template<typename FunctionArnT = Aws::String>
55 void SetFunctionArn(FunctionArnT&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::forward<FunctionArnT>(value); }
56 template<typename FunctionArnT = Aws::String>
57 CreateFunctionUrlConfigResult& WithFunctionArn(FunctionArnT&& value) { SetFunctionArn(std::forward<FunctionArnT>(value)); return *this;}
59
61
69 inline FunctionUrlAuthType GetAuthType() const { return m_authType; }
70 inline void SetAuthType(FunctionUrlAuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
73
75
80 inline const Cors& GetCors() const { return m_cors; }
81 template<typename CorsT = Cors>
82 void SetCors(CorsT&& value) { m_corsHasBeenSet = true; m_cors = std::forward<CorsT>(value); }
83 template<typename CorsT = Cors>
84 CreateFunctionUrlConfigResult& WithCors(CorsT&& value) { SetCors(std::forward<CorsT>(value)); return *this;}
86
88
93 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
94 template<typename CreationTimeT = Aws::String>
95 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
96 template<typename CreationTimeT = Aws::String>
97 CreateFunctionUrlConfigResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
99
101
113 inline InvokeMode GetInvokeMode() const { return m_invokeMode; }
114 inline void SetInvokeMode(InvokeMode value) { m_invokeModeHasBeenSet = true; m_invokeMode = value; }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template<typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
123 template<typename RequestIdT = Aws::String>
124 CreateFunctionUrlConfigResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
126 private:
127
128 Aws::String m_functionUrl;
129 bool m_functionUrlHasBeenSet = false;
130
131 Aws::String m_functionArn;
132 bool m_functionArnHasBeenSet = false;
133
135 bool m_authTypeHasBeenSet = false;
136
137 Cors m_cors;
138 bool m_corsHasBeenSet = false;
139
140 Aws::String m_creationTime;
141 bool m_creationTimeHasBeenSet = false;
142
143 InvokeMode m_invokeMode{InvokeMode::NOT_SET};
144 bool m_invokeModeHasBeenSet = false;
145
146 Aws::String m_requestId;
147 bool m_requestIdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Lambda
152} // 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