AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
50 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
51 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
52 inline LastDeploymentInfo& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
53 inline LastDeploymentInfo& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
54 inline LastDeploymentInfo& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
56
58
61 inline const DeploymentStatus& GetStatus() const{ return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(const DeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
64 inline void SetStatus(DeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
65 inline LastDeploymentInfo& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;}
66 inline LastDeploymentInfo& WithStatus(DeploymentStatus&& value) { SetStatus(std::move(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
75 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
76 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
77 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
78 inline LastDeploymentInfo& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
79 inline LastDeploymentInfo& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
81
83
87 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
88 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
89 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
90 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
91 inline LastDeploymentInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
92 inline LastDeploymentInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_deploymentId;
97 bool m_deploymentIdHasBeenSet = false;
98
99 DeploymentStatus m_status;
100 bool m_statusHasBeenSet = false;
101
102 Aws::Utils::DateTime m_endTime;
103 bool m_endTimeHasBeenSet = false;
104
105 Aws::Utils::DateTime m_createTime;
106 bool m_createTimeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CodeDeploy
111} // namespace Aws
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::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
Aws::Utils::Json::JsonValue JsonValue