AWS SDK for C++  0.14.3
AWS SDK for C++
CreateAliasRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Lambda
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
38  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
39 
43  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
44 
48  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
49 
53  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
54 
58  inline CreateAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
59 
63  inline CreateAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
64 
68  inline CreateAliasRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
69 
73  inline const Aws::String& GetName() const{ return m_name; }
74 
78  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 
83  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
84 
88  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
89 
93  inline CreateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
94 
98  inline CreateAliasRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
99 
103  inline CreateAliasRequest& WithName(const char* value) { SetName(value); return *this;}
104 
108  inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
109 
113  inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
114 
118  inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
119 
123  inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
124 
128  inline CreateAliasRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
129 
133  inline CreateAliasRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(value); return *this;}
134 
138  inline CreateAliasRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
139 
143  inline const Aws::String& GetDescription() const{ return m_description; }
144 
148  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
149 
153  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
154 
158  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
159 
163  inline CreateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
164 
168  inline CreateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
169 
173  inline CreateAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
174 
175  private:
176  Aws::String m_functionName;
177  bool m_functionNameHasBeenSet;
178  Aws::String m_name;
179  bool m_nameHasBeenSet;
180  Aws::String m_functionVersion;
181  bool m_functionVersionHasBeenSet;
182  Aws::String m_description;
183  bool m_descriptionHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace Lambda
188 } // namespace Aws
void SetFunctionName(Aws::String &&value)
CreateAliasRequest & WithFunctionVersion(Aws::String &&value)
CreateAliasRequest & WithFunctionVersion(const Aws::String &value)
void SetFunctionVersion(const Aws::String &value)
const Aws::String & GetName() const
const Aws::String & GetFunctionVersion() const
CreateAliasRequest & WithFunctionName(Aws::String &&value)
CreateAliasRequest & WithDescription(Aws::String &&value)
CreateAliasRequest & WithName(const char *value)
CreateAliasRequest & WithFunctionName(const char *value)
void SetFunctionName(const Aws::String &value)
void SetName(const Aws::String &value)
CreateAliasRequest & WithName(Aws::String &&value)
CreateAliasRequest & WithDescription(const char *value)
#define AWS_LAMBDA_API
CreateAliasRequest & WithFunctionVersion(const char *value)
const Aws::String & GetFunctionName() const
CreateAliasRequest & WithDescription(const Aws::String &value)
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDescription(Aws::String &&value)
void SetFunctionVersion(Aws::String &&value)
CreateAliasRequest & WithName(const Aws::String &value)
CreateAliasRequest & WithFunctionName(const Aws::String &value)
JSON (JavaScript Object Notation).