AWS SDK for C++  0.12.9
AWS SDK for C++
InvokeRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 #include <aws/core/utils/Array.h>
22 
23 namespace Aws
24 {
25 namespace Http
26 {
27  class URI;
28 } //namespace Http
29 namespace Lambda
30 {
31 namespace Model
32 {
33 
37  {
38  public:
39  InvokeRequest();
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
54  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
55 
66  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
67 
78  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
79 
90  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
91 
102  inline InvokeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
103 
114  inline InvokeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
115 
126  inline InvokeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
127 
138  inline const InvocationType& GetInvocationType() const{ return m_invocationType; }
139 
150  inline void SetInvocationType(const InvocationType& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
151 
162  inline void SetInvocationType(InvocationType&& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
163 
174  inline InvokeRequest& WithInvocationType(const InvocationType& value) { SetInvocationType(value); return *this;}
175 
186  inline InvokeRequest& WithInvocationType(InvocationType&& value) { SetInvocationType(value); return *this;}
187 
195  inline const LogType& GetLogType() const{ return m_logType; }
196 
204  inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
205 
213  inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = value; }
214 
222  inline InvokeRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;}
223 
231  inline InvokeRequest& WithLogType(LogType&& value) { SetLogType(value); return *this;}
232 
242  inline const Aws::String& GetClientContext() const{ return m_clientContext; }
243 
253  inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
254 
264  inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
265 
275  inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
276 
286  inline InvokeRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
287 
297  inline InvokeRequest& WithClientContext(Aws::String&& value) { SetClientContext(value); return *this;}
298 
308  inline InvokeRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
309 
319  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
320 
330  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
331 
341  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
342 
352  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
353 
363  inline InvokeRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
364 
374  inline InvokeRequest& WithQualifier(Aws::String&& value) { SetQualifier(value); return *this;}
375 
385  inline InvokeRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
386 
387  private:
388  Aws::String m_functionName;
389  bool m_functionNameHasBeenSet;
390  InvocationType m_invocationType;
391  bool m_invocationTypeHasBeenSet;
392  LogType m_logType;
393  bool m_logTypeHasBeenSet;
394  Aws::String m_clientContext;
395  bool m_clientContextHasBeenSet;
396  Aws::String m_qualifier;
397  bool m_qualifierHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace Lambda
402 } // namespace Aws
void SetClientContext(const Aws::String &value)
InvokeRequest & WithClientContext(const char *value)
void SetLogType(LogType &&value)
InvokeRequest & WithInvocationType(const InvocationType &value)
void SetQualifier(Aws::String &&value)
InvokeRequest & WithQualifier(Aws::String &&value)
const Aws::String & GetFunctionName() const
Definition: InvokeRequest.h:54
void SetQualifier(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
InvokeRequest & WithQualifier(const char *value)
void SetInvocationType(const InvocationType &value)
void SetQualifier(const Aws::String &value)
InvokeRequest & WithClientContext(const Aws::String &value)
const Aws::String & GetClientContext() const
InvokeRequest & WithFunctionName(Aws::String &&value)
InvokeRequest & WithFunctionName(const char *value)
void SetFunctionName(const Aws::String &value)
Definition: InvokeRequest.h:66
#define AWS_LAMBDA_API
void SetInvocationType(InvocationType &&value)
InvokeRequest & WithQualifier(const Aws::String &value)
InvokeRequest & WithFunctionName(const Aws::String &value)
void SetFunctionName(const char *value)
Definition: InvokeRequest.h:90
void SetFunctionName(Aws::String &&value)
Definition: InvokeRequest.h:78
InvokeRequest & WithLogType(LogType &&value)
void SetClientContext(const char *value)
const LogType & GetLogType() const
void SetClientContext(Aws::String &&value)
const InvocationType & GetInvocationType() const
void SetLogType(const LogType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetQualifier() const
InvokeRequest & WithLogType(const LogType &value)
InvokeRequest & WithClientContext(Aws::String &&value)
InvokeRequest & WithInvocationType(InvocationType &&value)
JSON (JavaScript Object Notation).