AWS SDK for C++  0.12.9
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 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
45  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
46 
57  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
58 
69  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
70 
81  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
82 
93  inline PublishVersionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
94 
105  inline PublishVersionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
106 
117  inline PublishVersionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
118 
125  inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
126 
133  inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
134 
141  inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
142 
149  inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
150 
157  inline PublishVersionRequest& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
158 
165  inline PublishVersionRequest& WithCodeSha256(Aws::String&& value) { SetCodeSha256(value); return *this;}
166 
173  inline PublishVersionRequest& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
174 
179  inline const Aws::String& GetDescription() const{ return m_description; }
180 
185  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
186 
191  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
192 
197  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
198 
203  inline PublishVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
204 
209  inline PublishVersionRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
210 
215  inline PublishVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
216 
217  private:
218  Aws::String m_functionName;
219  bool m_functionNameHasBeenSet;
220  Aws::String m_codeSha256;
221  bool m_codeSha256HasBeenSet;
222  Aws::String m_description;
223  bool m_descriptionHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace Lambda
228 } // 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)