AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ContainersT = Aws::Vector<EksAttemptContainerDetail>>
50 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
51 template<typename ContainersT = Aws::Vector<EksAttemptContainerDetail>>
52 EksAttemptDetail& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
53 template<typename ContainersT = EksAttemptContainerDetail>
54 EksAttemptDetail& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(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 template<typename InitContainersT = Aws::Vector<EksAttemptContainerDetail>>
64 void SetInitContainers(InitContainersT&& value) { m_initContainersHasBeenSet = true; m_initContainers = std::forward<InitContainersT>(value); }
65 template<typename InitContainersT = Aws::Vector<EksAttemptContainerDetail>>
66 EksAttemptDetail& WithInitContainers(InitContainersT&& value) { SetInitContainers(std::forward<InitContainersT>(value)); return *this;}
67 template<typename InitContainersT = EksAttemptContainerDetail>
68 EksAttemptDetail& AddInitContainers(InitContainersT&& value) { m_initContainersHasBeenSet = true; m_initContainers.emplace_back(std::forward<InitContainersT>(value)); return *this; }
70
72
75 inline const Aws::String& GetEksClusterArn() const { return m_eksClusterArn; }
76 inline bool EksClusterArnHasBeenSet() const { return m_eksClusterArnHasBeenSet; }
77 template<typename EksClusterArnT = Aws::String>
78 void SetEksClusterArn(EksClusterArnT&& value) { m_eksClusterArnHasBeenSet = true; m_eksClusterArn = std::forward<EksClusterArnT>(value); }
79 template<typename EksClusterArnT = Aws::String>
80 EksAttemptDetail& WithEksClusterArn(EksClusterArnT&& value) { SetEksClusterArn(std::forward<EksClusterArnT>(value)); return *this;}
82
84
87 inline const Aws::String& GetPodName() const { return m_podName; }
88 inline bool PodNameHasBeenSet() const { return m_podNameHasBeenSet; }
89 template<typename PodNameT = Aws::String>
90 void SetPodName(PodNameT&& value) { m_podNameHasBeenSet = true; m_podName = std::forward<PodNameT>(value); }
91 template<typename PodNameT = Aws::String>
92 EksAttemptDetail& WithPodName(PodNameT&& value) { SetPodName(std::forward<PodNameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetPodNamespace() const { return m_podNamespace; }
100 inline bool PodNamespaceHasBeenSet() const { return m_podNamespaceHasBeenSet; }
101 template<typename PodNamespaceT = Aws::String>
102 void SetPodNamespace(PodNamespaceT&& value) { m_podNamespaceHasBeenSet = true; m_podNamespace = std::forward<PodNamespaceT>(value); }
103 template<typename PodNamespaceT = Aws::String>
104 EksAttemptDetail& WithPodNamespace(PodNamespaceT&& value) { SetPodNamespace(std::forward<PodNamespaceT>(value)); return *this;}
106
108
111 inline const Aws::String& GetNodeName() const { return m_nodeName; }
112 inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
113 template<typename NodeNameT = Aws::String>
114 void SetNodeName(NodeNameT&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::forward<NodeNameT>(value); }
115 template<typename NodeNameT = Aws::String>
116 EksAttemptDetail& WithNodeName(NodeNameT&& value) { SetNodeName(std::forward<NodeNameT>(value)); return *this;}
118
120
125 inline long long GetStartedAt() const { return m_startedAt; }
126 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
127 inline void SetStartedAt(long long value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
128 inline EksAttemptDetail& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
130
132
137 inline long long GetStoppedAt() const { return m_stoppedAt; }
138 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
139 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
140 inline EksAttemptDetail& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
142
144
148 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
149 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
150 template<typename StatusReasonT = Aws::String>
151 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
152 template<typename StatusReasonT = Aws::String>
153 EksAttemptDetail& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
155 private:
156
158 bool m_containersHasBeenSet = false;
159
161 bool m_initContainersHasBeenSet = false;
162
163 Aws::String m_eksClusterArn;
164 bool m_eksClusterArnHasBeenSet = false;
165
166 Aws::String m_podName;
167 bool m_podNameHasBeenSet = false;
168
169 Aws::String m_podNamespace;
170 bool m_podNamespaceHasBeenSet = false;
171
172 Aws::String m_nodeName;
173 bool m_nodeNameHasBeenSet = false;
174
175 long long m_startedAt{0};
176 bool m_startedAtHasBeenSet = false;
177
178 long long m_stoppedAt{0};
179 bool m_stoppedAtHasBeenSet = false;
180
181 Aws::String m_statusReason;
182 bool m_statusReasonHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace Batch
187} // 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