AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
ServiceJobSummary.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/LatestServiceJobAttempt.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/ServiceJobType.h>
11#include <aws/batch/model/ServiceJobStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Batch
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BATCH_API ServiceJobSummary() = default;
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const LatestServiceJobAttempt& GetLatestAttempt() const { return m_latestAttempt; }
48 inline bool LatestAttemptHasBeenSet() const { return m_latestAttemptHasBeenSet; }
49 template<typename LatestAttemptT = LatestServiceJobAttempt>
50 void SetLatestAttempt(LatestAttemptT&& value) { m_latestAttemptHasBeenSet = true; m_latestAttempt = std::forward<LatestAttemptT>(value); }
51 template<typename LatestAttemptT = LatestServiceJobAttempt>
52 ServiceJobSummary& WithLatestAttempt(LatestAttemptT&& value) { SetLatestAttempt(std::forward<LatestAttemptT>(value)); return *this;}
54
56
60 inline long long GetCreatedAt() const { return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 inline void SetCreatedAt(long long value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
63 inline ServiceJobSummary& WithCreatedAt(long long value) { SetCreatedAt(value); return *this;}
65
67
70 inline const Aws::String& GetJobArn() const { return m_jobArn; }
71 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
72 template<typename JobArnT = Aws::String>
73 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
74 template<typename JobArnT = Aws::String>
75 ServiceJobSummary& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
77
79
82 inline const Aws::String& GetJobId() const { return m_jobId; }
83 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
84 template<typename JobIdT = Aws::String>
85 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
86 template<typename JobIdT = Aws::String>
87 ServiceJobSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
89
91
94 inline const Aws::String& GetJobName() const { return m_jobName; }
95 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
96 template<typename JobNameT = Aws::String>
97 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
98 template<typename JobNameT = Aws::String>
99 ServiceJobSummary& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
101
103
107 inline ServiceJobType GetServiceJobType() const { return m_serviceJobType; }
108 inline bool ServiceJobTypeHasBeenSet() const { return m_serviceJobTypeHasBeenSet; }
109 inline void SetServiceJobType(ServiceJobType value) { m_serviceJobTypeHasBeenSet = true; m_serviceJobType = value; }
112
114
117 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
118 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
119 template<typename ShareIdentifierT = Aws::String>
120 void SetShareIdentifier(ShareIdentifierT&& value) { m_shareIdentifierHasBeenSet = true; m_shareIdentifier = std::forward<ShareIdentifierT>(value); }
121 template<typename ShareIdentifierT = Aws::String>
122 ServiceJobSummary& WithShareIdentifier(ShareIdentifierT&& value) { SetShareIdentifier(std::forward<ShareIdentifierT>(value)); return *this;}
124
126
129 inline ServiceJobStatus GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(ServiceJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
132 inline ServiceJobSummary& WithStatus(ServiceJobStatus value) { SetStatus(value); return *this;}
134
136
140 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
141 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
142 template<typename StatusReasonT = Aws::String>
143 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
144 template<typename StatusReasonT = Aws::String>
145 ServiceJobSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
147
149
153 inline long long GetStartedAt() const { return m_startedAt; }
154 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
155 inline void SetStartedAt(long long value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
156 inline ServiceJobSummary& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
158
160
164 inline long long GetStoppedAt() const { return m_stoppedAt; }
165 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
166 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
167 inline ServiceJobSummary& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
169 private:
170
171 LatestServiceJobAttempt m_latestAttempt;
172 bool m_latestAttemptHasBeenSet = false;
173
174 long long m_createdAt{0};
175 bool m_createdAtHasBeenSet = false;
176
177 Aws::String m_jobArn;
178 bool m_jobArnHasBeenSet = false;
179
180 Aws::String m_jobId;
181 bool m_jobIdHasBeenSet = false;
182
183 Aws::String m_jobName;
184 bool m_jobNameHasBeenSet = false;
185
186 ServiceJobType m_serviceJobType{ServiceJobType::NOT_SET};
187 bool m_serviceJobTypeHasBeenSet = false;
188
189 Aws::String m_shareIdentifier;
190 bool m_shareIdentifierHasBeenSet = false;
191
193 bool m_statusHasBeenSet = false;
194
195 Aws::String m_statusReason;
196 bool m_statusReasonHasBeenSet = false;
197
198 long long m_startedAt{0};
199 bool m_startedAtHasBeenSet = false;
200
201 long long m_stoppedAt{0};
202 bool m_stoppedAtHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Batch
207} // namespace Aws
void SetShareIdentifier(ShareIdentifierT &&value)
ServiceJobSummary & WithCreatedAt(long long value)
ServiceJobSummary & WithJobName(JobNameT &&value)
void SetServiceJobType(ServiceJobType value)
AWS_BATCH_API ServiceJobSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetJobName() const
void SetLatestAttempt(LatestAttemptT &&value)
ServiceJobSummary & WithJobArn(JobArnT &&value)
ServiceJobSummary & WithJobId(JobIdT &&value)
void SetStatusReason(StatusReasonT &&value)
ServiceJobSummary & WithStartedAt(long long value)
const Aws::String & GetStatusReason() const
const Aws::String & GetJobId() const
const Aws::String & GetShareIdentifier() const
void SetStatus(ServiceJobStatus value)
const Aws::String & GetJobArn() const
ServiceJobSummary & WithLatestAttempt(LatestAttemptT &&value)
ServiceJobSummary & WithShareIdentifier(ShareIdentifierT &&value)
ServiceJobSummary & WithStoppedAt(long long value)
ServiceJobSummary & WithStatus(ServiceJobStatus value)
ServiceJobSummary & WithStatusReason(StatusReasonT &&value)
AWS_BATCH_API ServiceJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ServiceJobSummary()=default
ServiceJobSummary & WithServiceJobType(ServiceJobType value)
const LatestServiceJobAttempt & GetLatestAttempt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue