AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
InvokeRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/LambdaRequest.h>
10#include <aws/lambda/Lambda_EXPORTS.h>
11#include <aws/lambda/model/InvocationType.h>
12#include <aws/lambda/model/LogType.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 InvokeRequest() = 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 "Invoke"; }
34
35 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
40
52 inline const Aws::String& GetFunctionName() const { return m_functionName; }
53 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
54 template <typename FunctionNameT = Aws::String>
55 void SetFunctionName(FunctionNameT&& value) {
56 m_functionNameHasBeenSet = true;
57 m_functionName = std::forward<FunctionNameT>(value);
58 }
59 template <typename FunctionNameT = Aws::String>
60 InvokeRequest& WithFunctionName(FunctionNameT&& value) {
61 SetFunctionName(std::forward<FunctionNameT>(value));
62 return *this;
63 }
65
67
78 inline InvocationType GetInvocationType() const { return m_invocationType; }
79 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
80 inline void SetInvocationType(InvocationType value) {
81 m_invocationTypeHasBeenSet = true;
82 m_invocationType = value;
83 }
85 SetInvocationType(value);
86 return *this;
87 }
89
91
95 inline LogType GetLogType() const { return m_logType; }
96 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
97 inline void SetLogType(LogType value) {
98 m_logTypeHasBeenSet = true;
99 m_logType = value;
100 }
102 SetLogType(value);
103 return *this;
104 }
106
108
113 inline const Aws::String& GetClientContext() const { return m_clientContext; }
114 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
115 template <typename ClientContextT = Aws::String>
116 void SetClientContext(ClientContextT&& value) {
117 m_clientContextHasBeenSet = true;
118 m_clientContext = std::forward<ClientContextT>(value);
119 }
120 template <typename ClientContextT = Aws::String>
121 InvokeRequest& WithClientContext(ClientContextT&& value) {
122 SetClientContext(std::forward<ClientContextT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetQualifier() const { return m_qualifier; }
132 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
133 template <typename QualifierT = Aws::String>
134 void SetQualifier(QualifierT&& value) {
135 m_qualifierHasBeenSet = true;
136 m_qualifier = std::forward<QualifierT>(value);
137 }
138 template <typename QualifierT = Aws::String>
139 InvokeRequest& WithQualifier(QualifierT&& value) {
140 SetQualifier(std::forward<QualifierT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetTenantId() const { return m_tenantId; }
150 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
151 template <typename TenantIdT = Aws::String>
152 void SetTenantId(TenantIdT&& value) {
153 m_tenantIdHasBeenSet = true;
154 m_tenantId = std::forward<TenantIdT>(value);
155 }
156 template <typename TenantIdT = Aws::String>
157 InvokeRequest& WithTenantId(TenantIdT&& value) {
158 SetTenantId(std::forward<TenantIdT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_functionName;
164 bool m_functionNameHasBeenSet = false;
165
166 InvocationType m_invocationType{InvocationType::NOT_SET};
167 bool m_invocationTypeHasBeenSet = false;
168
169 LogType m_logType{LogType::NOT_SET};
170 bool m_logTypeHasBeenSet = false;
171
172 Aws::String m_clientContext;
173 bool m_clientContextHasBeenSet = false;
174
175 Aws::String m_qualifier;
176 bool m_qualifierHasBeenSet = false;
177
178 Aws::String m_tenantId;
179 bool m_tenantIdHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace Lambda
184} // namespace Aws
void SetFunctionName(FunctionNameT &&value)
void SetClientContext(ClientContextT &&value)
InvokeRequest & WithLogType(LogType value)
AWS_LAMBDA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetQualifier(QualifierT &&value)
const Aws::String & GetQualifier() const
AWS_LAMBDA_API InvokeRequest()=default
const Aws::String & GetFunctionName() const
InvokeRequest & WithQualifier(QualifierT &&value)
const Aws::String & GetTenantId() const
InvokeRequest & WithTenantId(TenantIdT &&value)
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
InvokeRequest & WithClientContext(ClientContextT &&value)
InvocationType GetInvocationType() const
InvokeRequest & WithFunctionName(FunctionNameT &&value)
void SetTenantId(TenantIdT &&value)
const Aws::String & GetClientContext() const
InvokeRequest & WithInvocationType(InvocationType value)
void SetInvocationType(InvocationType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String