AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ManagedAgent.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 ECS
24{
25namespace Model
26{
27
35 {
36 public:
41
42
46 inline const Aws::Utils::DateTime& GetLastStartedAt() const{ return m_lastStartedAt; }
47
51 inline bool LastStartedAtHasBeenSet() const { return m_lastStartedAtHasBeenSet; }
52
56 inline void SetLastStartedAt(const Aws::Utils::DateTime& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = value; }
57
61 inline void SetLastStartedAt(Aws::Utils::DateTime&& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = std::move(value); }
62
66 inline ManagedAgent& WithLastStartedAt(const Aws::Utils::DateTime& value) { SetLastStartedAt(value); return *this;}
67
71 inline ManagedAgent& WithLastStartedAt(Aws::Utils::DateTime&& value) { SetLastStartedAt(std::move(value)); return *this;}
72
73
78 inline const ManagedAgentName& GetName() const{ return m_name; }
79
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85
90 inline void SetName(const ManagedAgentName& value) { m_nameHasBeenSet = true; m_name = value; }
91
96 inline void SetName(ManagedAgentName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97
102 inline ManagedAgent& WithName(const ManagedAgentName& value) { SetName(value); return *this;}
103
108 inline ManagedAgent& WithName(ManagedAgentName&& value) { SetName(std::move(value)); return *this;}
109
110
114 inline const Aws::String& GetReason() const{ return m_reason; }
115
119 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
120
124 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
125
129 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
130
134 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
135
139 inline ManagedAgent& WithReason(const Aws::String& value) { SetReason(value); return *this;}
140
144 inline ManagedAgent& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
145
149 inline ManagedAgent& WithReason(const char* value) { SetReason(value); return *this;}
150
151
155 inline const Aws::String& GetLastStatus() const{ return m_lastStatus; }
156
160 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
161
165 inline void SetLastStatus(const Aws::String& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
166
170 inline void SetLastStatus(Aws::String&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); }
171
175 inline void SetLastStatus(const char* value) { m_lastStatusHasBeenSet = true; m_lastStatus.assign(value); }
176
180 inline ManagedAgent& WithLastStatus(const Aws::String& value) { SetLastStatus(value); return *this;}
181
185 inline ManagedAgent& WithLastStatus(Aws::String&& value) { SetLastStatus(std::move(value)); return *this;}
186
190 inline ManagedAgent& WithLastStatus(const char* value) { SetLastStatus(value); return *this;}
191
192 private:
193
194 Aws::Utils::DateTime m_lastStartedAt;
195 bool m_lastStartedAtHasBeenSet = false;
196
197 ManagedAgentName m_name;
198 bool m_nameHasBeenSet = false;
199
200 Aws::String m_reason;
201 bool m_reasonHasBeenSet = false;
202
203 Aws::String m_lastStatus;
204 bool m_lastStatusHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace ECS
209} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
bool LastStartedAtHasBeenSet() const
Definition: ManagedAgent.h:51
AWS_ECS_API ManagedAgent & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedAgent & WithName(ManagedAgentName &&value)
Definition: ManagedAgent.h:108
ManagedAgent & WithName(const ManagedAgentName &value)
Definition: ManagedAgent.h:102
void SetLastStartedAt(const Aws::Utils::DateTime &value)
Definition: ManagedAgent.h:56
const Aws::Utils::DateTime & GetLastStartedAt() const
Definition: ManagedAgent.h:46
void SetLastStatus(const char *value)
Definition: ManagedAgent.h:175
const Aws::String & GetReason() const
Definition: ManagedAgent.h:114
void SetLastStatus(Aws::String &&value)
Definition: ManagedAgent.h:170
ManagedAgent & WithLastStatus(const Aws::String &value)
Definition: ManagedAgent.h:180
AWS_ECS_API ManagedAgent(Aws::Utils::Json::JsonView jsonValue)
ManagedAgent & WithLastStartedAt(const Aws::Utils::DateTime &value)
Definition: ManagedAgent.h:66
ManagedAgent & WithReason(const char *value)
Definition: ManagedAgent.h:149
ManagedAgent & WithLastStartedAt(Aws::Utils::DateTime &&value)
Definition: ManagedAgent.h:71
void SetLastStartedAt(Aws::Utils::DateTime &&value)
Definition: ManagedAgent.h:61
ManagedAgent & WithReason(const Aws::String &value)
Definition: ManagedAgent.h:139
void SetReason(const Aws::String &value)
Definition: ManagedAgent.h:124
ManagedAgent & WithLastStatus(Aws::String &&value)
Definition: ManagedAgent.h:185
const ManagedAgentName & GetName() const
Definition: ManagedAgent.h:78
void SetLastStatus(const Aws::String &value)
Definition: ManagedAgent.h:165
void SetName(ManagedAgentName &&value)
Definition: ManagedAgent.h:96
const Aws::String & GetLastStatus() const
Definition: ManagedAgent.h:155
ManagedAgent & WithLastStatus(const char *value)
Definition: ManagedAgent.h:190
void SetName(const ManagedAgentName &value)
Definition: ManagedAgent.h:90
void SetReason(const char *value)
Definition: ManagedAgent.h:134
ManagedAgent & WithReason(Aws::String &&value)
Definition: ManagedAgent.h:144
void SetReason(Aws::String &&value)
Definition: ManagedAgent.h:129
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String