AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAliasRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/AliasRoutingConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lambda
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LAMBDA_API CreateAliasRequest();
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_LAMBDA_API Aws::String SerializePayload() const override;
34
35
37
47 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
48 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
49 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
50 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
51 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
52 inline CreateAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
53 inline CreateAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
54 inline CreateAliasRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CreateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CreateAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CreateAliasRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
76 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
77 inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
78 inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
79 inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
80 inline CreateAliasRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
81 inline CreateAliasRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
82 inline CreateAliasRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
84
86
89 inline const Aws::String& GetDescription() const{ return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
93 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
94 inline CreateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 inline CreateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
96 inline CreateAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
98
100
105 inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; }
106 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
107 inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
108 inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
110 inline CreateAliasRequest& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
112 private:
113
114 Aws::String m_functionName;
115 bool m_functionNameHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_functionVersion;
121 bool m_functionVersionHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 AliasRoutingConfiguration m_routingConfig;
127 bool m_routingConfigHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Lambda
132} // namespace Aws
CreateAliasRequest & WithRoutingConfig(AliasRoutingConfiguration &&value)
void SetRoutingConfig(AliasRoutingConfiguration &&value)
CreateAliasRequest & WithFunctionName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetRoutingConfig(const AliasRoutingConfiguration &value)
CreateAliasRequest & WithFunctionName(Aws::String &&value)
void SetDescription(const Aws::String &value)
CreateAliasRequest & WithRoutingConfig(const AliasRoutingConfiguration &value)
CreateAliasRequest & WithName(const char *value)
CreateAliasRequest & WithDescription(const Aws::String &value)
void SetFunctionName(Aws::String &&value)
void SetFunctionVersion(Aws::String &&value)
void SetName(const Aws::String &value)
CreateAliasRequest & WithFunctionVersion(const char *value)
CreateAliasRequest & WithFunctionVersion(const Aws::String &value)
const AliasRoutingConfiguration & GetRoutingConfig() const
CreateAliasRequest & WithDescription(Aws::String &&value)
const Aws::String & GetFunctionVersion() const
CreateAliasRequest & WithFunctionName(const Aws::String &value)
CreateAliasRequest & WithDescription(const char *value)
void SetFunctionName(const Aws::String &value)
const Aws::String & GetFunctionName() const
CreateAliasRequest & WithName(const Aws::String &value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
void SetFunctionVersion(const Aws::String &value)
CreateAliasRequest & WithFunctionVersion(Aws::String &&value)
CreateAliasRequest & WithName(Aws::String &&value)
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String