AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
49
53 inline const InvokeWithResponseStreamHandler& GetEventStreamHandler() const { return m_handler; }
54
58 inline void SetEventStreamHandler(const InvokeWithResponseStreamHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
59
64
65
67
77 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
78 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
79 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
80 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
81 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
82 inline InvokeWithResponseStreamRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
83 inline InvokeWithResponseStreamRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
84 inline InvokeWithResponseStreamRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
86
88
96 inline const ResponseStreamingInvocationType& GetInvocationType() const{ return m_invocationType; }
97 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
98 inline void SetInvocationType(const ResponseStreamingInvocationType& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
99 inline void SetInvocationType(ResponseStreamingInvocationType&& value) { m_invocationTypeHasBeenSet = true; m_invocationType = std::move(value); }
103
105
109 inline const LogType& GetLogType() const{ return m_logType; }
110 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
111 inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
112 inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
113 inline InvokeWithResponseStreamRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;}
114 inline InvokeWithResponseStreamRequest& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
116
118
122 inline const Aws::String& GetClientContext() const{ return m_clientContext; }
123 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
124 inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
125 inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::move(value); }
126 inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
128 inline InvokeWithResponseStreamRequest& WithClientContext(Aws::String&& value) { SetClientContext(std::move(value)); return *this;}
129 inline InvokeWithResponseStreamRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
131
133
136 inline const Aws::String& GetQualifier() const{ return m_qualifier; }
137 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
138 inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
139 inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
140 inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
141 inline InvokeWithResponseStreamRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
142 inline InvokeWithResponseStreamRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
143 inline InvokeWithResponseStreamRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
145 private:
146
147 Aws::String m_functionName;
148 bool m_functionNameHasBeenSet = false;
149
150 ResponseStreamingInvocationType m_invocationType;
151 bool m_invocationTypeHasBeenSet = false;
152
153 LogType m_logType;
154 bool m_logTypeHasBeenSet = false;
155
156 Aws::String m_clientContext;
157 bool m_clientContextHasBeenSet = false;
158
159 Aws::String m_qualifier;
160 bool m_qualifierHasBeenSet = false;
161
164
165 };
166
167} // namespace Model
168} // namespace Lambda
169} // namespace Aws
void SetInvocationType(ResponseStreamingInvocationType &&value)
InvokeWithResponseStreamRequest & WithFunctionName(const char *value)
AWS_LAMBDA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
const InvokeWithResponseStreamHandler & GetEventStreamHandler() const
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetEventStreamHandler(const InvokeWithResponseStreamHandler &value)
InvokeWithResponseStreamRequest & WithInvocationType(const ResponseStreamingInvocationType &value)
void SetInvocationType(const ResponseStreamingInvocationType &value)
InvokeWithResponseStreamRequest & WithFunctionName(const Aws::String &value)
InvokeWithResponseStreamRequest & WithClientContext(const Aws::String &value)
InvokeWithResponseStreamRequest & WithQualifier(const Aws::String &value)
InvokeWithResponseStreamRequest & WithFunctionName(Aws::String &&value)
InvokeWithResponseStreamRequest & WithQualifier(const char *value)
InvokeWithResponseStreamRequest & WithLogType(const LogType &value)
InvokeWithResponseStreamRequest & WithClientContext(Aws::String &&value)
InvokeWithResponseStreamRequest & WithQualifier(Aws::String &&value)
InvokeWithResponseStreamRequest & WithInvocationType(ResponseStreamingInvocationType &&value)
InvokeWithResponseStreamRequest & WithLogType(LogType &&value)
const ResponseStreamingInvocationType & GetInvocationType() const
InvokeWithResponseStreamRequest & WithClientContext(const char *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