AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LastDeploymentInfo.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeDeploy
24{
25namespace Model
26{
27
35 {
36 public:
41
42
46 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
47
51 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
52
56 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
57
61 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
62
66 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
67
71 inline LastDeploymentInfo& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
72
76 inline LastDeploymentInfo& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
77
81 inline LastDeploymentInfo& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
82
83
87 inline const DeploymentStatus& GetStatus() const{ return m_status; }
88
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93
97 inline void SetStatus(const DeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
98
102 inline void SetStatus(DeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
103
107 inline LastDeploymentInfo& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;}
108
112 inline LastDeploymentInfo& WithStatus(DeploymentStatus&& value) { SetStatus(std::move(value)); return *this;}
113
114
119 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
120
125 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
126
131 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
132
137 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
138
143 inline LastDeploymentInfo& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
144
149 inline LastDeploymentInfo& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
150
151
156 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
157
162 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
163
168 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
169
174 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
175
180 inline LastDeploymentInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
181
186 inline LastDeploymentInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
187
188 private:
189
190 Aws::String m_deploymentId;
191 bool m_deploymentIdHasBeenSet = false;
192
193 DeploymentStatus m_status;
194 bool m_statusHasBeenSet = false;
195
196 Aws::Utils::DateTime m_endTime;
197 bool m_endTimeHasBeenSet = false;
198
199 Aws::Utils::DateTime m_createTime;
200 bool m_createTimeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace CodeDeploy
205} // namespace Aws
#define AWS_CODEDEPLOY_API
LastDeploymentInfo & WithStatus(const DeploymentStatus &value)
LastDeploymentInfo & WithStatus(DeploymentStatus &&value)
LastDeploymentInfo & WithDeploymentId(const Aws::String &value)
LastDeploymentInfo & WithDeploymentId(const char *value)
LastDeploymentInfo & WithDeploymentId(Aws::String &&value)
AWS_CODEDEPLOY_API LastDeploymentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
LastDeploymentInfo & WithEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
LastDeploymentInfo & WithEndTime(Aws::Utils::DateTime &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDeploymentId(const Aws::String &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
void SetCreateTime(Aws::Utils::DateTime &&value)
LastDeploymentInfo & WithCreateTime(const Aws::Utils::DateTime &value)
const DeploymentStatus & GetStatus() const
AWS_CODEDEPLOY_API LastDeploymentInfo(Aws::Utils::Json::JsonView jsonValue)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetStatus(DeploymentStatus &&value)
const Aws::String & GetDeploymentId() const
const Aws::Utils::DateTime & GetCreateTime() const
LastDeploymentInfo & WithCreateTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetStatus(const DeploymentStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String