AWS SDK for C++  0.14.3
AWS SDK for C++
Deployment.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 Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElasticBeanstalk
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Deployment();
42  Deployment(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Deployment& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
52 
56  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
57 
61  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
62 
66  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
67 
71  inline Deployment& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
72 
76  inline Deployment& WithVersionLabel(Aws::String&& value) { SetVersionLabel(value); return *this;}
77 
81  inline Deployment& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
82 
87  inline long long GetDeploymentId() const{ return m_deploymentId; }
88 
93  inline void SetDeploymentId(long long value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
94 
99  inline Deployment& WithDeploymentId(long long value) { SetDeploymentId(value); return *this;}
100 
106  inline const Aws::String& GetStatus() const{ return m_status; }
107 
113  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
114 
120  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
121 
127  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
128 
134  inline Deployment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
135 
141  inline Deployment& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
142 
148  inline Deployment& WithStatus(const char* value) { SetStatus(value); return *this;}
149 
154  inline const Aws::Utils::DateTime& GetDeploymentTime() const{ return m_deploymentTime; }
155 
160  inline void SetDeploymentTime(const Aws::Utils::DateTime& value) { m_deploymentTimeHasBeenSet = true; m_deploymentTime = value; }
161 
166  inline void SetDeploymentTime(Aws::Utils::DateTime&& value) { m_deploymentTimeHasBeenSet = true; m_deploymentTime = value; }
167 
172  inline Deployment& WithDeploymentTime(const Aws::Utils::DateTime& value) { SetDeploymentTime(value); return *this;}
173 
178  inline Deployment& WithDeploymentTime(Aws::Utils::DateTime&& value) { SetDeploymentTime(value); return *this;}
179 
180  private:
181  Aws::String m_versionLabel;
182  bool m_versionLabelHasBeenSet;
183  long long m_deploymentId;
184  bool m_deploymentIdHasBeenSet;
185  Aws::String m_status;
186  bool m_statusHasBeenSet;
187  Aws::Utils::DateTime m_deploymentTime;
188  bool m_deploymentTimeHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace ElasticBeanstalk
193 } // namespace Aws
const Aws::Utils::DateTime & GetDeploymentTime() const
Definition: Deployment.h:154
Deployment & WithVersionLabel(const char *value)
Definition: Deployment.h:81
void SetStatus(const Aws::String &value)
Definition: Deployment.h:113
const Aws::String & GetVersionLabel() const
Definition: Deployment.h:51
const Aws::String & GetStatus() const
Definition: Deployment.h:106
Deployment & WithStatus(const Aws::String &value)
Definition: Deployment.h:134
#define AWS_ELASTICBEANSTALK_API
void SetVersionLabel(const char *value)
Definition: Deployment.h:66
Deployment & WithStatus(Aws::String &&value)
Definition: Deployment.h:141
void SetVersionLabel(Aws::String &&value)
Definition: Deployment.h:61
Deployment & WithDeploymentTime(Aws::Utils::DateTime &&value)
Definition: Deployment.h:178
void SetVersionLabel(const Aws::String &value)
Definition: Deployment.h:56
void SetDeploymentId(long long value)
Definition: Deployment.h:93
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDeploymentTime(Aws::Utils::DateTime &&value)
Definition: Deployment.h:166
Deployment & WithDeploymentTime(const Aws::Utils::DateTime &value)
Definition: Deployment.h:172
Deployment & WithStatus(const char *value)
Definition: Deployment.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Deployment & WithVersionLabel(Aws::String &&value)
Definition: Deployment.h:76
void SetDeploymentTime(const Aws::Utils::DateTime &value)
Definition: Deployment.h:160
Deployment & WithDeploymentId(long long value)
Definition: Deployment.h:99
void SetStatus(const char *value)
Definition: Deployment.h:127
JSON (JavaScript Object Notation).
Deployment & WithVersionLabel(const Aws::String &value)
Definition: Deployment.h:71
void SetStatus(Aws::String &&value)
Definition: Deployment.h:120