AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
InvokeWithResponseStreamRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/event/EventStreamDecoder.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/LambdaRequest.h>
11#include <aws/lambda/Lambda_EXPORTS.h>
12#include <aws/lambda/model/InvokeWithResponseStreamHandler.h>
13#include <aws/lambda/model/LogType.h>
14#include <aws/lambda/model/ResponseStreamingInvocationType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Http {
20class URI;
21} // namespace Http
22namespace Lambda {
23namespace Model {
24
28 public:
29 AWS_LAMBDA_API InvokeWithResponseStreamRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "InvokeWithResponseStream"; }
36
37 inline virtual bool HasEventStreamResponse() const override { return true; }
38 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
46
51
56 m_handler = value;
57 m_decoder.ResetEventStreamHandler(&m_handler);
58 }
59
65 return *this;
66 }
67
69
79 inline const Aws::String& GetFunctionName() const { return m_functionName; }
80 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
81 template <typename FunctionNameT = Aws::String>
82 void SetFunctionName(FunctionNameT&& value) {
83 m_functionNameHasBeenSet = true;
84 m_functionName = std::forward<FunctionNameT>(value);
85 }
86 template <typename FunctionNameT = Aws::String>
88 SetFunctionName(std::forward<FunctionNameT>(value));
89 return *this;
90 }
92
94
98 inline LogType GetLogType() const { return m_logType; }
99 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
100 inline void SetLogType(LogType value) {
101 m_logTypeHasBeenSet = true;
102 m_logType = value;
103 }
105 SetLogType(value);
106 return *this;
107 }
109
111
115 inline const Aws::String& GetClientContext() const { return m_clientContext; }
116 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
117 template <typename ClientContextT = Aws::String>
118 void SetClientContext(ClientContextT&& value) {
119 m_clientContextHasBeenSet = true;
120 m_clientContext = std::forward<ClientContextT>(value);
121 }
122 template <typename ClientContextT = Aws::String>
124 SetClientContext(std::forward<ClientContextT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetQualifier() const { return m_qualifier; }
134 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
135 template <typename QualifierT = Aws::String>
136 void SetQualifier(QualifierT&& value) {
137 m_qualifierHasBeenSet = true;
138 m_qualifier = std::forward<QualifierT>(value);
139 }
140 template <typename QualifierT = Aws::String>
142 SetQualifier(std::forward<QualifierT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetTenantId() const { return m_tenantId; }
152 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
153 template <typename TenantIdT = Aws::String>
154 void SetTenantId(TenantIdT&& value) {
155 m_tenantIdHasBeenSet = true;
156 m_tenantId = std::forward<TenantIdT>(value);
157 }
158 template <typename TenantIdT = Aws::String>
160 SetTenantId(std::forward<TenantIdT>(value));
161 return *this;
162 }
164
166
174 inline ResponseStreamingInvocationType GetInvocationType() const { return m_invocationType; }
175 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
177 m_invocationTypeHasBeenSet = true;
178 m_invocationType = value;
179 }
181 SetInvocationType(value);
182 return *this;
183 }
185 private:
186 Aws::String m_functionName;
187
188 LogType m_logType{LogType::NOT_SET};
189
190 Aws::String m_clientContext;
191
192 Aws::String m_qualifier;
193
194 Aws::String m_tenantId;
195
197 InvokeWithResponseStreamHandler m_handler;
199
200 bool m_functionNameHasBeenSet = false;
201 bool m_logTypeHasBeenSet = false;
202 bool m_clientContextHasBeenSet = false;
203 bool m_qualifierHasBeenSet = false;
204 bool m_tenantIdHasBeenSet = false;
205 bool m_invocationTypeHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Lambda
210} // namespace Aws
InvokeWithResponseStreamRequest & WithClientContext(ClientContextT &&value)
void SetInvocationType(ResponseStreamingInvocationType value)
AWS_LAMBDA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetEventStreamHandler(const InvokeWithResponseStreamHandler &value)
InvokeWithResponseStreamRequest & WithQualifier(QualifierT &&value)
InvokeWithResponseStreamRequest & WithTenantId(TenantIdT &&value)
AWS_LAMBDA_API InvokeWithResponseStreamRequest()=default
InvokeWithResponseStreamRequest & WithLogType(LogType value)
InvokeWithResponseStreamRequest & WithInvocationType(ResponseStreamingInvocationType value)
InvokeWithResponseStreamRequest & WithFunctionName(FunctionNameT &&value)
InvokeWithResponseStreamRequest & WithEventStreamHandler(const InvokeWithResponseStreamHandler &value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String