AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerStateChange.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/NetworkBinding.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 ECS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECS_API ContainerStateChange();
41
42
44
47 inline const Aws::String& GetContainerName() const{ return m_containerName; }
48 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
49 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
50 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
51 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
52 inline ContainerStateChange& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
53 inline ContainerStateChange& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
54 inline ContainerStateChange& WithContainerName(const char* value) { SetContainerName(value); return *this;}
56
58
61 inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
62 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
63 inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
64 inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
65 inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
66 inline ContainerStateChange& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
67 inline ContainerStateChange& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
68 inline ContainerStateChange& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
70
72
75 inline const Aws::String& GetRuntimeId() const{ return m_runtimeId; }
76 inline bool RuntimeIdHasBeenSet() const { return m_runtimeIdHasBeenSet; }
77 inline void SetRuntimeId(const Aws::String& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = value; }
78 inline void SetRuntimeId(Aws::String&& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = std::move(value); }
79 inline void SetRuntimeId(const char* value) { m_runtimeIdHasBeenSet = true; m_runtimeId.assign(value); }
80 inline ContainerStateChange& WithRuntimeId(const Aws::String& value) { SetRuntimeId(value); return *this;}
81 inline ContainerStateChange& WithRuntimeId(Aws::String&& value) { SetRuntimeId(std::move(value)); return *this;}
82 inline ContainerStateChange& WithRuntimeId(const char* value) { SetRuntimeId(value); return *this;}
84
86
90 inline int GetExitCode() const{ return m_exitCode; }
91 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
92 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
93 inline ContainerStateChange& WithExitCode(int value) { SetExitCode(value); return *this;}
95
97
100 inline const Aws::Vector<NetworkBinding>& GetNetworkBindings() const{ return m_networkBindings; }
101 inline bool NetworkBindingsHasBeenSet() const { return m_networkBindingsHasBeenSet; }
102 inline void SetNetworkBindings(const Aws::Vector<NetworkBinding>& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = value; }
103 inline void SetNetworkBindings(Aws::Vector<NetworkBinding>&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = std::move(value); }
106 inline ContainerStateChange& AddNetworkBindings(const NetworkBinding& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; }
107 inline ContainerStateChange& AddNetworkBindings(NetworkBinding&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(std::move(value)); return *this; }
109
111
114 inline const Aws::String& GetReason() const{ return m_reason; }
115 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
116 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
117 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
118 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
119 inline ContainerStateChange& WithReason(const Aws::String& value) { SetReason(value); return *this;}
120 inline ContainerStateChange& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
121 inline ContainerStateChange& WithReason(const char* value) { SetReason(value); return *this;}
123
125
128 inline const Aws::String& GetStatus() const{ return m_status; }
129 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
131 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
132 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
133 inline ContainerStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
134 inline ContainerStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
135 inline ContainerStateChange& WithStatus(const char* value) { SetStatus(value); return *this;}
137 private:
138
139 Aws::String m_containerName;
140 bool m_containerNameHasBeenSet = false;
141
142 Aws::String m_imageDigest;
143 bool m_imageDigestHasBeenSet = false;
144
145 Aws::String m_runtimeId;
146 bool m_runtimeIdHasBeenSet = false;
147
148 int m_exitCode;
149 bool m_exitCodeHasBeenSet = false;
150
151 Aws::Vector<NetworkBinding> m_networkBindings;
152 bool m_networkBindingsHasBeenSet = false;
153
154 Aws::String m_reason;
155 bool m_reasonHasBeenSet = false;
156
157 Aws::String m_status;
158 bool m_statusHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace ECS
163} // namespace Aws
ContainerStateChange & WithContainerName(Aws::String &&value)
ContainerStateChange & WithImageDigest(const char *value)
ContainerStateChange & WithStatus(const Aws::String &value)
ContainerStateChange & WithImageDigest(const Aws::String &value)
ContainerStateChange & WithImageDigest(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerStateChange & WithReason(Aws::String &&value)
void SetNetworkBindings(Aws::Vector< NetworkBinding > &&value)
const Aws::String & GetImageDigest() const
const Aws::String & GetRuntimeId() const
const Aws::String & GetContainerName() const
ContainerStateChange & WithContainerName(const Aws::String &value)
void SetContainerName(const Aws::String &value)
void SetRuntimeId(const Aws::String &value)
ContainerStateChange & AddNetworkBindings(NetworkBinding &&value)
ContainerStateChange & WithReason(const char *value)
AWS_ECS_API ContainerStateChange(Aws::Utils::Json::JsonView jsonValue)
ContainerStateChange & WithRuntimeId(const Aws::String &value)
ContainerStateChange & WithReason(const Aws::String &value)
ContainerStateChange & WithStatus(const char *value)
AWS_ECS_API ContainerStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const Aws::String &value)
ContainerStateChange & WithRuntimeId(const char *value)
ContainerStateChange & WithExitCode(int value)
ContainerStateChange & WithNetworkBindings(const Aws::Vector< NetworkBinding > &value)
ContainerStateChange & WithStatus(Aws::String &&value)
ContainerStateChange & AddNetworkBindings(const NetworkBinding &value)
ContainerStateChange & WithRuntimeId(Aws::String &&value)
const Aws::Vector< NetworkBinding > & GetNetworkBindings() const
void SetImageDigest(const Aws::String &value)
void SetNetworkBindings(const Aws::Vector< NetworkBinding > &value)
ContainerStateChange & WithContainerName(const char *value)
ContainerStateChange & WithNetworkBindings(Aws::Vector< NetworkBinding > &&value)
void SetReason(const Aws::String &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