AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElasticBeanstalk {
21namespace Model {
22
30 public:
31 AWS_ELASTICBEANSTALK_API Deployment() = default;
32 AWS_ELASTICBEANSTALK_API Deployment(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICBEANSTALK_API Deployment& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
44 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
45 template <typename VersionLabelT = Aws::String>
46 void SetVersionLabel(VersionLabelT&& value) {
47 m_versionLabelHasBeenSet = true;
48 m_versionLabel = std::forward<VersionLabelT>(value);
49 }
50 template <typename VersionLabelT = Aws::String>
51 Deployment& WithVersionLabel(VersionLabelT&& value) {
52 SetVersionLabel(std::forward<VersionLabelT>(value));
53 return *this;
54 }
56
58
62 inline long long GetDeploymentId() const { return m_deploymentId; }
63 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
64 inline void SetDeploymentId(long long value) {
65 m_deploymentIdHasBeenSet = true;
66 m_deploymentId = value;
67 }
68 inline Deployment& WithDeploymentId(long long value) {
69 SetDeploymentId(value);
70 return *this;
71 }
73
75
81 inline const Aws::String& GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 template <typename StatusT = Aws::String>
84 void SetStatus(StatusT&& value) {
85 m_statusHasBeenSet = true;
86 m_status = std::forward<StatusT>(value);
87 }
88 template <typename StatusT = Aws::String>
89 Deployment& WithStatus(StatusT&& value) {
90 SetStatus(std::forward<StatusT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetDeploymentTime() const { return m_deploymentTime; }
101 inline bool DeploymentTimeHasBeenSet() const { return m_deploymentTimeHasBeenSet; }
102 template <typename DeploymentTimeT = Aws::Utils::DateTime>
103 void SetDeploymentTime(DeploymentTimeT&& value) {
104 m_deploymentTimeHasBeenSet = true;
105 m_deploymentTime = std::forward<DeploymentTimeT>(value);
106 }
107 template <typename DeploymentTimeT = Aws::Utils::DateTime>
108 Deployment& WithDeploymentTime(DeploymentTimeT&& value) {
109 SetDeploymentTime(std::forward<DeploymentTimeT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_versionLabel;
115
116 long long m_deploymentId{0};
117
118 Aws::String m_status;
119
120 Aws::Utils::DateTime m_deploymentTime{};
121 bool m_versionLabelHasBeenSet = false;
122 bool m_deploymentIdHasBeenSet = false;
123 bool m_statusHasBeenSet = false;
124 bool m_deploymentTimeHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace ElasticBeanstalk
129} // namespace Aws
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Deployment & WithDeploymentId(long long value)
Definition Deployment.h:68
Deployment & WithDeploymentTime(DeploymentTimeT &&value)
Definition Deployment.h:108
const Aws::Utils::DateTime & GetDeploymentTime() const
Definition Deployment.h:100
void SetDeploymentTime(DeploymentTimeT &&value)
Definition Deployment.h:103
AWS_ELASTICBEANSTALK_API Deployment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API Deployment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Deployment & WithVersionLabel(VersionLabelT &&value)
Definition Deployment.h:51
void SetVersionLabel(VersionLabelT &&value)
Definition Deployment.h:46
AWS_ELASTICBEANSTALK_API Deployment()=default
void SetDeploymentId(long long value)
Definition Deployment.h:64
const Aws::String & GetVersionLabel() const
Definition Deployment.h:43
const Aws::String & GetStatus() const
Definition Deployment.h:81
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Deployment & WithStatus(StatusT &&value)
Definition Deployment.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream