AWS SDK for C++  1.9.19
AWS SDK for C++
GetAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lambda
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetAlias"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
45  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
46 
57  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
58 
69  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
70 
81  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
82 
93  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
94 
105  inline GetAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
106 
117  inline GetAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
118 
129  inline GetAliasRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
130 
131 
135  inline const Aws::String& GetName() const{ return m_name; }
136 
140  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 
145  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
146 
150  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
151 
155  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
156 
160  inline GetAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
161 
165  inline GetAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
166 
170  inline GetAliasRequest& WithName(const char* value) { SetName(value); return *this;}
171 
172  private:
173 
174  Aws::String m_functionName;
175  bool m_functionNameHasBeenSet;
176 
177  Aws::String m_name;
178  bool m_nameHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace Lambda
183 } // namespace Aws
Aws::Lambda::Model::GetAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::GetAliasRequest
Definition: GetAliasRequest.h:22
Aws::Lambda::Model::GetAliasRequest::WithFunctionName
GetAliasRequest & WithFunctionName(const char *value)
Definition: GetAliasRequest.h:129
Aws::Lambda::Model::GetAliasRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: GetAliasRequest.h:45
Aws::Lambda::Model::GetAliasRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: GetAliasRequest.h:93
Aws::Lambda::Model::GetAliasRequest::WithName
GetAliasRequest & WithName(const char *value)
Definition: GetAliasRequest.h:170
Aws::Lambda::Model::GetAliasRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: GetAliasRequest.h:57
Aws::Lambda::Model::GetAliasRequest::WithName
GetAliasRequest & WithName(Aws::String &&value)
Definition: GetAliasRequest.h:165
Aws::Lambda::Model::GetAliasRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetAliasRequest.h:140
Aws::Lambda::Model::GetAliasRequest::WithFunctionName
GetAliasRequest & WithFunctionName(Aws::String &&value)
Definition: GetAliasRequest.h:117
Aws::Lambda::Model::GetAliasRequest::WithName
GetAliasRequest & WithName(const Aws::String &value)
Definition: GetAliasRequest.h:160
Aws::Lambda::Model::GetAliasRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: GetAliasRequest.h:69
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::GetAliasRequest::SetName
void SetName(const Aws::String &value)
Definition: GetAliasRequest.h:145
Aws::Lambda::Model::GetAliasRequest::GetName
const Aws::String & GetName() const
Definition: GetAliasRequest.h:135
AWSString.h
Aws::Lambda::Model::GetAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAliasRequest.h:30
LambdaRequest.h
Aws::Lambda::Model::GetAliasRequest::SetName
void SetName(Aws::String &&value)
Definition: GetAliasRequest.h:150
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::GetAliasRequest::GetAliasRequest
GetAliasRequest()
Aws::Lambda::Model::GetAliasRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: GetAliasRequest.h:81
Aws::Lambda::Model::GetAliasRequest::WithFunctionName
GetAliasRequest & WithFunctionName(const Aws::String &value)
Definition: GetAliasRequest.h:105
Lambda_EXPORTS.h
Aws::Lambda::Model::GetAliasRequest::SetName
void SetName(const char *value)
Definition: GetAliasRequest.h:155