AWS SDK for C++  1.9.20
AWS SDK for C++
UpdateAliasRequest.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 "UpdateAlias"; }
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 UpdateAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
107 
118  inline UpdateAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
119 
130  inline UpdateAliasRequest& 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 UpdateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
162 
166  inline UpdateAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
167 
171  inline UpdateAliasRequest& 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 UpdateAliasRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
203 
207  inline UpdateAliasRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
208 
212  inline UpdateAliasRequest& 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 UpdateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
244 
248  inline UpdateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
249 
253  inline UpdateAliasRequest& 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 UpdateAliasRequest& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;}
290 
296  inline UpdateAliasRequest& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
297 
298 
304  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
305 
311  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
312 
318  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
319 
325  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
326 
332  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
333 
339  inline UpdateAliasRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
340 
346  inline UpdateAliasRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
347 
353  inline UpdateAliasRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
354 
355  private:
356 
357  Aws::String m_functionName;
358  bool m_functionNameHasBeenSet;
359 
360  Aws::String m_name;
361  bool m_nameHasBeenSet;
362 
363  Aws::String m_functionVersion;
364  bool m_functionVersionHasBeenSet;
365 
366  Aws::String m_description;
367  bool m_descriptionHasBeenSet;
368 
369  AliasRoutingConfiguration m_routingConfig;
370  bool m_routingConfigHasBeenSet;
371 
372  Aws::String m_revisionId;
373  bool m_revisionIdHasBeenSet;
374  };
375 
376 } // namespace Model
377 } // namespace Lambda
378 } // namespace Aws
Aws::Lambda::Model::UpdateAliasRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: UpdateAliasRequest.h:325
Aws::Lambda::Model::AliasRoutingConfiguration
Definition: AliasRoutingConfiguration.h:35
Aws::Lambda::Model::UpdateAliasRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: UpdateAliasRequest.h:70
Aws::Lambda::Model::UpdateAliasRequest::WithDescription
UpdateAliasRequest & WithDescription(const char *value)
Definition: UpdateAliasRequest.h:253
Aws::Lambda::Model::UpdateAliasRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: UpdateAliasRequest.h:332
Aws::Lambda::Model::UpdateAliasRequest::WithFunctionName
UpdateAliasRequest & WithFunctionName(Aws::String &&value)
Definition: UpdateAliasRequest.h:118
Aws::Lambda::Model::UpdateAliasRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateAliasRequest.h:151
Aws::Lambda::Model::UpdateAliasRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: UpdateAliasRequest.h:46
Aws::Lambda::Model::UpdateAliasRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateAliasRequest.h:233
Aws::Lambda::Model::UpdateAliasRequest::SetFunctionVersion
void SetFunctionVersion(const Aws::String &value)
Definition: UpdateAliasRequest.h:187
Aws::Lambda::Model::UpdateAliasRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: UpdateAliasRequest.h:318
Aws::Lambda::Model::UpdateAliasRequest::WithName
UpdateAliasRequest & WithName(const Aws::String &value)
Definition: UpdateAliasRequest.h:161
Aws::Lambda::Model::UpdateAliasRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: UpdateAliasRequest.h:311
Aws::Lambda::Model::UpdateAliasRequest::SetFunctionVersion
void SetFunctionVersion(const char *value)
Definition: UpdateAliasRequest.h:197
Aws::Lambda::Model::UpdateAliasRequest::FunctionVersionHasBeenSet
bool FunctionVersionHasBeenSet() const
Definition: UpdateAliasRequest.h:182
Aws::Lambda::Model::UpdateAliasRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateAliasRequest.h:223
Aws::Lambda::Model::UpdateAliasRequest::WithFunctionName
UpdateAliasRequest & WithFunctionName(const Aws::String &value)
Definition: UpdateAliasRequest.h:106
Aws::Lambda::Model::UpdateAliasRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateAliasRequest.h:218
Aws::Lambda::Model::UpdateAliasRequest::WithDescription
UpdateAliasRequest & WithDescription(Aws::String &&value)
Definition: UpdateAliasRequest.h:248
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::UpdateAliasRequest
Definition: UpdateAliasRequest.h:23
Aws::Lambda::Model::UpdateAliasRequest::GetRoutingConfig
const AliasRoutingConfiguration & GetRoutingConfig() const
Definition: UpdateAliasRequest.h:261
Aws::Lambda::Model::UpdateAliasRequest::WithName
UpdateAliasRequest & WithName(const char *value)
Definition: UpdateAliasRequest.h:171
Aws::Lambda::Model::UpdateAliasRequest::SetName
void SetName(const char *value)
Definition: UpdateAliasRequest.h:156
Aws::Lambda::Model::UpdateAliasRequest::UpdateAliasRequest
UpdateAliasRequest()
Aws::Lambda::Model::UpdateAliasRequest::WithDescription
UpdateAliasRequest & WithDescription(const Aws::String &value)
Definition: UpdateAliasRequest.h:243
Aws::Lambda::Model::UpdateAliasRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: UpdateAliasRequest.h:82
AWSString.h
Aws::Lambda::Model::UpdateAliasRequest::WithRoutingConfig
UpdateAliasRequest & WithRoutingConfig(const AliasRoutingConfiguration &value)
Definition: UpdateAliasRequest.h:289
Aws::Lambda::Model::UpdateAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::UpdateAliasRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateAliasRequest.h:228
LambdaRequest.h
Aws::Lambda::Model::UpdateAliasRequest::SetRoutingConfig
void SetRoutingConfig(const AliasRoutingConfiguration &value)
Definition: UpdateAliasRequest.h:275
Aws::Lambda::Model::UpdateAliasRequest::WithFunctionName
UpdateAliasRequest & WithFunctionName(const char *value)
Definition: UpdateAliasRequest.h:130
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::UpdateAliasRequest::WithRevisionId
UpdateAliasRequest & WithRevisionId(const Aws::String &value)
Definition: UpdateAliasRequest.h:339
Aws::Lambda::Model::UpdateAliasRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: UpdateAliasRequest.h:58
Aws::Lambda::Model::UpdateAliasRequest::WithFunctionVersion
UpdateAliasRequest & WithFunctionVersion(Aws::String &&value)
Definition: UpdateAliasRequest.h:207
Aws::Lambda::Model::UpdateAliasRequest::GetFunctionVersion
const Aws::String & GetFunctionVersion() const
Definition: UpdateAliasRequest.h:177
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::UpdateAliasRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: UpdateAliasRequest.h:304
Aws::Lambda::Model::UpdateAliasRequest::GetName
const Aws::String & GetName() const
Definition: UpdateAliasRequest.h:136
Aws::Lambda::Model::UpdateAliasRequest::WithRoutingConfig
UpdateAliasRequest & WithRoutingConfig(AliasRoutingConfiguration &&value)
Definition: UpdateAliasRequest.h:296
Aws::Lambda::Model::UpdateAliasRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateAliasRequest.h:141
Aws::Lambda::Model::UpdateAliasRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateAliasRequest.h:146
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::UpdateAliasRequest::WithFunctionVersion
UpdateAliasRequest & WithFunctionVersion(const char *value)
Definition: UpdateAliasRequest.h:212
Aws::Lambda::Model::UpdateAliasRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: UpdateAliasRequest.h:94
AliasRoutingConfiguration.h
Aws::Lambda::Model::UpdateAliasRequest::RoutingConfigHasBeenSet
bool RoutingConfigHasBeenSet() const
Definition: UpdateAliasRequest.h:268
Aws::Lambda::Model::UpdateAliasRequest::SetFunctionVersion
void SetFunctionVersion(Aws::String &&value)
Definition: UpdateAliasRequest.h:192
Aws::Lambda::Model::UpdateAliasRequest::WithFunctionVersion
UpdateAliasRequest & WithFunctionVersion(const Aws::String &value)
Definition: UpdateAliasRequest.h:202
Aws::Lambda::Model::UpdateAliasRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateAliasRequest.h:238
Aws::Lambda::Model::UpdateAliasRequest::WithRevisionId
UpdateAliasRequest & WithRevisionId(const char *value)
Definition: UpdateAliasRequest.h:353
Aws::Lambda::Model::UpdateAliasRequest::WithRevisionId
UpdateAliasRequest & WithRevisionId(Aws::String &&value)
Definition: UpdateAliasRequest.h:346
Aws::Lambda::Model::UpdateAliasRequest::WithName
UpdateAliasRequest & WithName(Aws::String &&value)
Definition: UpdateAliasRequest.h:166
Lambda_EXPORTS.h
Aws::Lambda::Model::UpdateAliasRequest::SetRoutingConfig
void SetRoutingConfig(AliasRoutingConfiguration &&value)
Definition: UpdateAliasRequest.h:282
Aws::Lambda::Model::UpdateAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAliasRequest.h:31