AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvokeRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/InvocationType.h>
11#include <aws/lambda/model/LogType.h>
12#include <aws/core/utils/Array.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace Lambda
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_LAMBDA_API InvokeRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "Invoke"; }
38
39 AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
43
45
57 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
58 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
59 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
60 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
61 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
62 inline InvokeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
63 inline InvokeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
64 inline InvokeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
66
68
79 inline const InvocationType& GetInvocationType() const{ return m_invocationType; }
80 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
81 inline void SetInvocationType(const InvocationType& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
82 inline void SetInvocationType(InvocationType&& value) { m_invocationTypeHasBeenSet = true; m_invocationType = std::move(value); }
83 inline InvokeRequest& WithInvocationType(const InvocationType& value) { SetInvocationType(value); return *this;}
84 inline InvokeRequest& WithInvocationType(InvocationType&& value) { SetInvocationType(std::move(value)); return *this;}
86
88
92 inline const LogType& GetLogType() const{ return m_logType; }
93 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
94 inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
95 inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
96 inline InvokeRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;}
97 inline InvokeRequest& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
99
101
106 inline const Aws::String& GetClientContext() const{ return m_clientContext; }
107 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
108 inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
109 inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::move(value); }
110 inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
111 inline InvokeRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
112 inline InvokeRequest& WithClientContext(Aws::String&& value) { SetClientContext(std::move(value)); return *this;}
113 inline InvokeRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
115
117
120 inline const Aws::String& GetQualifier() const{ return m_qualifier; }
121 inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
122 inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
123 inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
124 inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
125 inline InvokeRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
126 inline InvokeRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
127 inline InvokeRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
129 private:
130
131 Aws::String m_functionName;
132 bool m_functionNameHasBeenSet = false;
133
134 InvocationType m_invocationType;
135 bool m_invocationTypeHasBeenSet = false;
136
137 LogType m_logType;
138 bool m_logTypeHasBeenSet = false;
139
140 Aws::String m_clientContext;
141 bool m_clientContextHasBeenSet = false;
142
143
144 Aws::String m_qualifier;
145 bool m_qualifierHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Lambda
150} // namespace Aws
InvokeRequest & WithQualifier(Aws::String &&value)
void SetClientContext(Aws::String &&value)
void SetClientContext(const char *value)
InvokeRequest & WithClientContext(const Aws::String &value)
void SetLogType(LogType &&value)
AWS_LAMBDA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetLogType(const LogType &value)
void SetInvocationType(const InvocationType &value)
const LogType & GetLogType() const
void SetInvocationType(InvocationType &&value)
const Aws::String & GetQualifier() const
const Aws::String & GetFunctionName() const
InvokeRequest & WithFunctionName(Aws::String &&value)
void SetQualifier(const char *value)
InvokeRequest & WithFunctionName(const Aws::String &value)
InvokeRequest & WithInvocationType(const InvocationType &value)
void SetFunctionName(const Aws::String &value)
InvokeRequest & WithInvocationType(InvocationType &&value)
void SetFunctionName(const char *value)
void SetFunctionName(Aws::String &&value)
InvokeRequest & WithLogType(const LogType &value)
InvokeRequest & WithQualifier(const Aws::String &value)
void SetQualifier(const Aws::String &value)
InvokeRequest & WithClientContext(Aws::String &&value)
InvokeRequest & WithFunctionName(const char *value)
const InvocationType & GetInvocationType() const
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetClientContext(const Aws::String &value)
InvokeRequest & WithQualifier(const char *value)
void SetQualifier(Aws::String &&value)
InvokeRequest & WithLogType(LogType &&value)
const Aws::String & GetClientContext() const
InvokeRequest & WithClientContext(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String