AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
UpdateFunctionUrlConfigRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/LambdaRequest.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 {
17namespace Http {
18class URI;
19} // namespace Http
20namespace Lambda {
21namespace Model {
22
26 public:
27 AWS_LAMBDA_API UpdateFunctionUrlConfigRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunctionUrlConfig"; }
34
35 AWS_LAMBDA_API Aws::String SerializePayload() const override;
36
37 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
50 inline const Aws::String& GetFunctionName() const { return m_functionName; }
51 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
52 template <typename FunctionNameT = Aws::String>
53 void SetFunctionName(FunctionNameT&& value) {
54 m_functionNameHasBeenSet = true;
55 m_functionName = std::forward<FunctionNameT>(value);
56 }
57 template <typename FunctionNameT = Aws::String>
59 SetFunctionName(std::forward<FunctionNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetQualifier() const { return m_qualifier; }
69 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
70 template <typename QualifierT = Aws::String>
71 void SetQualifier(QualifierT&& value) {
72 m_qualifierHasBeenSet = true;
73 m_qualifier = std::forward<QualifierT>(value);
74 }
75 template <typename QualifierT = Aws::String>
77 SetQualifier(std::forward<QualifierT>(value));
78 return *this;
79 }
81
83
91 inline FunctionUrlAuthType GetAuthType() const { return m_authType; }
92 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
93 inline void SetAuthType(FunctionUrlAuthType value) {
94 m_authTypeHasBeenSet = true;
95 m_authType = value;
96 }
98 SetAuthType(value);
99 return *this;
100 }
102
104
109 inline const Cors& GetCors() const { return m_cors; }
110 inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; }
111 template <typename CorsT = Cors>
112 void SetCors(CorsT&& value) {
113 m_corsHasBeenSet = true;
114 m_cors = std::forward<CorsT>(value);
115 }
116 template <typename CorsT = Cors>
118 SetCors(std::forward<CorsT>(value));
119 return *this;
120 }
122
124
134 inline InvokeMode GetInvokeMode() const { return m_invokeMode; }
135 inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; }
136 inline void SetInvokeMode(InvokeMode value) {
137 m_invokeModeHasBeenSet = true;
138 m_invokeMode = value;
139 }
141 SetInvokeMode(value);
142 return *this;
143 }
145 private:
146 Aws::String m_functionName;
147 bool m_functionNameHasBeenSet = false;
148
149 Aws::String m_qualifier;
150 bool m_qualifierHasBeenSet = false;
151
153 bool m_authTypeHasBeenSet = false;
154
155 Cors m_cors;
156 bool m_corsHasBeenSet = false;
157
158 InvokeMode m_invokeMode{InvokeMode::NOT_SET};
159 bool m_invokeModeHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Lambda
164} // namespace Aws
UpdateFunctionUrlConfigRequest & WithAuthType(FunctionUrlAuthType value)
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateFunctionUrlConfigRequest & WithInvokeMode(InvokeMode value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
AWS_LAMBDA_API UpdateFunctionUrlConfigRequest()=default
UpdateFunctionUrlConfigRequest & WithCors(CorsT &&value)
UpdateFunctionUrlConfigRequest & WithQualifier(QualifierT &&value)
UpdateFunctionUrlConfigRequest & WithFunctionName(FunctionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String