AWS SDK for C++  0.14.3
AWS SDK for C++
CreateApplicationVersionRequest.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
20 
21 namespace Aws
22 {
23 namespace ElasticBeanstalk
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
42  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
43 
49  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
50 
56  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
57 
63  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
64 
70  inline CreateApplicationVersionRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
71 
77  inline CreateApplicationVersionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
78 
84  inline CreateApplicationVersionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
85 
92  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
93 
100  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
101 
108  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
109 
116  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
117 
124  inline CreateApplicationVersionRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
125 
132  inline CreateApplicationVersionRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(value); return *this;}
133 
140  inline CreateApplicationVersionRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
141 
145  inline const Aws::String& GetDescription() const{ return m_description; }
146 
150  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
151 
155  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
156 
160  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
161 
165  inline CreateApplicationVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
166 
170  inline CreateApplicationVersionRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
171 
175  inline CreateApplicationVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
176 
187  inline const S3Location& GetSourceBundle() const{ return m_sourceBundle; }
188 
199  inline void SetSourceBundle(const S3Location& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = value; }
200 
211  inline void SetSourceBundle(S3Location&& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = value; }
212 
223  inline CreateApplicationVersionRequest& WithSourceBundle(const S3Location& value) { SetSourceBundle(value); return *this;}
224 
235  inline CreateApplicationVersionRequest& WithSourceBundle(S3Location&& value) { SetSourceBundle(value); return *this;}
236 
246  inline bool GetAutoCreateApplication() const{ return m_autoCreateApplication; }
247 
257  inline void SetAutoCreateApplication(bool value) { m_autoCreateApplicationHasBeenSet = true; m_autoCreateApplication = value; }
258 
268  inline CreateApplicationVersionRequest& WithAutoCreateApplication(bool value) { SetAutoCreateApplication(value); return *this;}
269 
275  inline bool GetProcess() const{ return m_process; }
276 
282  inline void SetProcess(bool value) { m_processHasBeenSet = true; m_process = value; }
283 
289  inline CreateApplicationVersionRequest& WithProcess(bool value) { SetProcess(value); return *this;}
290 
291  private:
292  Aws::String m_applicationName;
293  bool m_applicationNameHasBeenSet;
294  Aws::String m_versionLabel;
295  bool m_versionLabelHasBeenSet;
296  Aws::String m_description;
297  bool m_descriptionHasBeenSet;
298  S3Location m_sourceBundle;
299  bool m_sourceBundleHasBeenSet;
300  bool m_autoCreateApplication;
301  bool m_autoCreateApplicationHasBeenSet;
302  bool m_process;
303  bool m_processHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace ElasticBeanstalk
308 } // namespace Aws
CreateApplicationVersionRequest & WithApplicationName(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
CreateApplicationVersionRequest & WithVersionLabel(const char *value)
CreateApplicationVersionRequest & WithDescription(Aws::String &&value)
CreateApplicationVersionRequest & WithApplicationName(const Aws::String &value)
CreateApplicationVersionRequest & WithApplicationName(const char *value)
CreateApplicationVersionRequest & WithVersionLabel(Aws::String &&value)
CreateApplicationVersionRequest & WithSourceBundle(S3Location &&value)
CreateApplicationVersionRequest & WithVersionLabel(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateApplicationVersionRequest & WithSourceBundle(const S3Location &value)
CreateApplicationVersionRequest & WithDescription(const char *value)
CreateApplicationVersionRequest & WithDescription(const Aws::String &value)
JSON (JavaScript Object Notation).