AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
102 inline ResponseStreamingInvocationType GetInvocationType() const { return m_invocationType; }
103 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
105 m_invocationTypeHasBeenSet = true;
106 m_invocationType = value;
107 }
109 SetInvocationType(value);
110 return *this;
111 }
113
115
119 inline LogType GetLogType() const { return m_logType; }
120 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
121 inline void SetLogType(LogType value) {
122 m_logTypeHasBeenSet = true;
123 m_logType = value;
124 }
126 SetLogType(value);
127 return *this;
128 }
130
132
136 inline const Aws::String& GetClientContext() const { return m_clientContext; }
137 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
138 template <typename ClientContextT = Aws::String>
139 void SetClientContext(ClientContextT&& value) {
140 m_clientContextHasBeenSet = true;
141 m_clientContext = std::forward<ClientContextT>(value);
142 }
143 template <typename ClientContextT = Aws::String>
145 SetClientContext(std::forward<ClientContextT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetQualifier() const { return m_qualifier; }
155 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
156 template <typename QualifierT = Aws::String>
157 void SetQualifier(QualifierT&& value) {
158 m_qualifierHasBeenSet = true;
159 m_qualifier = std::forward<QualifierT>(value);
160 }
161 template <typename QualifierT = Aws::String>
163 SetQualifier(std::forward<QualifierT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetTenantId() const { return m_tenantId; }
173 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
174 template <typename TenantIdT = Aws::String>
175 void SetTenantId(TenantIdT&& value) {
176 m_tenantIdHasBeenSet = true;
177 m_tenantId = std::forward<TenantIdT>(value);
178 }
179 template <typename TenantIdT = Aws::String>
181 SetTenantId(std::forward<TenantIdT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_functionName;
187 bool m_functionNameHasBeenSet = false;
188
190 bool m_invocationTypeHasBeenSet = false;
191
192 LogType m_logType{LogType::NOT_SET};
193 bool m_logTypeHasBeenSet = false;
194
195 Aws::String m_clientContext;
196 bool m_clientContextHasBeenSet = false;
197
198 Aws::String m_qualifier;
199 bool m_qualifierHasBeenSet = false;
200
201 Aws::String m_tenantId;
202 bool m_tenantIdHasBeenSet = false;
203 InvokeWithResponseStreamHandler m_handler;
205};
206
207} // namespace Model
208} // namespace Lambda
209} // 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