AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DaemonDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/DaemonRevisionDetail.h>
12#include <aws/ecs/model/DaemonStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS {
24namespace Model {
25
32 public:
33 AWS_ECS_API DaemonDetail() = default;
37
39
42 inline const Aws::String& GetDaemonArn() const { return m_daemonArn; }
43 inline bool DaemonArnHasBeenSet() const { return m_daemonArnHasBeenSet; }
44 template <typename DaemonArnT = Aws::String>
45 void SetDaemonArn(DaemonArnT&& value) {
46 m_daemonArnHasBeenSet = true;
47 m_daemonArn = std::forward<DaemonArnT>(value);
48 }
49 template <typename DaemonArnT = Aws::String>
50 DaemonDetail& WithDaemonArn(DaemonArnT&& value) {
51 SetDaemonArn(std::forward<DaemonArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
62 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
63 template <typename ClusterArnT = Aws::String>
64 void SetClusterArn(ClusterArnT&& value) {
65 m_clusterArnHasBeenSet = true;
66 m_clusterArn = std::forward<ClusterArnT>(value);
67 }
68 template <typename ClusterArnT = Aws::String>
69 DaemonDetail& WithClusterArn(ClusterArnT&& value) {
70 SetClusterArn(std::forward<ClusterArnT>(value));
71 return *this;
72 }
74
76
79 inline DaemonStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(DaemonStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
96 inline const Aws::Vector<DaemonRevisionDetail>& GetCurrentRevisions() const { return m_currentRevisions; }
97 inline bool CurrentRevisionsHasBeenSet() const { return m_currentRevisionsHasBeenSet; }
98 template <typename CurrentRevisionsT = Aws::Vector<DaemonRevisionDetail>>
99 void SetCurrentRevisions(CurrentRevisionsT&& value) {
100 m_currentRevisionsHasBeenSet = true;
101 m_currentRevisions = std::forward<CurrentRevisionsT>(value);
102 }
103 template <typename CurrentRevisionsT = Aws::Vector<DaemonRevisionDetail>>
104 DaemonDetail& WithCurrentRevisions(CurrentRevisionsT&& value) {
105 SetCurrentRevisions(std::forward<CurrentRevisionsT>(value));
106 return *this;
107 }
108 template <typename CurrentRevisionsT = DaemonRevisionDetail>
109 DaemonDetail& AddCurrentRevisions(CurrentRevisionsT&& value) {
110 m_currentRevisionsHasBeenSet = true;
111 m_currentRevisions.emplace_back(std::forward<CurrentRevisionsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
121 inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
122 template <typename DeploymentArnT = Aws::String>
123 void SetDeploymentArn(DeploymentArnT&& value) {
124 m_deploymentArnHasBeenSet = true;
125 m_deploymentArn = std::forward<DeploymentArnT>(value);
126 }
127 template <typename DeploymentArnT = Aws::String>
128 DaemonDetail& WithDeploymentArn(DeploymentArnT&& value) {
129 SetDeploymentArn(std::forward<DeploymentArnT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
139 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
140 template <typename CreatedAtT = Aws::Utils::DateTime>
141 void SetCreatedAt(CreatedAtT&& value) {
142 m_createdAtHasBeenSet = true;
143 m_createdAt = std::forward<CreatedAtT>(value);
144 }
145 template <typename CreatedAtT = Aws::Utils::DateTime>
146 DaemonDetail& WithCreatedAt(CreatedAtT&& value) {
147 SetCreatedAt(std::forward<CreatedAtT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
157 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
158 template <typename UpdatedAtT = Aws::Utils::DateTime>
159 void SetUpdatedAt(UpdatedAtT&& value) {
160 m_updatedAtHasBeenSet = true;
161 m_updatedAt = std::forward<UpdatedAtT>(value);
162 }
163 template <typename UpdatedAtT = Aws::Utils::DateTime>
164 DaemonDetail& WithUpdatedAt(UpdatedAtT&& value) {
165 SetUpdatedAt(std::forward<UpdatedAtT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_daemonArn;
171
172 Aws::String m_clusterArn;
173
175
176 Aws::Vector<DaemonRevisionDetail> m_currentRevisions;
177
178 Aws::String m_deploymentArn;
179
180 Aws::Utils::DateTime m_createdAt{};
181
182 Aws::Utils::DateTime m_updatedAt{};
183 bool m_daemonArnHasBeenSet = false;
184 bool m_clusterArnHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_currentRevisionsHasBeenSet = false;
187 bool m_deploymentArnHasBeenSet = false;
188 bool m_createdAtHasBeenSet = false;
189 bool m_updatedAtHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace ECS
194} // namespace Aws
const Aws::String & GetDeploymentArn() const
DaemonDetail & WithStatus(DaemonStatus value)
void SetDaemonArn(DaemonArnT &&value)
DaemonDetail & WithCurrentRevisions(CurrentRevisionsT &&value)
DaemonDetail & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetClusterArn(ClusterArnT &&value)
AWS_ECS_API DaemonDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
DaemonDetail & WithDaemonArn(DaemonArnT &&value)
const Aws::Vector< DaemonRevisionDetail > & GetCurrentRevisions() const
const Aws::String & GetClusterArn() const
AWS_ECS_API DaemonDetail()=default
void SetDeploymentArn(DeploymentArnT &&value)
DaemonDetail & WithDeploymentArn(DeploymentArnT &&value)
DaemonDetail & WithClusterArn(ClusterArnT &&value)
DaemonStatus GetStatus() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetCurrentRevisions(CurrentRevisionsT &&value)
void SetStatus(DaemonStatus value)
DaemonDetail & AddCurrentRevisions(CurrentRevisionsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DaemonDetail & WithUpdatedAt(UpdatedAtT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDaemonArn() const
bool CurrentRevisionsHasBeenSet() const
AWS_ECS_API DaemonDetail(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue