AWS SDK for C++  1.9.20
AWS SDK for C++
InvokeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/core/utils/Array.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace Lambda
22 {
23 namespace Model
24 {
25 
29  {
30  public:
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  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
42 
43 
56  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
57 
70  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
71 
84  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
85 
98  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
99 
112  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
113 
126  inline InvokeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
127 
140  inline InvokeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
141 
154  inline InvokeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
155 
156 
168  inline const InvocationType& GetInvocationType() const{ return m_invocationType; }
169 
181  inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
182 
194  inline void SetInvocationType(const InvocationType& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
195 
207  inline void SetInvocationType(InvocationType&& value) { m_invocationTypeHasBeenSet = true; m_invocationType = std::move(value); }
208 
220  inline InvokeRequest& WithInvocationType(const InvocationType& value) { SetInvocationType(value); return *this;}
221 
233  inline InvokeRequest& WithInvocationType(InvocationType&& value) { SetInvocationType(std::move(value)); return *this;}
234 
235 
239  inline const LogType& GetLogType() const{ return m_logType; }
240 
244  inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
245 
249  inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
250 
254  inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
255 
259  inline InvokeRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;}
260 
264  inline InvokeRequest& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
265 
266 
271  inline const Aws::String& GetClientContext() const{ return m_clientContext; }
272 
277  inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
278 
283  inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
284 
289  inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::move(value); }
290 
295  inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
296 
301  inline InvokeRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
302 
307  inline InvokeRequest& WithClientContext(Aws::String&& value) { SetClientContext(std::move(value)); return *this;}
308 
313  inline InvokeRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
314 
315 
319  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
320 
324  inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
325 
329  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
330 
334  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
335 
339  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
340 
344  inline InvokeRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
345 
349  inline InvokeRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
350 
354  inline InvokeRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
355 
356  private:
357 
358  Aws::String m_functionName;
359  bool m_functionNameHasBeenSet;
360 
361  InvocationType m_invocationType;
362  bool m_invocationTypeHasBeenSet;
363 
364  LogType m_logType;
365  bool m_logTypeHasBeenSet;
366 
367  Aws::String m_clientContext;
368  bool m_clientContextHasBeenSet;
369 
370 
371  Aws::String m_qualifier;
372  bool m_qualifierHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace Lambda
377 } // namespace Aws
Aws::Lambda::Model::InvokeRequest::SetLogType
void SetLogType(LogType &&value)
Definition: InvokeRequest.h:254
Aws::Lambda::Model::InvokeRequest::WithQualifier
InvokeRequest & WithQualifier(Aws::String &&value)
Definition: InvokeRequest.h:349
Aws::Lambda::Model::InvokeRequest::WithQualifier
InvokeRequest & WithQualifier(const char *value)
Definition: InvokeRequest.h:354
Aws::Http::URI
Definition: URI.h:32
Aws::Lambda::Model::InvokeRequest::WithLogType
InvokeRequest & WithLogType(LogType &&value)
Definition: InvokeRequest.h:264
Aws::Lambda::Model::InvokeRequest::WithFunctionName
InvokeRequest & WithFunctionName(const char *value)
Definition: InvokeRequest.h:154
Aws::Lambda::Model::InvokeRequest::SetQualifier
void SetQualifier(Aws::String &&value)
Definition: InvokeRequest.h:334
Aws::Lambda::Model::InvokeRequest::WithLogType
InvokeRequest & WithLogType(const LogType &value)
Definition: InvokeRequest.h:259
Aws::Lambda::Model::InvokeRequest::SetClientContext
void SetClientContext(const char *value)
Definition: InvokeRequest.h:295
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lambda::Model::InvokeRequest::InvocationTypeHasBeenSet
bool InvocationTypeHasBeenSet() const
Definition: InvokeRequest.h:181
Aws::Lambda::Model::InvokeRequest::GetQualifier
const Aws::String & GetQualifier() const
Definition: InvokeRequest.h:319
Aws::Lambda::Model::InvocationType
InvocationType
Definition: InvocationType.h:17
Aws::Lambda::Model::InvokeRequest::QualifierHasBeenSet
bool QualifierHasBeenSet() const
Definition: InvokeRequest.h:324
Aws::Lambda::Model::InvokeRequest::WithFunctionName
InvokeRequest & WithFunctionName(const Aws::String &value)
Definition: InvokeRequest.h:126
Aws::Lambda::Model::InvokeRequest::GetInvocationType
const InvocationType & GetInvocationType() const
Definition: InvokeRequest.h:168
Aws::Lambda::Model::InvokeRequest::SetLogType
void SetLogType(const LogType &value)
Definition: InvokeRequest.h:249
LogType.h
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::InvokeRequest::SetInvocationType
void SetInvocationType(InvocationType &&value)
Definition: InvokeRequest.h:207
Aws::Lambda::Model::InvokeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: InvokeRequest.h:37
Aws::Lambda::Model::InvokeRequest::SetInvocationType
void SetInvocationType(const InvocationType &value)
Definition: InvokeRequest.h:194
Aws::Lambda::Model::InvokeRequest::WithQualifier
InvokeRequest & WithQualifier(const Aws::String &value)
Definition: InvokeRequest.h:344
Aws::Lambda::Model::InvokeRequest::SetQualifier
void SetQualifier(const char *value)
Definition: InvokeRequest.h:339
Aws::Lambda::Model::InvokeRequest::ClientContextHasBeenSet
bool ClientContextHasBeenSet() const
Definition: InvokeRequest.h:277
Aws::Lambda::Model::InvokeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::Lambda::Model::InvokeRequest::WithFunctionName
InvokeRequest & WithFunctionName(Aws::String &&value)
Definition: InvokeRequest.h:140
Aws::Lambda::Model::InvokeRequest::WithClientContext
InvokeRequest & WithClientContext(Aws::String &&value)
Definition: InvokeRequest.h:307
Aws::Lambda::Model::InvokeRequest::SetQualifier
void SetQualifier(const Aws::String &value)
Definition: InvokeRequest.h:329
LambdaRequest.h
Aws::Lambda::Model::InvokeRequest::InvokeRequest
InvokeRequest()
Aws::Lambda::Model::InvokeRequest::WithInvocationType
InvokeRequest & WithInvocationType(const InvocationType &value)
Definition: InvokeRequest.h:220
Aws::Lambda::Model::InvokeRequest::GetLogType
const LogType & GetLogType() const
Definition: InvokeRequest.h:239
InvocationType.h
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws::Lambda::Model::InvokeRequest::WithClientContext
InvokeRequest & WithClientContext(const Aws::String &value)
Definition: InvokeRequest.h:301
Aws::Lambda::Model::InvokeRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: InvokeRequest.h:56
Aws::Lambda::Model::InvokeRequest::GetClientContext
const Aws::String & GetClientContext() const
Definition: InvokeRequest.h:271
Aws::Lambda::Model::InvokeRequest::LogTypeHasBeenSet
bool LogTypeHasBeenSet() const
Definition: InvokeRequest.h:244
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::InvokeRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: InvokeRequest.h:70
Array.h
Aws::Lambda::Model::InvokeRequest::WithClientContext
InvokeRequest & WithClientContext(const char *value)
Definition: InvokeRequest.h:313
Aws::Lambda::Model::InvokeRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: InvokeRequest.h:112
Aws::Lambda::Model::InvokeRequest::SetClientContext
void SetClientContext(Aws::String &&value)
Definition: InvokeRequest.h:289
Aws::Lambda::Model::InvokeRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: InvokeRequest.h:84
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::InvokeRequest::WithInvocationType
InvokeRequest & WithInvocationType(InvocationType &&value)
Definition: InvokeRequest.h:233
Aws::Lambda::Model::InvokeRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Lambda::Model::InvokeRequest::SetClientContext
void SetClientContext(const Aws::String &value)
Definition: InvokeRequest.h:283
Aws::Lambda::Model::InvokeRequest
Definition: InvokeRequest.h:29
Aws::Lambda::Model::InvokeRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: InvokeRequest.h:98
Aws::Lambda::Model::LogType
LogType
Definition: LogType.h:17
Lambda_EXPORTS.h