AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ManagedAgentStateChange.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
34 {
35 public:
40
41
45 inline const Aws::String& GetContainerName() const{ return m_containerName; }
46
50 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
51
55 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
56
60 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
61
65 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
66
70 inline ManagedAgentStateChange& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
71
75 inline ManagedAgentStateChange& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
76
80 inline ManagedAgentStateChange& WithContainerName(const char* value) { SetContainerName(value); return *this;}
81
82
86 inline const ManagedAgentName& GetManagedAgentName() const{ return m_managedAgentName; }
87
91 inline bool ManagedAgentNameHasBeenSet() const { return m_managedAgentNameHasBeenSet; }
92
96 inline void SetManagedAgentName(const ManagedAgentName& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = value; }
97
101 inline void SetManagedAgentName(ManagedAgentName&& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = std::move(value); }
102
107
111 inline ManagedAgentStateChange& WithManagedAgentName(ManagedAgentName&& value) { SetManagedAgentName(std::move(value)); return *this;}
112
113
117 inline const Aws::String& GetStatus() const{ return m_status; }
118
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123
127 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
128
132 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
133
137 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
138
142 inline ManagedAgentStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
143
147 inline ManagedAgentStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
148
152 inline ManagedAgentStateChange& WithStatus(const char* value) { SetStatus(value); return *this;}
153
154
158 inline const Aws::String& GetReason() const{ return m_reason; }
159
163 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
164
168 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
169
173 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
174
178 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
179
183 inline ManagedAgentStateChange& WithReason(const Aws::String& value) { SetReason(value); return *this;}
184
188 inline ManagedAgentStateChange& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
189
193 inline ManagedAgentStateChange& WithReason(const char* value) { SetReason(value); return *this;}
194
195 private:
196
197 Aws::String m_containerName;
198 bool m_containerNameHasBeenSet = false;
199
200 ManagedAgentName m_managedAgentName;
201 bool m_managedAgentNameHasBeenSet = false;
202
203 Aws::String m_status;
204 bool m_statusHasBeenSet = false;
205
206 Aws::String m_reason;
207 bool m_reasonHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace ECS
212} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetManagedAgentName(const ManagedAgentName &value)
ManagedAgentStateChange & WithManagedAgentName(const ManagedAgentName &value)
ManagedAgentStateChange & WithStatus(const char *value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedAgentStateChange & WithContainerName(Aws::String &&value)
AWS_ECS_API ManagedAgentStateChange(Aws::Utils::Json::JsonView jsonValue)
ManagedAgentStateChange & WithStatus(Aws::String &&value)
void SetManagedAgentName(ManagedAgentName &&value)
ManagedAgentStateChange & WithReason(Aws::String &&value)
ManagedAgentStateChange & WithManagedAgentName(ManagedAgentName &&value)
void SetContainerName(const Aws::String &value)
ManagedAgentStateChange & WithReason(const Aws::String &value)
ManagedAgentStateChange & WithContainerName(const Aws::String &value)
AWS_ECS_API ManagedAgentStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
const ManagedAgentName & GetManagedAgentName() const
ManagedAgentStateChange & WithContainerName(const char *value)
ManagedAgentStateChange & WithStatus(const Aws::String &value)
ManagedAgentStateChange & WithReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String