AWS SDK for C++  0.14.3
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 
38  {
39  public:
40  InvokeRequest();
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
44 
55  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
56 
67  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
68 
79  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
80 
91  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
92 
103  inline InvokeRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
104 
115  inline InvokeRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
116 
127  inline InvokeRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
128 
139  inline const InvocationType& GetInvocationType() const{ return m_invocationType; }
140 
151  inline void SetInvocationType(const InvocationType& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
152 
163  inline void SetInvocationType(InvocationType&& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
164 
175  inline InvokeRequest& WithInvocationType(const InvocationType& value) { SetInvocationType(value); return *this;}
176 
187  inline InvokeRequest& WithInvocationType(InvocationType&& value) { SetInvocationType(value); return *this;}
188 
196  inline const LogType& GetLogType() const{ return m_logType; }
197 
205  inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
206 
214  inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = value; }
215 
223  inline InvokeRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;}
224 
232  inline InvokeRequest& WithLogType(LogType&& value) { SetLogType(value); return *this;}
233 
243  inline const Aws::String& GetClientContext() const{ return m_clientContext; }
244 
254  inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
255 
265  inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
266 
276  inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
277 
287  inline InvokeRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
288 
298  inline InvokeRequest& WithClientContext(Aws::String&& value) { SetClientContext(value); return *this;}
299 
309  inline InvokeRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
310 
320  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
321 
331  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
332 
342  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
343 
353  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
354 
364  inline InvokeRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
365 
375  inline InvokeRequest& WithQualifier(Aws::String&& value) { SetQualifier(value); return *this;}
376 
386  inline InvokeRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
387 
388  private:
389  Aws::String m_functionName;
390  bool m_functionNameHasBeenSet;
391  InvocationType m_invocationType;
392  bool m_invocationTypeHasBeenSet;
393  LogType m_logType;
394  bool m_logTypeHasBeenSet;
395  Aws::String m_clientContext;
396  bool m_clientContextHasBeenSet;
397  Aws::String m_qualifier;
398  bool m_qualifierHasBeenSet;
399  };
400 
401 } // namespace Model
402 } // namespace Lambda
403 } // 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:55
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:67
#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:91
void SetFunctionName(Aws::String &&value)
Definition: InvokeRequest.h:79
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).