AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAliasRequest.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 UpdateAliasRequest();
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_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 UpdateAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
53 inline UpdateAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
54 inline UpdateAliasRequest& 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 UpdateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline UpdateAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline UpdateAliasRequest& 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 UpdateAliasRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
81 inline UpdateAliasRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
82 inline UpdateAliasRequest& 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 UpdateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 inline UpdateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
96 inline UpdateAliasRequest& 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 UpdateAliasRequest& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
112
114
119 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
120 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
121 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
122 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
123 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
124 inline UpdateAliasRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
125 inline UpdateAliasRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
126 inline UpdateAliasRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
128 private:
129
130 Aws::String m_functionName;
131 bool m_functionNameHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_functionVersion;
137 bool m_functionVersionHasBeenSet = false;
138
139 Aws::String m_description;
140 bool m_descriptionHasBeenSet = false;
141
142 AliasRoutingConfiguration m_routingConfig;
143 bool m_routingConfigHasBeenSet = false;
144
145 Aws::String m_revisionId;
146 bool m_revisionIdHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Lambda
151} // namespace Aws
UpdateAliasRequest & WithFunctionVersion(const Aws::String &value)
void SetName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetFunctionName(Aws::String &&value)
UpdateAliasRequest & WithRoutingConfig(const AliasRoutingConfiguration &value)
void SetDescription(const Aws::String &value)
const Aws::String & GetFunctionVersion() const
void SetFunctionName(const Aws::String &value)
UpdateAliasRequest & WithRevisionId(Aws::String &&value)
void SetFunctionVersion(const Aws::String &value)
UpdateAliasRequest & WithFunctionName(const Aws::String &value)
UpdateAliasRequest & WithName(const Aws::String &value)
UpdateAliasRequest & WithFunctionVersion(Aws::String &&value)
void SetFunctionVersion(Aws::String &&value)
UpdateAliasRequest & WithFunctionName(Aws::String &&value)
void SetRoutingConfig(const AliasRoutingConfiguration &value)
UpdateAliasRequest & WithDescription(const Aws::String &value)
UpdateAliasRequest & WithFunctionVersion(const char *value)
UpdateAliasRequest & WithRevisionId(const Aws::String &value)
UpdateAliasRequest & WithName(const char *value)
UpdateAliasRequest & WithName(Aws::String &&value)
UpdateAliasRequest & WithDescription(const char *value)
UpdateAliasRequest & WithFunctionName(const char *value)
UpdateAliasRequest & WithRevisionId(const char *value)
const Aws::String & GetDescription() const
void SetRevisionId(const Aws::String &value)
const Aws::String & GetRevisionId() const
UpdateAliasRequest & WithRoutingConfig(AliasRoutingConfiguration &&value)
void SetRoutingConfig(AliasRoutingConfiguration &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
const Aws::String & GetFunctionName() const
const AliasRoutingConfiguration & GetRoutingConfig() const
UpdateAliasRequest & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String