AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LastDeploymentInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/DeploymentStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy {
22namespace Model {
23
31 public:
32 AWS_CODEDEPLOY_API LastDeploymentInfo() = default;
33 AWS_CODEDEPLOY_API LastDeploymentInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
42 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
43 template <typename DeploymentIdT = Aws::String>
44 void SetDeploymentId(DeploymentIdT&& value) {
45 m_deploymentIdHasBeenSet = true;
46 m_deploymentId = std::forward<DeploymentIdT>(value);
47 }
48 template <typename DeploymentIdT = Aws::String>
49 LastDeploymentInfo& WithDeploymentId(DeploymentIdT&& value) {
50 SetDeploymentId(std::forward<DeploymentIdT>(value));
51 return *this;
52 }
54
56
59 inline DeploymentStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(DeploymentStatus value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
76 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
77 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
78 template <typename EndTimeT = Aws::Utils::DateTime>
79 void SetEndTime(EndTimeT&& value) {
80 m_endTimeHasBeenSet = true;
81 m_endTime = std::forward<EndTimeT>(value);
82 }
83 template <typename EndTimeT = Aws::Utils::DateTime>
84 LastDeploymentInfo& WithEndTime(EndTimeT&& value) {
85 SetEndTime(std::forward<EndTimeT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
96 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
97 template <typename CreateTimeT = Aws::Utils::DateTime>
98 void SetCreateTime(CreateTimeT&& value) {
99 m_createTimeHasBeenSet = true;
100 m_createTime = std::forward<CreateTimeT>(value);
101 }
102 template <typename CreateTimeT = Aws::Utils::DateTime>
103 LastDeploymentInfo& WithCreateTime(CreateTimeT&& value) {
104 SetCreateTime(std::forward<CreateTimeT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_deploymentId;
110
112
113 Aws::Utils::DateTime m_endTime{};
114
115 Aws::Utils::DateTime m_createTime{};
116 bool m_deploymentIdHasBeenSet = false;
117 bool m_statusHasBeenSet = false;
118 bool m_endTimeHasBeenSet = false;
119 bool m_createTimeHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace CodeDeploy
124} // namespace Aws
AWS_CODEDEPLOY_API LastDeploymentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
LastDeploymentInfo & WithEndTime(EndTimeT &&value)
LastDeploymentInfo & WithCreateTime(CreateTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
LastDeploymentInfo & WithDeploymentId(DeploymentIdT &&value)
AWS_CODEDEPLOY_API LastDeploymentInfo(Aws::Utils::Json::JsonView jsonValue)
LastDeploymentInfo & WithStatus(DeploymentStatus value)
AWS_CODEDEPLOY_API LastDeploymentInfo()=default
const Aws::Utils::DateTime & GetCreateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue