AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
51 inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
52 inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
53 inline JobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
54 inline JobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
55 inline JobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;}
57
59
62 inline const Aws::String& GetJobId() const{ return m_jobId; }
63 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
64 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
65 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
66 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
67 inline JobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
68 inline JobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
69 inline JobSummary& WithJobId(const char* value) { SetJobId(value); return *this;}
71
73
76 inline const Aws::String& GetJobName() const{ return m_jobName; }
77 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
78 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
79 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
80 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
81 inline JobSummary& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
82 inline JobSummary& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
83 inline JobSummary& WithJobName(const char* value) { SetJobName(value); return *this;}
85
87
95 inline long long GetCreatedAt() const{ return m_createdAt; }
96 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
97 inline void SetCreatedAt(long long value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
98 inline JobSummary& WithCreatedAt(long long value) { SetCreatedAt(value); return *this;}
100
102
105 inline const JobStatus& GetStatus() const{ return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
109 inline JobSummary& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
110 inline JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
112
114
118 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
119 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
120 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
121 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
122 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
123 inline JobSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
124 inline JobSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
125 inline JobSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
127
129
134 inline long long GetStartedAt() const{ return m_startedAt; }
135 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
136 inline void SetStartedAt(long long value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
137 inline JobSummary& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
139
141
146 inline long long GetStoppedAt() const{ return m_stoppedAt; }
147 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
148 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
149 inline JobSummary& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
151
153
157 inline const ContainerSummary& GetContainer() const{ return m_container; }
158 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
159 inline void SetContainer(const ContainerSummary& value) { m_containerHasBeenSet = true; m_container = value; }
160 inline void SetContainer(ContainerSummary&& value) { m_containerHasBeenSet = true; m_container = std::move(value); }
161 inline JobSummary& WithContainer(const ContainerSummary& value) { SetContainer(value); return *this;}
162 inline JobSummary& WithContainer(ContainerSummary&& value) { SetContainer(std::move(value)); return *this;}
164
166
169 inline const ArrayPropertiesSummary& GetArrayProperties() const{ return m_arrayProperties; }
170 inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
171 inline void SetArrayProperties(const ArrayPropertiesSummary& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = value; }
172 inline void SetArrayProperties(ArrayPropertiesSummary&& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = std::move(value); }
173 inline JobSummary& WithArrayProperties(const ArrayPropertiesSummary& value) { SetArrayProperties(value); return *this;}
174 inline JobSummary& WithArrayProperties(ArrayPropertiesSummary&& value) { SetArrayProperties(std::move(value)); return *this;}
176
178
183 inline const NodePropertiesSummary& GetNodeProperties() const{ return m_nodeProperties; }
184 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
185 inline void SetNodeProperties(const NodePropertiesSummary& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = value; }
186 inline void SetNodeProperties(NodePropertiesSummary&& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = std::move(value); }
187 inline JobSummary& WithNodeProperties(const NodePropertiesSummary& value) { SetNodeProperties(value); return *this;}
188 inline JobSummary& WithNodeProperties(NodePropertiesSummary&& value) { SetNodeProperties(std::move(value)); return *this;}
190
192
195 inline const Aws::String& GetJobDefinition() const{ return m_jobDefinition; }
196 inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
197 inline void SetJobDefinition(const Aws::String& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = value; }
198 inline void SetJobDefinition(Aws::String&& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = std::move(value); }
199 inline void SetJobDefinition(const char* value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition.assign(value); }
200 inline JobSummary& WithJobDefinition(const Aws::String& value) { SetJobDefinition(value); return *this;}
201 inline JobSummary& WithJobDefinition(Aws::String&& value) { SetJobDefinition(std::move(value)); return *this;}
202 inline JobSummary& WithJobDefinition(const char* value) { SetJobDefinition(value); return *this;}
204 private:
205
206 Aws::String m_jobArn;
207 bool m_jobArnHasBeenSet = false;
208
209 Aws::String m_jobId;
210 bool m_jobIdHasBeenSet = false;
211
212 Aws::String m_jobName;
213 bool m_jobNameHasBeenSet = false;
214
215 long long m_createdAt;
216 bool m_createdAtHasBeenSet = false;
217
218 JobStatus m_status;
219 bool m_statusHasBeenSet = false;
220
221 Aws::String m_statusReason;
222 bool m_statusReasonHasBeenSet = false;
223
224 long long m_startedAt;
225 bool m_startedAtHasBeenSet = false;
226
227 long long m_stoppedAt;
228 bool m_stoppedAtHasBeenSet = false;
229
230 ContainerSummary m_container;
231 bool m_containerHasBeenSet = false;
232
233 ArrayPropertiesSummary m_arrayProperties;
234 bool m_arrayPropertiesHasBeenSet = false;
235
236 NodePropertiesSummary m_nodeProperties;
237 bool m_nodePropertiesHasBeenSet = false;
238
239 Aws::String m_jobDefinition;
240 bool m_jobDefinitionHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace Batch
245} // namespace Aws
JobSummary & WithStatus(const JobStatus &value)
Definition JobSummary.h:109
long long GetCreatedAt() const
Definition JobSummary.h:95
void SetContainer(const ContainerSummary &value)
Definition JobSummary.h:159
const Aws::String & GetJobArn() const
Definition JobSummary.h:48
void SetJobName(Aws::String &&value)
Definition JobSummary.h:79
void SetStoppedAt(long long value)
Definition JobSummary.h:148
void SetJobDefinition(const Aws::String &value)
Definition JobSummary.h:197
void SetContainer(ContainerSummary &&value)
Definition JobSummary.h:160
JobSummary & WithJobArn(const Aws::String &value)
Definition JobSummary.h:53
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithJobId(Aws::String &&value)
Definition JobSummary.h:68
void SetStatus(const JobStatus &value)
Definition JobSummary.h:107
JobSummary & WithJobArn(Aws::String &&value)
Definition JobSummary.h:54
JobSummary & WithStartedAt(long long value)
Definition JobSummary.h:137
JobSummary & WithJobName(const char *value)
Definition JobSummary.h:83
void SetStatusReason(const Aws::String &value)
Definition JobSummary.h:120
JobSummary & WithStoppedAt(long long value)
Definition JobSummary.h:149
void SetJobArn(Aws::String &&value)
Definition JobSummary.h:51
void SetArrayProperties(const ArrayPropertiesSummary &value)
Definition JobSummary.h:171
JobSummary & WithCreatedAt(long long value)
Definition JobSummary.h:98
const ContainerSummary & GetContainer() const
Definition JobSummary.h:157
JobSummary & WithJobName(Aws::String &&value)
Definition JobSummary.h:82
void SetStatus(JobStatus &&value)
Definition JobSummary.h:108
void SetJobArn(const char *value)
Definition JobSummary.h:52
JobSummary & WithNodeProperties(const NodePropertiesSummary &value)
Definition JobSummary.h:187
JobSummary & WithJobDefinition(Aws::String &&value)
Definition JobSummary.h:201
JobSummary & WithJobDefinition(const char *value)
Definition JobSummary.h:202
void SetNodeProperties(NodePropertiesSummary &&value)
Definition JobSummary.h:186
JobSummary & WithContainer(const ContainerSummary &value)
Definition JobSummary.h:161
JobSummary & WithArrayProperties(ArrayPropertiesSummary &&value)
Definition JobSummary.h:174
JobSummary & WithJobDefinition(const Aws::String &value)
Definition JobSummary.h:200
JobSummary & WithStatusReason(Aws::String &&value)
Definition JobSummary.h:124
void SetJobName(const char *value)
Definition JobSummary.h:80
JobSummary & WithStatusReason(const char *value)
Definition JobSummary.h:125
void SetJobId(const Aws::String &value)
Definition JobSummary.h:64
AWS_BATCH_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJobDefinition(Aws::String &&value)
Definition JobSummary.h:198
JobSummary & WithJobId(const Aws::String &value)
Definition JobSummary.h:67
JobSummary & WithJobId(const char *value)
Definition JobSummary.h:69
bool ArrayPropertiesHasBeenSet() const
Definition JobSummary.h:170
long long GetStartedAt() const
Definition JobSummary.h:134
bool NodePropertiesHasBeenSet() const
Definition JobSummary.h:184
void SetStartedAt(long long value)
Definition JobSummary.h:136
void SetJobId(const char *value)
Definition JobSummary.h:66
JobSummary & WithNodeProperties(NodePropertiesSummary &&value)
Definition JobSummary.h:188
bool StatusReasonHasBeenSet() const
Definition JobSummary.h:119
void SetArrayProperties(ArrayPropertiesSummary &&value)
Definition JobSummary.h:172
const Aws::String & GetJobId() const
Definition JobSummary.h:62
AWS_BATCH_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetJobArn(const Aws::String &value)
Definition JobSummary.h:50
JobSummary & WithJobArn(const char *value)
Definition JobSummary.h:55
void SetJobId(Aws::String &&value)
Definition JobSummary.h:65
const Aws::String & GetJobDefinition() const
Definition JobSummary.h:195
void SetNodeProperties(const NodePropertiesSummary &value)
Definition JobSummary.h:185
void SetStatusReason(const char *value)
Definition JobSummary.h:122
long long GetStoppedAt() const
Definition JobSummary.h:146
JobSummary & WithArrayProperties(const ArrayPropertiesSummary &value)
Definition JobSummary.h:173
const ArrayPropertiesSummary & GetArrayProperties() const
Definition JobSummary.h:169
const Aws::String & GetStatusReason() const
Definition JobSummary.h:118
JobSummary & WithContainer(ContainerSummary &&value)
Definition JobSummary.h:162
JobSummary & WithStatusReason(const Aws::String &value)
Definition JobSummary.h:123
void SetJobName(const Aws::String &value)
Definition JobSummary.h:78
const JobStatus & GetStatus() const
Definition JobSummary.h:105
JobSummary & WithJobName(const Aws::String &value)
Definition JobSummary.h:81
const NodePropertiesSummary & GetNodeProperties() const
Definition JobSummary.h:183
bool JobDefinitionHasBeenSet() const
Definition JobSummary.h:196
void SetStatusReason(Aws::String &&value)
Definition JobSummary.h:121
JobSummary & WithStatus(JobStatus &&value)
Definition JobSummary.h:110
void SetJobDefinition(const char *value)
Definition JobSummary.h:199
void SetCreatedAt(long long value)
Definition JobSummary.h:97
const Aws::String & GetJobName() const
Definition JobSummary.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue