AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LastDeploymentInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/DeploymentStatus.h>
10#include <aws/core/utils/DateTime.h>
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:
37 AWS_CODEDEPLOY_API LastDeploymentInfo() = default;
38 AWS_CODEDEPLOY_API LastDeploymentInfo(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
48 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
49 template<typename DeploymentIdT = Aws::String>
50 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
51 template<typename DeploymentIdT = Aws::String>
52 LastDeploymentInfo& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
54
56
59 inline DeploymentStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(DeploymentStatus value) { m_statusHasBeenSet = true; m_status = value; }
62 inline LastDeploymentInfo& WithStatus(DeploymentStatus value) { SetStatus(value); return *this;}
64
66
70 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
71 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
72 template<typename EndTimeT = Aws::Utils::DateTime>
73 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
74 template<typename EndTimeT = Aws::Utils::DateTime>
75 LastDeploymentInfo& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
77
79
83 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
84 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
85 template<typename CreateTimeT = Aws::Utils::DateTime>
86 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
87 template<typename CreateTimeT = Aws::Utils::DateTime>
88 LastDeploymentInfo& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
90 private:
91
92 Aws::String m_deploymentId;
93 bool m_deploymentIdHasBeenSet = false;
94
96 bool m_statusHasBeenSet = false;
97
98 Aws::Utils::DateTime m_endTime{};
99 bool m_endTimeHasBeenSet = false;
100
101 Aws::Utils::DateTime m_createTime{};
102 bool m_createTimeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CodeDeploy
107} // 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