AWS SDK for C++  0.12.9
AWS SDK for C++
ApplicationVersionDescription.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
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace ElasticBeanstalk
33 {
34 namespace Model
35 {
36 
41  {
42  public:
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
54 
58  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
59 
63  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
64 
68  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
69 
73  inline ApplicationVersionDescription& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
74 
78  inline ApplicationVersionDescription& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
79 
83  inline ApplicationVersionDescription& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
84 
88  inline const Aws::String& GetDescription() const{ return m_description; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline ApplicationVersionDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline ApplicationVersionDescription& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
114 
118  inline ApplicationVersionDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
124  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
125 
130  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
131 
136  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
137 
142  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
143 
148  inline ApplicationVersionDescription& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
149 
154  inline ApplicationVersionDescription& WithVersionLabel(Aws::String&& value) { SetVersionLabel(value); return *this;}
155 
160  inline ApplicationVersionDescription& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
161 
165  inline const S3Location& GetSourceBundle() const{ return m_sourceBundle; }
166 
170  inline void SetSourceBundle(const S3Location& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = value; }
171 
175  inline void SetSourceBundle(S3Location&& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = value; }
176 
180  inline ApplicationVersionDescription& WithSourceBundle(const S3Location& value) { SetSourceBundle(value); return *this;}
181 
185  inline ApplicationVersionDescription& WithSourceBundle(S3Location&& value) { SetSourceBundle(value); return *this;}
186 
190  inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
191 
195  inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
196 
200  inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
201 
205  inline ApplicationVersionDescription& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;}
206 
210  inline ApplicationVersionDescription& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(value); return *this;}
211 
215  inline const Aws::Utils::DateTime& GetDateUpdated() const{ return m_dateUpdated; }
216 
220  inline void SetDateUpdated(const Aws::Utils::DateTime& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; }
221 
225  inline void SetDateUpdated(Aws::Utils::DateTime&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; }
226 
230  inline ApplicationVersionDescription& WithDateUpdated(const Aws::Utils::DateTime& value) { SetDateUpdated(value); return *this;}
231 
235  inline ApplicationVersionDescription& WithDateUpdated(Aws::Utils::DateTime&& value) { SetDateUpdated(value); return *this;}
236 
240  inline const ApplicationVersionStatus& GetStatus() const{ return m_status; }
241 
245  inline void SetStatus(const ApplicationVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
246 
250  inline void SetStatus(ApplicationVersionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
251 
255  inline ApplicationVersionDescription& WithStatus(const ApplicationVersionStatus& value) { SetStatus(value); return *this;}
256 
260  inline ApplicationVersionDescription& WithStatus(ApplicationVersionStatus&& value) { SetStatus(value); return *this;}
261 
262  private:
263  Aws::String m_applicationName;
264  bool m_applicationNameHasBeenSet;
265  Aws::String m_description;
266  bool m_descriptionHasBeenSet;
267  Aws::String m_versionLabel;
268  bool m_versionLabelHasBeenSet;
269  S3Location m_sourceBundle;
270  bool m_sourceBundleHasBeenSet;
271  Aws::Utils::DateTime m_dateCreated;
272  bool m_dateCreatedHasBeenSet;
273  Aws::Utils::DateTime m_dateUpdated;
274  bool m_dateUpdatedHasBeenSet;
275  ApplicationVersionStatus m_status;
276  bool m_statusHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace ElasticBeanstalk
281 } // namespace Aws
ApplicationVersionDescription & WithVersionLabel(const char *value)
ApplicationVersionDescription & WithApplicationName(const char *value)
#define AWS_ELASTICBEANSTALK_API
ApplicationVersionDescription & WithDescription(const char *value)
ApplicationVersionDescription & WithVersionLabel(Aws::String &&value)
ApplicationVersionDescription & WithApplicationName(const Aws::String &value)
ApplicationVersionDescription & WithDateCreated(Aws::Utils::DateTime &&value)
ApplicationVersionDescription & WithVersionLabel(const Aws::String &value)
ApplicationVersionDescription & WithDateCreated(const Aws::Utils::DateTime &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ApplicationVersionDescription & WithDateUpdated(Aws::Utils::DateTime &&value)
ApplicationVersionDescription & WithSourceBundle(const S3Location &value)
ApplicationVersionDescription & WithDescription(const Aws::String &value)
ApplicationVersionDescription & WithApplicationName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ApplicationVersionDescription & WithSourceBundle(S3Location &&value)
ApplicationVersionDescription & WithStatus(ApplicationVersionStatus &&value)
ApplicationVersionDescription & WithDescription(Aws::String &&value)
ApplicationVersionDescription & WithStatus(const ApplicationVersionStatus &value)
JSON (JavaScript Object Notation).
ApplicationVersionDescription & WithDateUpdated(const Aws::Utils::DateTime &value)