AWS SDK for C++  1.9.106
AWS SDK for C++
GetFunctionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Lambda
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetFunction"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
53  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
54 
67  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
68 
81  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
82 
95  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
96 
109  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
110 
123  inline GetFunctionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
124 
137  inline GetFunctionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
138 
151  inline GetFunctionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
152 
153 
158  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
159 
164  inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
165 
170  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
171 
176  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
177 
182  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
183 
188  inline GetFunctionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
189 
194  inline GetFunctionRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
195 
200  inline GetFunctionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
201 
202  private:
203 
204  Aws::String m_functionName;
205  bool m_functionNameHasBeenSet;
206 
207  Aws::String m_qualifier;
208  bool m_qualifierHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace Lambda
213 } // namespace Aws
Aws::Lambda::Model::GetFunctionRequest::WithQualifier
GetFunctionRequest & WithQualifier(Aws::String &&value)
Definition: GetFunctionRequest.h:194
Aws::Lambda::Model::GetFunctionRequest::GetFunctionRequest
GetFunctionRequest()
Aws::Lambda::Model::GetFunctionRequest::SetQualifier
void SetQualifier(const char *value)
Definition: GetFunctionRequest.h:182
Aws::Http::URI
Definition: URI.h:32
Aws::Lambda::Model::GetFunctionRequest::WithFunctionName
GetFunctionRequest & WithFunctionName(const char *value)
Definition: GetFunctionRequest.h:151
Aws::Lambda::Model::GetFunctionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::GetFunctionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Lambda::Model::GetFunctionRequest::WithQualifier
GetFunctionRequest & WithQualifier(const char *value)
Definition: GetFunctionRequest.h:200
Aws::Lambda::Model::GetFunctionRequest::SetQualifier
void SetQualifier(const Aws::String &value)
Definition: GetFunctionRequest.h:170
Aws::Lambda::Model::GetFunctionRequest::QualifierHasBeenSet
bool QualifierHasBeenSet() const
Definition: GetFunctionRequest.h:164
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::GetFunctionRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: GetFunctionRequest.h:109
Aws::Lambda::Model::GetFunctionRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: GetFunctionRequest.h:81
Aws::Lambda::Model::GetFunctionRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: GetFunctionRequest.h:95
Aws::Lambda::Model::GetFunctionRequest::GetQualifier
const Aws::String & GetQualifier() const
Definition: GetFunctionRequest.h:158
Aws::Lambda::Model::GetFunctionRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: GetFunctionRequest.h:67
Aws::Lambda::Model::GetFunctionRequest::WithFunctionName
GetFunctionRequest & WithFunctionName(const Aws::String &value)
Definition: GetFunctionRequest.h:123
AWSString.h
Aws::Lambda::Model::GetFunctionRequest::WithQualifier
GetFunctionRequest & WithQualifier(const Aws::String &value)
Definition: GetFunctionRequest.h:188
LambdaRequest.h
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::GetFunctionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetFunctionRequest.h:34
Aws::Lambda::Model::GetFunctionRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: GetFunctionRequest.h:53
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::GetFunctionRequest::WithFunctionName
GetFunctionRequest & WithFunctionName(Aws::String &&value)
Definition: GetFunctionRequest.h:137
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::GetFunctionRequest
Definition: GetFunctionRequest.h:26
Aws::Lambda::Model::GetFunctionRequest::SetQualifier
void SetQualifier(Aws::String &&value)
Definition: GetFunctionRequest.h:176
Lambda_EXPORTS.h