AWS SDK for C++

AWS SDK for C++ Version 1.11.908

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/endusermessaging/EndUserMessaging_EXPORTS.h>
11#include <aws/endusermessaging/model/JobResource.h>
12#include <aws/endusermessaging/model/JobStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EndUserMessaging {
24namespace Model {
25
33 public:
34 AWS_ENDUSERMESSAGING_API JobSummary() = default;
35 AWS_ENDUSERMESSAGING_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ENDUSERMESSAGING_API JobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetJobId() const { return m_jobId; }
45 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
46 template <typename JobIdT = Aws::String>
47 void SetJobId(JobIdT&& value) {
48 m_jobIdHasBeenSet = true;
49 m_jobId = std::forward<JobIdT>(value);
50 }
51 template <typename JobIdT = Aws::String>
52 JobSummary& WithJobId(JobIdT&& value) {
53 SetJobId(std::forward<JobIdT>(value));
54 return *this;
55 }
57
59
62 inline JobStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(JobStatus value) {
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
69 SetStatus(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetOperationType() const { return m_operationType; }
79 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
80 template <typename OperationTypeT = Aws::String>
81 void SetOperationType(OperationTypeT&& value) {
82 m_operationTypeHasBeenSet = true;
83 m_operationType = std::forward<OperationTypeT>(value);
84 }
85 template <typename OperationTypeT = Aws::String>
86 JobSummary& WithOperationType(OperationTypeT&& value) {
87 SetOperationType(std::forward<OperationTypeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 JobSummary& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
115 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
116 template <typename UpdatedAtT = Aws::Utils::DateTime>
117 void SetUpdatedAt(UpdatedAtT&& value) {
118 m_updatedAtHasBeenSet = true;
119 m_updatedAt = std::forward<UpdatedAtT>(value);
120 }
121 template <typename UpdatedAtT = Aws::Utils::DateTime>
122 JobSummary& WithUpdatedAt(UpdatedAtT&& value) {
123 SetUpdatedAt(std::forward<UpdatedAtT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetBrandProfileId() const { return m_brandProfileId; }
134 inline bool BrandProfileIdHasBeenSet() const { return m_brandProfileIdHasBeenSet; }
135 template <typename BrandProfileIdT = Aws::String>
136 void SetBrandProfileId(BrandProfileIdT&& value) {
137 m_brandProfileIdHasBeenSet = true;
138 m_brandProfileId = std::forward<BrandProfileIdT>(value);
139 }
140 template <typename BrandProfileIdT = Aws::String>
141 JobSummary& WithBrandProfileId(BrandProfileIdT&& value) {
142 SetBrandProfileId(std::forward<BrandProfileIdT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
153 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
154 template <typename ErrorCodeT = Aws::String>
155 void SetErrorCode(ErrorCodeT&& value) {
156 m_errorCodeHasBeenSet = true;
157 m_errorCode = std::forward<ErrorCodeT>(value);
158 }
159 template <typename ErrorCodeT = Aws::String>
160 JobSummary& WithErrorCode(ErrorCodeT&& value) {
161 SetErrorCode(std::forward<ErrorCodeT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
172 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
173 template <typename ErrorMessageT = Aws::String>
174 void SetErrorMessage(ErrorMessageT&& value) {
175 m_errorMessageHasBeenSet = true;
176 m_errorMessage = std::forward<ErrorMessageT>(value);
177 }
178 template <typename ErrorMessageT = Aws::String>
179 JobSummary& WithErrorMessage(ErrorMessageT&& value) {
180 SetErrorMessage(std::forward<ErrorMessageT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Vector<JobResource>& GetResources() const { return m_resources; }
190 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
191 template <typename ResourcesT = Aws::Vector<JobResource>>
192 void SetResources(ResourcesT&& value) {
193 m_resourcesHasBeenSet = true;
194 m_resources = std::forward<ResourcesT>(value);
195 }
196 template <typename ResourcesT = Aws::Vector<JobResource>>
197 JobSummary& WithResources(ResourcesT&& value) {
198 SetResources(std::forward<ResourcesT>(value));
199 return *this;
200 }
201 template <typename ResourcesT = JobResource>
202 JobSummary& AddResources(ResourcesT&& value) {
203 m_resourcesHasBeenSet = true;
204 m_resources.emplace_back(std::forward<ResourcesT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_jobId;
210
212
213 Aws::String m_operationType;
214
215 Aws::Utils::DateTime m_createdAt{};
216
217 Aws::Utils::DateTime m_updatedAt{};
218
219 Aws::String m_brandProfileId;
220
221 Aws::String m_errorCode;
222
223 Aws::String m_errorMessage;
224
225 Aws::Vector<JobResource> m_resources;
226 bool m_jobIdHasBeenSet = false;
227 bool m_statusHasBeenSet = false;
228 bool m_operationTypeHasBeenSet = false;
229 bool m_createdAtHasBeenSet = false;
230 bool m_updatedAtHasBeenSet = false;
231 bool m_brandProfileIdHasBeenSet = false;
232 bool m_errorCodeHasBeenSet = false;
233 bool m_errorMessageHasBeenSet = false;
234 bool m_resourcesHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace EndUserMessaging
239} // namespace Aws
void SetResources(ResourcesT &&value)
Definition JobSummary.h:192
const Aws::String & GetJobId() const
Definition JobSummary.h:44
void SetOperationType(OperationTypeT &&value)
Definition JobSummary.h:81
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:68
const Aws::String & GetErrorMessage() const
Definition JobSummary.h:171
AWS_ENDUSERMESSAGING_API JobSummary()=default
AWS_ENDUSERMESSAGING_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:99
JobSummary & WithBrandProfileId(BrandProfileIdT &&value)
Definition JobSummary.h:141
const Aws::String & GetErrorCode() const
Definition JobSummary.h:152
const Aws::String & GetBrandProfileId() const
Definition JobSummary.h:133
AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithErrorMessage(ErrorMessageT &&value)
Definition JobSummary.h:179
const Aws::Vector< JobResource > & GetResources() const
Definition JobSummary.h:189
const Aws::String & GetOperationType() const
Definition JobSummary.h:78
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:52
void SetErrorCode(ErrorCodeT &&value)
Definition JobSummary.h:155
void SetBrandProfileId(BrandProfileIdT &&value)
Definition JobSummary.h:136
JobSummary & WithResources(ResourcesT &&value)
Definition JobSummary.h:197
JobSummary & WithOperationType(OperationTypeT &&value)
Definition JobSummary.h:86
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition JobSummary.h:114
void SetErrorMessage(ErrorMessageT &&value)
Definition JobSummary.h:174
JobSummary & WithUpdatedAt(UpdatedAtT &&value)
Definition JobSummary.h:122
AWS_ENDUSERMESSAGING_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobSummary & WithErrorCode(ErrorCodeT &&value)
Definition JobSummary.h:160
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobSummary.h:96
void SetUpdatedAt(UpdatedAtT &&value)
Definition JobSummary.h:117
JobSummary & WithCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:104
JobSummary & AddResources(ResourcesT &&value)
Definition JobSummary.h:202
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue