AWS SDK for C++  0.14.3
AWS SDK for C++
PublishVersionRequest.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 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
46  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
47 
58  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
59 
70  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
71 
82  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
83 
94  inline PublishVersionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
95 
106  inline PublishVersionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
107 
118  inline PublishVersionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
119 
125  inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
126 
132  inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
133 
139  inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
140 
146  inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
147 
153  inline PublishVersionRequest& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
154 
160  inline PublishVersionRequest& WithCodeSha256(Aws::String&& value) { SetCodeSha256(value); return *this;}
161 
167  inline PublishVersionRequest& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
168 
173  inline const Aws::String& GetDescription() const{ return m_description; }
174 
179  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
180 
185  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
186 
191  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
192 
197  inline PublishVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
198 
203  inline PublishVersionRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
204 
209  inline PublishVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
210 
211  private:
212  Aws::String m_functionName;
213  bool m_functionNameHasBeenSet;
214  Aws::String m_codeSha256;
215  bool m_codeSha256HasBeenSet;
216  Aws::String m_description;
217  bool m_descriptionHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace Lambda
222 } // namespace Aws
PublishVersionRequest & WithCodeSha256(const Aws::String &value)
PublishVersionRequest & WithDescription(Aws::String &&value)
PublishVersionRequest & WithCodeSha256(Aws::String &&value)
PublishVersionRequest & WithDescription(const Aws::String &value)
PublishVersionRequest & WithFunctionName(const Aws::String &value)
PublishVersionRequest & WithFunctionName(const char *value)
void SetFunctionName(const Aws::String &value)
#define AWS_LAMBDA_API
PublishVersionRequest & WithCodeSha256(const char *value)
PublishVersionRequest & WithFunctionName(Aws::String &&value)
PublishVersionRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetFunctionName() const
void SetDescription(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetCodeSha256(const Aws::String &value)