AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EksAttemptDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/EksAttemptContainerDetail.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 Batch
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BATCH_API EksAttemptDetail();
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<EksAttemptContainerDetail>& GetContainers() const{ return m_containers; }
48 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
49 inline void SetContainers(const Aws::Vector<EksAttemptContainerDetail>& value) { m_containersHasBeenSet = true; m_containers = value; }
50 inline void SetContainers(Aws::Vector<EksAttemptContainerDetail>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
52 inline EksAttemptDetail& WithContainers(Aws::Vector<EksAttemptContainerDetail>&& value) { SetContainers(std::move(value)); return *this;}
53 inline EksAttemptDetail& AddContainers(const EksAttemptContainerDetail& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
54 inline EksAttemptDetail& AddContainers(EksAttemptContainerDetail&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::Vector<EksAttemptContainerDetail>& GetInitContainers() const{ return m_initContainers; }
62 inline bool InitContainersHasBeenSet() const { return m_initContainersHasBeenSet; }
63 inline void SetInitContainers(const Aws::Vector<EksAttemptContainerDetail>& value) { m_initContainersHasBeenSet = true; m_initContainers = value; }
64 inline void SetInitContainers(Aws::Vector<EksAttemptContainerDetail>&& value) { m_initContainersHasBeenSet = true; m_initContainers = std::move(value); }
67 inline EksAttemptDetail& AddInitContainers(const EksAttemptContainerDetail& value) { m_initContainersHasBeenSet = true; m_initContainers.push_back(value); return *this; }
68 inline EksAttemptDetail& AddInitContainers(EksAttemptContainerDetail&& value) { m_initContainersHasBeenSet = true; m_initContainers.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::String& GetEksClusterArn() const{ return m_eksClusterArn; }
76 inline bool EksClusterArnHasBeenSet() const { return m_eksClusterArnHasBeenSet; }
77 inline void SetEksClusterArn(const Aws::String& value) { m_eksClusterArnHasBeenSet = true; m_eksClusterArn = value; }
78 inline void SetEksClusterArn(Aws::String&& value) { m_eksClusterArnHasBeenSet = true; m_eksClusterArn = std::move(value); }
79 inline void SetEksClusterArn(const char* value) { m_eksClusterArnHasBeenSet = true; m_eksClusterArn.assign(value); }
80 inline EksAttemptDetail& WithEksClusterArn(const Aws::String& value) { SetEksClusterArn(value); return *this;}
81 inline EksAttemptDetail& WithEksClusterArn(Aws::String&& value) { SetEksClusterArn(std::move(value)); return *this;}
82 inline EksAttemptDetail& WithEksClusterArn(const char* value) { SetEksClusterArn(value); return *this;}
84
86
89 inline const Aws::String& GetPodName() const{ return m_podName; }
90 inline bool PodNameHasBeenSet() const { return m_podNameHasBeenSet; }
91 inline void SetPodName(const Aws::String& value) { m_podNameHasBeenSet = true; m_podName = value; }
92 inline void SetPodName(Aws::String&& value) { m_podNameHasBeenSet = true; m_podName = std::move(value); }
93 inline void SetPodName(const char* value) { m_podNameHasBeenSet = true; m_podName.assign(value); }
94 inline EksAttemptDetail& WithPodName(const Aws::String& value) { SetPodName(value); return *this;}
95 inline EksAttemptDetail& WithPodName(Aws::String&& value) { SetPodName(std::move(value)); return *this;}
96 inline EksAttemptDetail& WithPodName(const char* value) { SetPodName(value); return *this;}
98
100
103 inline const Aws::String& GetPodNamespace() const{ return m_podNamespace; }
104 inline bool PodNamespaceHasBeenSet() const { return m_podNamespaceHasBeenSet; }
105 inline void SetPodNamespace(const Aws::String& value) { m_podNamespaceHasBeenSet = true; m_podNamespace = value; }
106 inline void SetPodNamespace(Aws::String&& value) { m_podNamespaceHasBeenSet = true; m_podNamespace = std::move(value); }
107 inline void SetPodNamespace(const char* value) { m_podNamespaceHasBeenSet = true; m_podNamespace.assign(value); }
108 inline EksAttemptDetail& WithPodNamespace(const Aws::String& value) { SetPodNamespace(value); return *this;}
109 inline EksAttemptDetail& WithPodNamespace(Aws::String&& value) { SetPodNamespace(std::move(value)); return *this;}
110 inline EksAttemptDetail& WithPodNamespace(const char* value) { SetPodNamespace(value); return *this;}
112
114
117 inline const Aws::String& GetNodeName() const{ return m_nodeName; }
118 inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
119 inline void SetNodeName(const Aws::String& value) { m_nodeNameHasBeenSet = true; m_nodeName = value; }
120 inline void SetNodeName(Aws::String&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::move(value); }
121 inline void SetNodeName(const char* value) { m_nodeNameHasBeenSet = true; m_nodeName.assign(value); }
122 inline EksAttemptDetail& WithNodeName(const Aws::String& value) { SetNodeName(value); return *this;}
123 inline EksAttemptDetail& WithNodeName(Aws::String&& value) { SetNodeName(std::move(value)); return *this;}
124 inline EksAttemptDetail& WithNodeName(const char* value) { SetNodeName(value); return *this;}
126
128
133 inline long long GetStartedAt() const{ return m_startedAt; }
134 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
135 inline void SetStartedAt(long long value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
136 inline EksAttemptDetail& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
138
140
145 inline long long GetStoppedAt() const{ return m_stoppedAt; }
146 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
147 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
148 inline EksAttemptDetail& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
150
152
156 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
157 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
158 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
159 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
160 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
161 inline EksAttemptDetail& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
162 inline EksAttemptDetail& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
163 inline EksAttemptDetail& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
165 private:
166
168 bool m_containersHasBeenSet = false;
169
171 bool m_initContainersHasBeenSet = false;
172
173 Aws::String m_eksClusterArn;
174 bool m_eksClusterArnHasBeenSet = false;
175
176 Aws::String m_podName;
177 bool m_podNameHasBeenSet = false;
178
179 Aws::String m_podNamespace;
180 bool m_podNamespaceHasBeenSet = false;
181
182 Aws::String m_nodeName;
183 bool m_nodeNameHasBeenSet = false;
184
185 long long m_startedAt;
186 bool m_startedAtHasBeenSet = false;
187
188 long long m_stoppedAt;
189 bool m_stoppedAtHasBeenSet = false;
190
191 Aws::String m_statusReason;
192 bool m_statusReasonHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace Batch
197} // namespace Aws
EksAttemptDetail & WithStartedAt(long long value)
void SetNodeName(Aws::String &&value)
EksAttemptDetail & WithEksClusterArn(const Aws::String &value)
void SetNodeName(const Aws::String &value)
EksAttemptDetail & AddInitContainers(EksAttemptContainerDetail &&value)
EksAttemptDetail & WithStatusReason(const char *value)
EksAttemptDetail & WithPodName(Aws::String &&value)
void SetPodName(Aws::String &&value)
const Aws::String & GetPodNamespace() const
EksAttemptDetail & AddInitContainers(const EksAttemptContainerDetail &value)
EksAttemptDetail & WithStoppedAt(long long value)
const Aws::String & GetPodName() const
EksAttemptDetail & AddContainers(const EksAttemptContainerDetail &value)
void SetPodNamespace(Aws::String &&value)
void SetStatusReason(Aws::String &&value)
const Aws::String & GetStatusReason() const
void SetPodName(const Aws::String &value)
void SetEksClusterArn(Aws::String &&value)
EksAttemptDetail & WithInitContainers(Aws::Vector< EksAttemptContainerDetail > &&value)
EksAttemptDetail & WithPodNamespace(const char *value)
EksAttemptDetail & WithPodNamespace(Aws::String &&value)
EksAttemptDetail & WithStatusReason(Aws::String &&value)
void SetInitContainers(const Aws::Vector< EksAttemptContainerDetail > &value)
void SetEksClusterArn(const char *value)
const Aws::String & GetEksClusterArn() const
const Aws::Vector< EksAttemptContainerDetail > & GetContainers() const
EksAttemptDetail & WithEksClusterArn(const char *value)
EksAttemptDetail & AddContainers(EksAttemptContainerDetail &&value)
EksAttemptDetail & WithContainers(Aws::Vector< EksAttemptContainerDetail > &&value)
EksAttemptDetail & WithNodeName(const char *value)
EksAttemptDetail & WithPodName(const Aws::String &value)
EksAttemptDetail & WithNodeName(const Aws::String &value)
void SetContainers(Aws::Vector< EksAttemptContainerDetail > &&value)
void SetStatusReason(const char *value)
AWS_BATCH_API EksAttemptDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContainers(const Aws::Vector< EksAttemptContainerDetail > &value)
EksAttemptDetail & WithInitContainers(const Aws::Vector< EksAttemptContainerDetail > &value)
const Aws::String & GetNodeName() const
EksAttemptDetail & WithStatusReason(const Aws::String &value)
EksAttemptDetail & WithEksClusterArn(Aws::String &&value)
void SetPodNamespace(const char *value)
const Aws::Vector< EksAttemptContainerDetail > & GetInitContainers() const
EksAttemptDetail & WithNodeName(Aws::String &&value)
void SetInitContainers(Aws::Vector< EksAttemptContainerDetail > &&value)
EksAttemptDetail & WithPodName(const char *value)
AWS_BATCH_API EksAttemptDetail(Aws::Utils::Json::JsonView jsonValue)
void SetEksClusterArn(const Aws::String &value)
EksAttemptDetail & WithContainers(const Aws::Vector< EksAttemptContainerDetail > &value)
void SetPodNamespace(const Aws::String &value)
void SetStatusReason(const Aws::String &value)
EksAttemptDetail & WithPodNamespace(const Aws::String &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue