AWS SDK for C++  1.9.122
AWS SDK for C++
CreateAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lambda
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
46  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
47 
58  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
59 
70  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
71 
82  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
83 
94  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
95 
106  inline CreateAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
107 
118  inline CreateAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
119 
130  inline CreateAliasRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
131 
132 
136  inline const Aws::String& GetName() const{ return m_name; }
137 
141  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
142 
146  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
147 
151  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
152 
156  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
157 
161  inline CreateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
162 
166  inline CreateAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
167 
171  inline CreateAliasRequest& WithName(const char* value) { SetName(value); return *this;}
172 
173 
177  inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
178 
182  inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
183 
187  inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
188 
192  inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
193 
197  inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
198 
202  inline CreateAliasRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
203 
207  inline CreateAliasRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
208 
212  inline CreateAliasRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
213 
214 
218  inline const Aws::String& GetDescription() const{ return m_description; }
219 
223  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
224 
228  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
229 
233  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
234 
238  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
239 
243  inline CreateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
244 
248  inline CreateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
249 
253  inline CreateAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
254 
255 
261  inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; }
262 
268  inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
269 
275  inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
276 
282  inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
283 
289  inline CreateAliasRequest& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;}
290 
296  inline CreateAliasRequest& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
297 
298  private:
299 
300  Aws::String m_functionName;
301  bool m_functionNameHasBeenSet;
302 
303  Aws::String m_name;
304  bool m_nameHasBeenSet;
305 
306  Aws::String m_functionVersion;
307  bool m_functionVersionHasBeenSet;
308 
309  Aws::String m_description;
310  bool m_descriptionHasBeenSet;
311 
312  AliasRoutingConfiguration m_routingConfig;
313  bool m_routingConfigHasBeenSet;
314  };
315 
316 } // namespace Model
317 } // namespace Lambda
318 } // namespace Aws
Aws::Lambda::Model::CreateAliasRequest::SetRoutingConfig
void SetRoutingConfig(const AliasRoutingConfiguration &value)
Definition: CreateAliasRequest.h:275
Aws::Lambda::Model::CreateAliasRequest::WithDescription
CreateAliasRequest & WithDescription(Aws::String &&value)
Definition: CreateAliasRequest.h:248
Aws::Lambda::Model::AliasRoutingConfiguration
Definition: AliasRoutingConfiguration.h:35
Aws::Lambda::Model::CreateAliasRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateAliasRequest.h:141
Aws::Lambda::Model::CreateAliasRequest::SetFunctionVersion
void SetFunctionVersion(Aws::String &&value)
Definition: CreateAliasRequest.h:192
Aws::Lambda::Model::CreateAliasRequest::WithFunctionVersion
CreateAliasRequest & WithFunctionVersion(const Aws::String &value)
Definition: CreateAliasRequest.h:202
Aws::Lambda::Model::CreateAliasRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateAliasRequest.h:238
Aws::Lambda::Model::CreateAliasRequest::FunctionVersionHasBeenSet
bool FunctionVersionHasBeenSet() const
Definition: CreateAliasRequest.h:182
Aws::Lambda::Model::CreateAliasRequest::WithRoutingConfig
CreateAliasRequest & WithRoutingConfig(AliasRoutingConfiguration &&value)
Definition: CreateAliasRequest.h:296
Aws::Lambda::Model::CreateAliasRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: CreateAliasRequest.h:82
Aws::Lambda::Model::CreateAliasRequest::CreateAliasRequest
CreateAliasRequest()
Aws::Lambda::Model::CreateAliasRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: CreateAliasRequest.h:70
Aws::Lambda::Model::CreateAliasRequest::GetRoutingConfig
const AliasRoutingConfiguration & GetRoutingConfig() const
Definition: CreateAliasRequest.h:261
Aws::Lambda::Model::CreateAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::CreateAliasRequest::WithFunctionName
CreateAliasRequest & WithFunctionName(const Aws::String &value)
Definition: CreateAliasRequest.h:106
Aws::Lambda::Model::CreateAliasRequest::WithFunctionVersion
CreateAliasRequest & WithFunctionVersion(const char *value)
Definition: CreateAliasRequest.h:212
Aws::Lambda::Model::CreateAliasRequest::GetName
const Aws::String & GetName() const
Definition: CreateAliasRequest.h:136
Aws::Lambda::Model::CreateAliasRequest::WithFunctionName
CreateAliasRequest & WithFunctionName(const char *value)
Definition: CreateAliasRequest.h:130
Aws::Lambda::Model::CreateAliasRequest::WithRoutingConfig
CreateAliasRequest & WithRoutingConfig(const AliasRoutingConfiguration &value)
Definition: CreateAliasRequest.h:289
Aws::Lambda::Model::CreateAliasRequest::GetFunctionVersion
const Aws::String & GetFunctionVersion() const
Definition: CreateAliasRequest.h:177
Aws::Lambda::Model::CreateAliasRequest::WithName
CreateAliasRequest & WithName(Aws::String &&value)
Definition: CreateAliasRequest.h:166
Aws::Lambda::Model::CreateAliasRequest
Definition: CreateAliasRequest.h:23
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::CreateAliasRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateAliasRequest.h:233
Aws::Lambda::Model::CreateAliasRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateAliasRequest.h:223
Aws::Lambda::Model::CreateAliasRequest::WithDescription
CreateAliasRequest & WithDescription(const Aws::String &value)
Definition: CreateAliasRequest.h:243
Aws::Lambda::Model::CreateAliasRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateAliasRequest.h:228
Aws::Lambda::Model::CreateAliasRequest::WithDescription
CreateAliasRequest & WithDescription(const char *value)
Definition: CreateAliasRequest.h:253
AWSString.h
LambdaRequest.h
Aws::Lambda::Model::CreateAliasRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateAliasRequest.h:218
Aws::Lambda::Model::CreateAliasRequest::RoutingConfigHasBeenSet
bool RoutingConfigHasBeenSet() const
Definition: CreateAliasRequest.h:268
Aws::Lambda::Model::CreateAliasRequest::SetFunctionVersion
void SetFunctionVersion(const Aws::String &value)
Definition: CreateAliasRequest.h:187
Aws::Lambda::Model::CreateAliasRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateAliasRequest.h:146
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::CreateAliasRequest::WithName
CreateAliasRequest & WithName(const char *value)
Definition: CreateAliasRequest.h:171
Aws::Lambda::Model::CreateAliasRequest::SetRoutingConfig
void SetRoutingConfig(AliasRoutingConfiguration &&value)
Definition: CreateAliasRequest.h:282
Aws::Lambda::Model::CreateAliasRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateAliasRequest.h:151
Aws::Lambda::Model::CreateAliasRequest::SetName
void SetName(const char *value)
Definition: CreateAliasRequest.h:156
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::CreateAliasRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: CreateAliasRequest.h:46
Aws::Lambda::Model::CreateAliasRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: CreateAliasRequest.h:58
Aws::Lambda::Model::CreateAliasRequest::SetFunctionVersion
void SetFunctionVersion(const char *value)
Definition: CreateAliasRequest.h:197
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AliasRoutingConfiguration.h
Aws::Lambda::Model::CreateAliasRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: CreateAliasRequest.h:94
Aws::Lambda::Model::CreateAliasRequest::WithFunctionName
CreateAliasRequest & WithFunctionName(Aws::String &&value)
Definition: CreateAliasRequest.h:118
Aws::Lambda::Model::CreateAliasRequest::WithFunctionVersion
CreateAliasRequest & WithFunctionVersion(Aws::String &&value)
Definition: CreateAliasRequest.h:207
Lambda_EXPORTS.h
Aws::Lambda::Model::CreateAliasRequest::WithName
CreateAliasRequest & WithName(const Aws::String &value)
Definition: CreateAliasRequest.h:161
Aws::Lambda::Model::CreateAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAliasRequest.h:31