AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/JobStatus.h>
10#include <aws/batch/model/ContainerSummary.h>
11#include <aws/batch/model/ArrayPropertiesSummary.h>
12#include <aws/batch/model/NodePropertiesSummary.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Batch
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_BATCH_API JobSummary() = default;
39 AWS_BATCH_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetJobArn() const { return m_jobArn; }
49 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
50 template<typename JobArnT = Aws::String>
51 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
52 template<typename JobArnT = Aws::String>
53 JobSummary& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetJobId() const { return m_jobId; }
61 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
62 template<typename JobIdT = Aws::String>
63 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
64 template<typename JobIdT = Aws::String>
65 JobSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetJobName() const { return m_jobName; }
73 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
74 template<typename JobNameT = Aws::String>
75 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
76 template<typename JobNameT = Aws::String>
77 JobSummary& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
79
81
89 inline long long GetCreatedAt() const { return m_createdAt; }
90 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 inline void SetCreatedAt(long long value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
92 inline JobSummary& WithCreatedAt(long long value) { SetCreatedAt(value); return *this;}
94
96
99 inline JobStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
102 inline JobSummary& WithStatus(JobStatus value) { SetStatus(value); return *this;}
104
106
110 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
111 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
112 template<typename StatusReasonT = Aws::String>
113 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
114 template<typename StatusReasonT = Aws::String>
115 JobSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
117
119
124 inline long long GetStartedAt() const { return m_startedAt; }
125 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
126 inline void SetStartedAt(long long value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
127 inline JobSummary& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
129
131
136 inline long long GetStoppedAt() const { return m_stoppedAt; }
137 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
138 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
139 inline JobSummary& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
141
143
147 inline const ContainerSummary& GetContainer() const { return m_container; }
148 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
149 template<typename ContainerT = ContainerSummary>
150 void SetContainer(ContainerT&& value) { m_containerHasBeenSet = true; m_container = std::forward<ContainerT>(value); }
151 template<typename ContainerT = ContainerSummary>
152 JobSummary& WithContainer(ContainerT&& value) { SetContainer(std::forward<ContainerT>(value)); return *this;}
154
156
159 inline const ArrayPropertiesSummary& GetArrayProperties() const { return m_arrayProperties; }
160 inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
161 template<typename ArrayPropertiesT = ArrayPropertiesSummary>
162 void SetArrayProperties(ArrayPropertiesT&& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = std::forward<ArrayPropertiesT>(value); }
163 template<typename ArrayPropertiesT = ArrayPropertiesSummary>
164 JobSummary& WithArrayProperties(ArrayPropertiesT&& value) { SetArrayProperties(std::forward<ArrayPropertiesT>(value)); return *this;}
166
168
173 inline const NodePropertiesSummary& GetNodeProperties() const { return m_nodeProperties; }
174 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
175 template<typename NodePropertiesT = NodePropertiesSummary>
176 void SetNodeProperties(NodePropertiesT&& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = std::forward<NodePropertiesT>(value); }
177 template<typename NodePropertiesT = NodePropertiesSummary>
178 JobSummary& WithNodeProperties(NodePropertiesT&& value) { SetNodeProperties(std::forward<NodePropertiesT>(value)); return *this;}
180
182
185 inline const Aws::String& GetJobDefinition() const { return m_jobDefinition; }
186 inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
187 template<typename JobDefinitionT = Aws::String>
188 void SetJobDefinition(JobDefinitionT&& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = std::forward<JobDefinitionT>(value); }
189 template<typename JobDefinitionT = Aws::String>
190 JobSummary& WithJobDefinition(JobDefinitionT&& value) { SetJobDefinition(std::forward<JobDefinitionT>(value)); return *this;}
192 private:
193
194 Aws::String m_jobArn;
195 bool m_jobArnHasBeenSet = false;
196
197 Aws::String m_jobId;
198 bool m_jobIdHasBeenSet = false;
199
200 Aws::String m_jobName;
201 bool m_jobNameHasBeenSet = false;
202
203 long long m_createdAt{0};
204 bool m_createdAtHasBeenSet = false;
205
207 bool m_statusHasBeenSet = false;
208
209 Aws::String m_statusReason;
210 bool m_statusReasonHasBeenSet = false;
211
212 long long m_startedAt{0};
213 bool m_startedAtHasBeenSet = false;
214
215 long long m_stoppedAt{0};
216 bool m_stoppedAtHasBeenSet = false;
217
218 ContainerSummary m_container;
219 bool m_containerHasBeenSet = false;
220
221 ArrayPropertiesSummary m_arrayProperties;
222 bool m_arrayPropertiesHasBeenSet = false;
223
224 NodePropertiesSummary m_nodeProperties;
225 bool m_nodePropertiesHasBeenSet = false;
226
227 Aws::String m_jobDefinition;
228 bool m_jobDefinitionHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace Batch
233} // namespace Aws
void SetJobName(JobNameT &&value)
Definition JobSummary.h:75
long long GetCreatedAt() const
Definition JobSummary.h:89
const Aws::String & GetJobArn() const
Definition JobSummary.h:48
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:51
void SetStoppedAt(long long value)
Definition JobSummary.h:138
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithJobName(JobNameT &&value)
Definition JobSummary.h:77
void SetArrayProperties(ArrayPropertiesT &&value)
Definition JobSummary.h:162
JobSummary & WithStartedAt(long long value)
Definition JobSummary.h:127
void SetJobDefinition(JobDefinitionT &&value)
Definition JobSummary.h:188
void SetJobId(JobIdT &&value)
Definition JobSummary.h:63
JobSummary & WithStoppedAt(long long value)
Definition JobSummary.h:139
JobSummary & WithArrayProperties(ArrayPropertiesT &&value)
Definition JobSummary.h:164
JobSummary & WithCreatedAt(long long value)
Definition JobSummary.h:92
const ContainerSummary & GetContainer() const
Definition JobSummary.h:147
JobSummary & WithNodeProperties(NodePropertiesT &&value)
Definition JobSummary.h:178
JobSummary & WithJobDefinition(JobDefinitionT &&value)
Definition JobSummary.h:190
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:65
JobStatus GetStatus() const
Definition JobSummary.h:99
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:53
AWS_BATCH_API JobSummary()=default
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:102
AWS_BATCH_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNodeProperties(NodePropertiesT &&value)
Definition JobSummary.h:176
JobSummary & WithContainer(ContainerT &&value)
Definition JobSummary.h:152
void SetStatus(JobStatus value)
Definition JobSummary.h:101
bool ArrayPropertiesHasBeenSet() const
Definition JobSummary.h:160
long long GetStartedAt() const
Definition JobSummary.h:124
void SetStatusReason(StatusReasonT &&value)
Definition JobSummary.h:113
bool NodePropertiesHasBeenSet() const
Definition JobSummary.h:174
void SetStartedAt(long long value)
Definition JobSummary.h:126
bool StatusReasonHasBeenSet() const
Definition JobSummary.h:111
const Aws::String & GetJobId() const
Definition JobSummary.h:60
AWS_BATCH_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetContainer(ContainerT &&value)
Definition JobSummary.h:150
const Aws::String & GetJobDefinition() const
Definition JobSummary.h:185
long long GetStoppedAt() const
Definition JobSummary.h:136
const ArrayPropertiesSummary & GetArrayProperties() const
Definition JobSummary.h:159
const Aws::String & GetStatusReason() const
Definition JobSummary.h:110
JobSummary & WithStatusReason(StatusReasonT &&value)
Definition JobSummary.h:115
const NodePropertiesSummary & GetNodeProperties() const
Definition JobSummary.h:173
bool JobDefinitionHasBeenSet() const
Definition JobSummary.h:186
void SetCreatedAt(long long value)
Definition JobSummary.h:91
const Aws::String & GetJobName() const
Definition JobSummary.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue