AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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
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
116 inline const Aws::String& GetClientContext() const { return m_clientContext; }
117 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
118 template <typename ClientContextT = Aws::String>
119 void SetClientContext(ClientContextT&& value) {
120 m_clientContextHasBeenSet = true;
121 m_clientContext = std::forward<ClientContextT>(value);
122 }
123 template <typename ClientContextT = Aws::String>
125 SetClientContext(std::forward<ClientContextT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetQualifier() const { return m_qualifier; }
135 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
136 template <typename QualifierT = Aws::String>
137 void SetQualifier(QualifierT&& value) {
138 m_qualifierHasBeenSet = true;
139 m_qualifier = std::forward<QualifierT>(value);
140 }
141 template <typename QualifierT = Aws::String>
143 SetQualifier(std::forward<QualifierT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetTenantId() const { return m_tenantId; }
153 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
154 template <typename TenantIdT = Aws::String>
155 void SetTenantId(TenantIdT&& value) {
156 m_tenantIdHasBeenSet = true;
157 m_tenantId = std::forward<TenantIdT>(value);
158 }
159 template <typename TenantIdT = Aws::String>
161 SetTenantId(std::forward<TenantIdT>(value));
162 return *this;
163 }
165
167
175 inline ResponseStreamingInvocationType GetInvocationType() const { return m_invocationType; }
176 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
178 m_invocationTypeHasBeenSet = true;
179 m_invocationType = value;
180 }
186 private:
187 Aws::String m_functionName;
188
189 LogType m_logType{LogType::NOT_SET};
190
191 Aws::String m_clientContext;
192
193 Aws::String m_qualifier;
194
195 Aws::String m_tenantId;
196
198 InvokeWithResponseStreamHandler m_handler;
200
201 bool m_functionNameHasBeenSet = false;
202 bool m_logTypeHasBeenSet = false;
203 bool m_clientContextHasBeenSet = false;
204 bool m_qualifierHasBeenSet = false;
205 bool m_tenantIdHasBeenSet = false;
206 bool m_invocationTypeHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace Lambda
211} // 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