AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFunctionUrlConfigRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/FunctionUrlAuthType.h>
11#include <aws/lambda/model/Cors.h>
12#include <aws/lambda/model/InvokeMode.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace Lambda
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_LAMBDA_API CreateFunctionUrlConfigRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateFunctionUrlConfig"; }
38
39 AWS_LAMBDA_API Aws::String SerializePayload() const override;
40
41 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
55 inline const Aws::String& GetFunctionName() const { return m_functionName; }
56 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
57 template<typename FunctionNameT = Aws::String>
58 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
59 template<typename FunctionNameT = Aws::String>
60 CreateFunctionUrlConfigRequest& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetQualifier() const { return m_qualifier; }
68 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
69 template<typename QualifierT = Aws::String>
70 void SetQualifier(QualifierT&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::forward<QualifierT>(value); }
71 template<typename QualifierT = Aws::String>
72 CreateFunctionUrlConfigRequest& WithQualifier(QualifierT&& value) { SetQualifier(std::forward<QualifierT>(value)); return *this;}
74
76
84 inline FunctionUrlAuthType GetAuthType() const { return m_authType; }
85 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
86 inline void SetAuthType(FunctionUrlAuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
89
91
96 inline const Cors& GetCors() const { return m_cors; }
97 inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; }
98 template<typename CorsT = Cors>
99 void SetCors(CorsT&& value) { m_corsHasBeenSet = true; m_cors = std::forward<CorsT>(value); }
100 template<typename CorsT = Cors>
101 CreateFunctionUrlConfigRequest& WithCors(CorsT&& value) { SetCors(std::forward<CorsT>(value)); return *this;}
103
105
117 inline InvokeMode GetInvokeMode() const { return m_invokeMode; }
118 inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; }
119 inline void SetInvokeMode(InvokeMode value) { m_invokeModeHasBeenSet = true; m_invokeMode = value; }
122 private:
123
124 Aws::String m_functionName;
125 bool m_functionNameHasBeenSet = false;
126
127 Aws::String m_qualifier;
128 bool m_qualifierHasBeenSet = false;
129
131 bool m_authTypeHasBeenSet = false;
132
133 Cors m_cors;
134 bool m_corsHasBeenSet = false;
135
136 InvokeMode m_invokeMode{InvokeMode::NOT_SET};
137 bool m_invokeModeHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Lambda
142} // namespace Aws
CreateFunctionUrlConfigRequest & WithAuthType(FunctionUrlAuthType value)
CreateFunctionUrlConfigRequest & WithInvokeMode(InvokeMode value)
AWS_LAMBDA_API CreateFunctionUrlConfigRequest()=default
CreateFunctionUrlConfigRequest & WithCors(CorsT &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
CreateFunctionUrlConfigRequest & WithFunctionName(FunctionNameT &&value)
CreateFunctionUrlConfigRequest & WithQualifier(QualifierT &&value)
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String