AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InvokeWithResponseStreamRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/lambda/model/InvokeWithResponseStreamHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/lambda/model/ResponseStreamingInvocationType.h>
13#include <aws/lambda/model/LogType.h>
14#include <aws/core/utils/Array.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Http
20{
21 class URI;
22} //namespace Http
23namespace Lambda
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_LAMBDA_API InvokeWithResponseStreamRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "InvokeWithResponseStream"; }
40
41 inline virtual bool HasEventStreamResponse() const override { return true; }
42 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
50
55
59 inline void SetEventStreamHandler(const InvokeWithResponseStreamHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
60
65
66
68
78 inline const Aws::String& GetFunctionName() const { return m_functionName; }
79 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
80 template<typename FunctionNameT = Aws::String>
81 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
82 template<typename FunctionNameT = Aws::String>
83 InvokeWithResponseStreamRequest& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
85
87
95 inline ResponseStreamingInvocationType GetInvocationType() const { return m_invocationType; }
96 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
97 inline void SetInvocationType(ResponseStreamingInvocationType value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
100
102
106 inline LogType GetLogType() const { return m_logType; }
107 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
108 inline void SetLogType(LogType value) { m_logTypeHasBeenSet = true; m_logType = value; }
109 inline InvokeWithResponseStreamRequest& WithLogType(LogType value) { SetLogType(value); return *this;}
111
113
117 inline const Aws::String& GetClientContext() const { return m_clientContext; }
118 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
119 template<typename ClientContextT = Aws::String>
120 void SetClientContext(ClientContextT&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::forward<ClientContextT>(value); }
121 template<typename ClientContextT = Aws::String>
122 InvokeWithResponseStreamRequest& WithClientContext(ClientContextT&& value) { SetClientContext(std::forward<ClientContextT>(value)); return *this;}
124
126
129 inline const Aws::String& GetQualifier() const { return m_qualifier; }
130 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
131 template<typename QualifierT = Aws::String>
132 void SetQualifier(QualifierT&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::forward<QualifierT>(value); }
133 template<typename QualifierT = Aws::String>
134 InvokeWithResponseStreamRequest& WithQualifier(QualifierT&& value) { SetQualifier(std::forward<QualifierT>(value)); return *this;}
136 private:
137
138 Aws::String m_functionName;
139 bool m_functionNameHasBeenSet = false;
140
142 bool m_invocationTypeHasBeenSet = false;
143
144 LogType m_logType{LogType::NOT_SET};
145 bool m_logTypeHasBeenSet = false;
146
147 Aws::String m_clientContext;
148 bool m_clientContextHasBeenSet = false;
149
150 Aws::String m_qualifier;
151 bool m_qualifierHasBeenSet = false;
152
153 InvokeWithResponseStreamHandler m_handler;
155
156 };
157
158} // namespace Model
159} // namespace Lambda
160} // 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)
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