AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EksAttemptDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/EksAttemptContainerDetail.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch {
22namespace Model {
23
31 public:
32 AWS_BATCH_API EksAttemptDetail() = default;
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<EksAttemptContainerDetail>& GetContainers() const { return m_containers; }
42 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
43 template <typename ContainersT = Aws::Vector<EksAttemptContainerDetail>>
44 void SetContainers(ContainersT&& value) {
45 m_containersHasBeenSet = true;
46 m_containers = std::forward<ContainersT>(value);
47 }
48 template <typename ContainersT = Aws::Vector<EksAttemptContainerDetail>>
49 EksAttemptDetail& WithContainers(ContainersT&& value) {
50 SetContainers(std::forward<ContainersT>(value));
51 return *this;
52 }
53 template <typename ContainersT = EksAttemptContainerDetail>
54 EksAttemptDetail& AddContainers(ContainersT&& value) {
55 m_containersHasBeenSet = true;
56 m_containers.emplace_back(std::forward<ContainersT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<EksAttemptContainerDetail>& GetInitContainers() const { return m_initContainers; }
66 inline bool InitContainersHasBeenSet() const { return m_initContainersHasBeenSet; }
67 template <typename InitContainersT = Aws::Vector<EksAttemptContainerDetail>>
68 void SetInitContainers(InitContainersT&& value) {
69 m_initContainersHasBeenSet = true;
70 m_initContainers = std::forward<InitContainersT>(value);
71 }
72 template <typename InitContainersT = Aws::Vector<EksAttemptContainerDetail>>
73 EksAttemptDetail& WithInitContainers(InitContainersT&& value) {
74 SetInitContainers(std::forward<InitContainersT>(value));
75 return *this;
76 }
77 template <typename InitContainersT = EksAttemptContainerDetail>
78 EksAttemptDetail& AddInitContainers(InitContainersT&& value) {
79 m_initContainersHasBeenSet = true;
80 m_initContainers.emplace_back(std::forward<InitContainersT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetEksClusterArn() const { return m_eksClusterArn; }
90 inline bool EksClusterArnHasBeenSet() const { return m_eksClusterArnHasBeenSet; }
91 template <typename EksClusterArnT = Aws::String>
92 void SetEksClusterArn(EksClusterArnT&& value) {
93 m_eksClusterArnHasBeenSet = true;
94 m_eksClusterArn = std::forward<EksClusterArnT>(value);
95 }
96 template <typename EksClusterArnT = Aws::String>
97 EksAttemptDetail& WithEksClusterArn(EksClusterArnT&& value) {
98 SetEksClusterArn(std::forward<EksClusterArnT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetPodName() const { return m_podName; }
108 inline bool PodNameHasBeenSet() const { return m_podNameHasBeenSet; }
109 template <typename PodNameT = Aws::String>
110 void SetPodName(PodNameT&& value) {
111 m_podNameHasBeenSet = true;
112 m_podName = std::forward<PodNameT>(value);
113 }
114 template <typename PodNameT = Aws::String>
115 EksAttemptDetail& WithPodName(PodNameT&& value) {
116 SetPodName(std::forward<PodNameT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetPodNamespace() const { return m_podNamespace; }
126 inline bool PodNamespaceHasBeenSet() const { return m_podNamespaceHasBeenSet; }
127 template <typename PodNamespaceT = Aws::String>
128 void SetPodNamespace(PodNamespaceT&& value) {
129 m_podNamespaceHasBeenSet = true;
130 m_podNamespace = std::forward<PodNamespaceT>(value);
131 }
132 template <typename PodNamespaceT = Aws::String>
133 EksAttemptDetail& WithPodNamespace(PodNamespaceT&& value) {
134 SetPodNamespace(std::forward<PodNamespaceT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetNodeName() const { return m_nodeName; }
144 inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
145 template <typename NodeNameT = Aws::String>
146 void SetNodeName(NodeNameT&& value) {
147 m_nodeNameHasBeenSet = true;
148 m_nodeName = std::forward<NodeNameT>(value);
149 }
150 template <typename NodeNameT = Aws::String>
151 EksAttemptDetail& WithNodeName(NodeNameT&& value) {
152 SetNodeName(std::forward<NodeNameT>(value));
153 return *this;
154 }
156
158
163 inline long long GetStartedAt() const { return m_startedAt; }
164 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
165 inline void SetStartedAt(long long value) {
166 m_startedAtHasBeenSet = true;
167 m_startedAt = value;
168 }
169 inline EksAttemptDetail& WithStartedAt(long long value) {
170 SetStartedAt(value);
171 return *this;
172 }
174
176
181 inline long long GetStoppedAt() const { return m_stoppedAt; }
182 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
183 inline void SetStoppedAt(long long value) {
184 m_stoppedAtHasBeenSet = true;
185 m_stoppedAt = value;
186 }
187 inline EksAttemptDetail& WithStoppedAt(long long value) {
188 SetStoppedAt(value);
189 return *this;
190 }
192
194
198 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
199 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
200 template <typename StatusReasonT = Aws::String>
201 void SetStatusReason(StatusReasonT&& value) {
202 m_statusReasonHasBeenSet = true;
203 m_statusReason = std::forward<StatusReasonT>(value);
204 }
205 template <typename StatusReasonT = Aws::String>
206 EksAttemptDetail& WithStatusReason(StatusReasonT&& value) {
207 SetStatusReason(std::forward<StatusReasonT>(value));
208 return *this;
209 }
211 private:
213
215
216 Aws::String m_eksClusterArn;
217
218 Aws::String m_podName;
219
220 Aws::String m_podNamespace;
221
222 Aws::String m_nodeName;
223
224 long long m_startedAt{0};
225
226 long long m_stoppedAt{0};
227
228 Aws::String m_statusReason;
229 bool m_containersHasBeenSet = false;
230 bool m_initContainersHasBeenSet = false;
231 bool m_eksClusterArnHasBeenSet = false;
232 bool m_podNameHasBeenSet = false;
233 bool m_podNamespaceHasBeenSet = false;
234 bool m_nodeNameHasBeenSet = false;
235 bool m_startedAtHasBeenSet = false;
236 bool m_stoppedAtHasBeenSet = false;
237 bool m_statusReasonHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace Batch
242} // namespace Aws
EksAttemptDetail & WithEksClusterArn(EksClusterArnT &&value)
EksAttemptDetail & WithStartedAt(long long value)
EksAttemptDetail & AddContainers(ContainersT &&value)
EksAttemptDetail & WithInitContainers(InitContainersT &&value)
const Aws::String & GetPodNamespace() const
EksAttemptDetail & WithStoppedAt(long long value)
const Aws::String & GetPodName() const
void SetStatusReason(StatusReasonT &&value)
const Aws::String & GetStatusReason() const
void SetPodNamespace(PodNamespaceT &&value)
AWS_BATCH_API EksAttemptDetail()=default
void SetContainers(ContainersT &&value)
const Aws::String & GetEksClusterArn() const
const Aws::Vector< EksAttemptContainerDetail > & GetContainers() const
EksAttemptDetail & WithPodName(PodNameT &&value)
EksAttemptDetail & WithStatusReason(StatusReasonT &&value)
EksAttemptDetail & AddInitContainers(InitContainersT &&value)
AWS_BATCH_API EksAttemptDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInitContainers(InitContainersT &&value)
const Aws::String & GetNodeName() const
EksAttemptDetail & WithNodeName(NodeNameT &&value)
EksAttemptDetail & WithPodNamespace(PodNamespaceT &&value)
const Aws::Vector< EksAttemptContainerDetail > & GetInitContainers() const
void SetEksClusterArn(EksClusterArnT &&value)
AWS_BATCH_API EksAttemptDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksAttemptDetail & WithContainers(ContainersT &&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