AWS SDK for C++  1.9.153
AWS SDK for C++
ContainerStateChange.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetContainerName() const{ return m_containerName; }
47 
51  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
52 
56  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
57 
61  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
62 
66  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
67 
71  inline ContainerStateChange& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
72 
76  inline ContainerStateChange& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
77 
81  inline ContainerStateChange& WithContainerName(const char* value) { SetContainerName(value); return *this;}
82 
83 
87  inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
88 
92  inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
93 
97  inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
98 
102  inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
103 
107  inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
108 
112  inline ContainerStateChange& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
113 
117  inline ContainerStateChange& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
118 
122  inline ContainerStateChange& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
123 
124 
128  inline const Aws::String& GetRuntimeId() const{ return m_runtimeId; }
129 
133  inline bool RuntimeIdHasBeenSet() const { return m_runtimeIdHasBeenSet; }
134 
138  inline void SetRuntimeId(const Aws::String& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = value; }
139 
143  inline void SetRuntimeId(Aws::String&& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = std::move(value); }
144 
148  inline void SetRuntimeId(const char* value) { m_runtimeIdHasBeenSet = true; m_runtimeId.assign(value); }
149 
153  inline ContainerStateChange& WithRuntimeId(const Aws::String& value) { SetRuntimeId(value); return *this;}
154 
158  inline ContainerStateChange& WithRuntimeId(Aws::String&& value) { SetRuntimeId(std::move(value)); return *this;}
159 
163  inline ContainerStateChange& WithRuntimeId(const char* value) { SetRuntimeId(value); return *this;}
164 
165 
170  inline int GetExitCode() const{ return m_exitCode; }
171 
176  inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
177 
182  inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
183 
188  inline ContainerStateChange& WithExitCode(int value) { SetExitCode(value); return *this;}
189 
190 
194  inline const Aws::Vector<NetworkBinding>& GetNetworkBindings() const{ return m_networkBindings; }
195 
199  inline bool NetworkBindingsHasBeenSet() const { return m_networkBindingsHasBeenSet; }
200 
204  inline void SetNetworkBindings(const Aws::Vector<NetworkBinding>& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = value; }
205 
209  inline void SetNetworkBindings(Aws::Vector<NetworkBinding>&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = std::move(value); }
210 
214  inline ContainerStateChange& WithNetworkBindings(const Aws::Vector<NetworkBinding>& value) { SetNetworkBindings(value); return *this;}
215 
219  inline ContainerStateChange& WithNetworkBindings(Aws::Vector<NetworkBinding>&& value) { SetNetworkBindings(std::move(value)); return *this;}
220 
224  inline ContainerStateChange& AddNetworkBindings(const NetworkBinding& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; }
225 
229  inline ContainerStateChange& AddNetworkBindings(NetworkBinding&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(std::move(value)); return *this; }
230 
231 
235  inline const Aws::String& GetReason() const{ return m_reason; }
236 
240  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
241 
245  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
246 
250  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
251 
255  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
256 
260  inline ContainerStateChange& WithReason(const Aws::String& value) { SetReason(value); return *this;}
261 
265  inline ContainerStateChange& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
266 
270  inline ContainerStateChange& WithReason(const char* value) { SetReason(value); return *this;}
271 
272 
276  inline const Aws::String& GetStatus() const{ return m_status; }
277 
281  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
282 
286  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
287 
291  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
292 
296  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
297 
301  inline ContainerStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
302 
306  inline ContainerStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
307 
311  inline ContainerStateChange& WithStatus(const char* value) { SetStatus(value); return *this;}
312 
313  private:
314 
315  Aws::String m_containerName;
316  bool m_containerNameHasBeenSet;
317 
318  Aws::String m_imageDigest;
319  bool m_imageDigestHasBeenSet;
320 
321  Aws::String m_runtimeId;
322  bool m_runtimeIdHasBeenSet;
323 
324  int m_exitCode;
325  bool m_exitCodeHasBeenSet;
326 
327  Aws::Vector<NetworkBinding> m_networkBindings;
328  bool m_networkBindingsHasBeenSet;
329 
330  Aws::String m_reason;
331  bool m_reasonHasBeenSet;
332 
333  Aws::String m_status;
334  bool m_statusHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace ECS
339 } // namespace Aws
Aws::ECS::Model::ContainerStateChange::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: ContainerStateChange.h:61
Aws::ECS::Model::ContainerStateChange::WithRuntimeId
ContainerStateChange & WithRuntimeId(const Aws::String &value)
Definition: ContainerStateChange.h:153
Aws::ECS::Model::ContainerStateChange
Definition: ContainerStateChange.h:35
Aws::ECS::Model::ContainerStateChange::SetStatus
void SetStatus(const Aws::String &value)
Definition: ContainerStateChange.h:286
Aws::ECS::Model::ContainerStateChange::SetImageDigest
void SetImageDigest(const char *value)
Definition: ContainerStateChange.h:107
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ContainerStateChange::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: ContainerStateChange.h:51
Aws::ECS::Model::ContainerStateChange::ContainerStateChange
ContainerStateChange(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ContainerStateChange::NetworkBindingsHasBeenSet
bool NetworkBindingsHasBeenSet() const
Definition: ContainerStateChange.h:199
Aws::ECS::Model::ContainerStateChange::operator=
ContainerStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ContainerStateChange::SetNetworkBindings
void SetNetworkBindings(const Aws::Vector< NetworkBinding > &value)
Definition: ContainerStateChange.h:204
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::ContainerStateChange::RuntimeIdHasBeenSet
bool RuntimeIdHasBeenSet() const
Definition: ContainerStateChange.h:133
Aws::ECS::Model::ContainerStateChange::SetNetworkBindings
void SetNetworkBindings(Aws::Vector< NetworkBinding > &&value)
Definition: ContainerStateChange.h:209
Aws::ECS::Model::ContainerStateChange::WithReason
ContainerStateChange & WithReason(Aws::String &&value)
Definition: ContainerStateChange.h:265
Aws::ECS::Model::ContainerStateChange::WithImageDigest
ContainerStateChange & WithImageDigest(const Aws::String &value)
Definition: ContainerStateChange.h:112
Aws::ECS::Model::ContainerStateChange::SetExitCode
void SetExitCode(int value)
Definition: ContainerStateChange.h:182
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ContainerStateChange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::ContainerStateChange::WithStatus
ContainerStateChange & WithStatus(const Aws::String &value)
Definition: ContainerStateChange.h:301
Aws::ECS::Model::ContainerStateChange::WithContainerName
ContainerStateChange & WithContainerName(Aws::String &&value)
Definition: ContainerStateChange.h:76
Aws::ECS::Model::ContainerStateChange::WithContainerName
ContainerStateChange & WithContainerName(const char *value)
Definition: ContainerStateChange.h:81
Aws::ECS::Model::ContainerStateChange::GetExitCode
int GetExitCode() const
Definition: ContainerStateChange.h:170
Aws::ECS::Model::ContainerStateChange::GetRuntimeId
const Aws::String & GetRuntimeId() const
Definition: ContainerStateChange.h:128
Aws::ECS::Model::ContainerStateChange::SetImageDigest
void SetImageDigest(Aws::String &&value)
Definition: ContainerStateChange.h:102
Aws::ECS::Model::ContainerStateChange::SetStatus
void SetStatus(Aws::String &&value)
Definition: ContainerStateChange.h:291
Aws::ECS::Model::ContainerStateChange::SetContainerName
void SetContainerName(const char *value)
Definition: ContainerStateChange.h:66
Aws::ECS::Model::ContainerStateChange::WithNetworkBindings
ContainerStateChange & WithNetworkBindings(Aws::Vector< NetworkBinding > &&value)
Definition: ContainerStateChange.h:219
Aws::ECS::Model::ContainerStateChange::GetContainerName
const Aws::String & GetContainerName() const
Definition: ContainerStateChange.h:46
NetworkBinding.h
Aws::ECS::Model::ContainerStateChange::WithExitCode
ContainerStateChange & WithExitCode(int value)
Definition: ContainerStateChange.h:188
Aws::ECS::Model::ContainerStateChange::AddNetworkBindings
ContainerStateChange & AddNetworkBindings(const NetworkBinding &value)
Definition: ContainerStateChange.h:224
Aws::ECS::Model::ContainerStateChange::SetRuntimeId
void SetRuntimeId(const Aws::String &value)
Definition: ContainerStateChange.h:138
Aws::ECS::Model::ContainerStateChange::SetReason
void SetReason(const char *value)
Definition: ContainerStateChange.h:255
Aws::ECS::Model::ContainerStateChange::ContainerStateChange
ContainerStateChange()
Aws::ECS::Model::ContainerStateChange::WithRuntimeId
ContainerStateChange & WithRuntimeId(const char *value)
Definition: ContainerStateChange.h:163
Aws::ECS::Model::ContainerStateChange::SetRuntimeId
void SetRuntimeId(const char *value)
Definition: ContainerStateChange.h:148
Aws::ECS::Model::ContainerStateChange::SetImageDigest
void SetImageDigest(const Aws::String &value)
Definition: ContainerStateChange.h:97
Aws::ECS::Model::ContainerStateChange::GetStatus
const Aws::String & GetStatus() const
Definition: ContainerStateChange.h:276
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ContainerStateChange::WithImageDigest
ContainerStateChange & WithImageDigest(Aws::String &&value)
Definition: ContainerStateChange.h:117
Aws::ECS::Model::ContainerStateChange::GetReason
const Aws::String & GetReason() const
Definition: ContainerStateChange.h:235
Aws::ECS::Model::ContainerStateChange::GetNetworkBindings
const Aws::Vector< NetworkBinding > & GetNetworkBindings() const
Definition: ContainerStateChange.h:194
Aws::ECS::Model::ContainerStateChange::WithContainerName
ContainerStateChange & WithContainerName(const Aws::String &value)
Definition: ContainerStateChange.h:71
Aws::ECS::Model::ContainerStateChange::WithStatus
ContainerStateChange & WithStatus(const char *value)
Definition: ContainerStateChange.h:311
Aws::ECS::Model::ContainerStateChange::ExitCodeHasBeenSet
bool ExitCodeHasBeenSet() const
Definition: ContainerStateChange.h:176
Aws::ECS::Model::ContainerStateChange::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: ContainerStateChange.h:240
Aws::ECS::Model::ContainerStateChange::WithRuntimeId
ContainerStateChange & WithRuntimeId(Aws::String &&value)
Definition: ContainerStateChange.h:158
Aws::ECS::Model::ContainerStateChange::WithReason
ContainerStateChange & WithReason(const char *value)
Definition: ContainerStateChange.h:270
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ContainerStateChange::WithImageDigest
ContainerStateChange & WithImageDigest(const char *value)
Definition: ContainerStateChange.h:122
Aws::ECS::Model::ContainerStateChange::SetReason
void SetReason(const Aws::String &value)
Definition: ContainerStateChange.h:245
Aws::ECS::Model::ContainerStateChange::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: ContainerStateChange.h:56
Aws::ECS::Model::ContainerStateChange::SetRuntimeId
void SetRuntimeId(Aws::String &&value)
Definition: ContainerStateChange.h:143
Aws::ECS::Model::ContainerStateChange::SetReason
void SetReason(Aws::String &&value)
Definition: ContainerStateChange.h:250
Aws::ECS::Model::ContainerStateChange::AddNetworkBindings
ContainerStateChange & AddNetworkBindings(NetworkBinding &&value)
Definition: ContainerStateChange.h:229
Aws::ECS::Model::ContainerStateChange::WithNetworkBindings
ContainerStateChange & WithNetworkBindings(const Aws::Vector< NetworkBinding > &value)
Definition: ContainerStateChange.h:214
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ContainerStateChange::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ContainerStateChange.h:281
Aws::ECS::Model::ContainerStateChange::WithReason
ContainerStateChange & WithReason(const Aws::String &value)
Definition: ContainerStateChange.h:260
Aws::ECS::Model::ContainerStateChange::SetStatus
void SetStatus(const char *value)
Definition: ContainerStateChange.h:296
Aws::ECS::Model::NetworkBinding
Definition: NetworkBinding.h:37
Aws::ECS::Model::ContainerStateChange::GetImageDigest
const Aws::String & GetImageDigest() const
Definition: ContainerStateChange.h:87
ECS_EXPORTS.h
Aws::ECS::Model::ContainerStateChange::WithStatus
ContainerStateChange & WithStatus(Aws::String &&value)
Definition: ContainerStateChange.h:306
Aws::ECS::Model::ContainerStateChange::ImageDigestHasBeenSet
bool ImageDigestHasBeenSet() const
Definition: ContainerStateChange.h:92