AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
JobEntry.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/dataexchange/DataExchange_EXPORTS.h>
11#include <aws/dataexchange/model/AssetConfiguration.h>
12#include <aws/dataexchange/model/JobError.h>
13#include <aws/dataexchange/model/ResponseDetails.h>
14#include <aws/dataexchange/model/State.h>
15#include <aws/dataexchange/model/Type.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DataExchange {
27namespace Model {
28
37class JobEntry {
38 public:
39 AWS_DATAEXCHANGE_API JobEntry() = default;
40 AWS_DATAEXCHANGE_API JobEntry(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATAEXCHANGE_API JobEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template <typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) {
52 m_arnHasBeenSet = true;
53 m_arn = std::forward<ArnT>(value);
54 }
55 template <typename ArnT = Aws::String>
56 JobEntry& WithArn(ArnT&& value) {
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
67 inline const AssetConfiguration& GetAssetConfiguration() const { return m_assetConfiguration; }
68 inline bool AssetConfigurationHasBeenSet() const { return m_assetConfigurationHasBeenSet; }
69 template <typename AssetConfigurationT = AssetConfiguration>
70 void SetAssetConfiguration(AssetConfigurationT&& value) {
71 m_assetConfigurationHasBeenSet = true;
72 m_assetConfiguration = std::forward<AssetConfigurationT>(value);
73 }
74 template <typename AssetConfigurationT = AssetConfiguration>
75 JobEntry& WithAssetConfiguration(AssetConfigurationT&& value) {
76 SetAssetConfiguration(std::forward<AssetConfigurationT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
86 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
87 template <typename CreatedAtT = Aws::Utils::DateTime>
88 void SetCreatedAt(CreatedAtT&& value) {
89 m_createdAtHasBeenSet = true;
90 m_createdAt = std::forward<CreatedAtT>(value);
91 }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
93 JobEntry& WithCreatedAt(CreatedAtT&& value) {
94 SetCreatedAt(std::forward<CreatedAtT>(value));
95 return *this;
96 }
98
100
104 inline const ResponseDetails& GetDetails() const { return m_details; }
105 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
106 template <typename DetailsT = ResponseDetails>
107 void SetDetails(DetailsT&& value) {
108 m_detailsHasBeenSet = true;
109 m_details = std::forward<DetailsT>(value);
110 }
111 template <typename DetailsT = ResponseDetails>
112 JobEntry& WithDetails(DetailsT&& value) {
113 SetDetails(std::forward<DetailsT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<JobError>& GetErrors() const { return m_errors; }
123 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
124 template <typename ErrorsT = Aws::Vector<JobError>>
125 void SetErrors(ErrorsT&& value) {
126 m_errorsHasBeenSet = true;
127 m_errors = std::forward<ErrorsT>(value);
128 }
129 template <typename ErrorsT = Aws::Vector<JobError>>
130 JobEntry& WithErrors(ErrorsT&& value) {
131 SetErrors(std::forward<ErrorsT>(value));
132 return *this;
133 }
134 template <typename ErrorsT = JobError>
135 JobEntry& AddErrors(ErrorsT&& value) {
136 m_errorsHasBeenSet = true;
137 m_errors.emplace_back(std::forward<ErrorsT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetId() const { return m_id; }
147 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
148 template <typename IdT = Aws::String>
149 void SetId(IdT&& value) {
150 m_idHasBeenSet = true;
151 m_id = std::forward<IdT>(value);
152 }
153 template <typename IdT = Aws::String>
154 JobEntry& WithId(IdT&& value) {
155 SetId(std::forward<IdT>(value));
156 return *this;
157 }
159
161
164 inline State GetState() const { return m_state; }
165 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
166 inline void SetState(State value) {
167 m_stateHasBeenSet = true;
168 m_state = value;
169 }
170 inline JobEntry& WithState(State value) {
171 SetState(value);
172 return *this;
173 }
175
177
180 inline Type GetType() const { return m_type; }
181 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
182 inline void SetType(Type value) {
183 m_typeHasBeenSet = true;
184 m_type = value;
185 }
186 inline JobEntry& WithType(Type value) {
187 SetType(value);
188 return *this;
189 }
191
193
196 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
197 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
198 template <typename UpdatedAtT = Aws::Utils::DateTime>
199 void SetUpdatedAt(UpdatedAtT&& value) {
200 m_updatedAtHasBeenSet = true;
201 m_updatedAt = std::forward<UpdatedAtT>(value);
202 }
203 template <typename UpdatedAtT = Aws::Utils::DateTime>
204 JobEntry& WithUpdatedAt(UpdatedAtT&& value) {
205 SetUpdatedAt(std::forward<UpdatedAtT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_arn;
211
212 AssetConfiguration m_assetConfiguration;
213
214 Aws::Utils::DateTime m_createdAt{};
215
216 ResponseDetails m_details;
217
218 Aws::Vector<JobError> m_errors;
219
220 Aws::String m_id;
221
222 State m_state{State::NOT_SET};
223
224 Type m_type{Type::NOT_SET};
225
226 Aws::Utils::DateTime m_updatedAt{};
227 bool m_arnHasBeenSet = false;
228 bool m_assetConfigurationHasBeenSet = false;
229 bool m_createdAtHasBeenSet = false;
230 bool m_detailsHasBeenSet = false;
231 bool m_errorsHasBeenSet = false;
232 bool m_idHasBeenSet = false;
233 bool m_stateHasBeenSet = false;
234 bool m_typeHasBeenSet = false;
235 bool m_updatedAtHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace DataExchange
240} // namespace Aws
Definition JobEntry.h:37
JobEntry & WithType(Type value)
Definition JobEntry.h:186
bool IdHasBeenSet() const
Definition JobEntry.h:147
bool TypeHasBeenSet() const
Definition JobEntry.h:181
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobEntry.h:85
void SetDetails(DetailsT &&value)
Definition JobEntry.h:107
JobEntry & WithErrors(ErrorsT &&value)
Definition JobEntry.h:130
bool CreatedAtHasBeenSet() const
Definition JobEntry.h:86
bool UpdatedAtHasBeenSet() const
Definition JobEntry.h:197
void SetArn(ArnT &&value)
Definition JobEntry.h:51
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool ErrorsHasBeenSet() const
Definition JobEntry.h:123
void SetState(State value)
Definition JobEntry.h:166
AWS_DATAEXCHANGE_API JobEntry()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition JobEntry.h:196
AWS_DATAEXCHANGE_API JobEntry(Aws::Utils::Json::JsonView jsonValue)
JobEntry & WithArn(ArnT &&value)
Definition JobEntry.h:56
AWS_DATAEXCHANGE_API JobEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssetConfiguration(AssetConfigurationT &&value)
Definition JobEntry.h:70
JobEntry & WithCreatedAt(CreatedAtT &&value)
Definition JobEntry.h:93
void SetId(IdT &&value)
Definition JobEntry.h:149
JobEntry & AddErrors(ErrorsT &&value)
Definition JobEntry.h:135
const AssetConfiguration & GetAssetConfiguration() const
Definition JobEntry.h:67
bool AssetConfigurationHasBeenSet() const
Definition JobEntry.h:68
void SetUpdatedAt(UpdatedAtT &&value)
Definition JobEntry.h:199
const Aws::String & GetId() const
Definition JobEntry.h:146
void SetCreatedAt(CreatedAtT &&value)
Definition JobEntry.h:88
bool DetailsHasBeenSet() const
Definition JobEntry.h:105
bool StateHasBeenSet() const
Definition JobEntry.h:165
JobEntry & WithUpdatedAt(UpdatedAtT &&value)
Definition JobEntry.h:204
void SetType(Type value)
Definition JobEntry.h:182
JobEntry & WithDetails(DetailsT &&value)
Definition JobEntry.h:112
bool ArnHasBeenSet() const
Definition JobEntry.h:49
State GetState() const
Definition JobEntry.h:164
Type GetType() const
Definition JobEntry.h:180
JobEntry & WithId(IdT &&value)
Definition JobEntry.h:154
void SetErrors(ErrorsT &&value)
Definition JobEntry.h:125
JobEntry & WithState(State value)
Definition JobEntry.h:170
const ResponseDetails & GetDetails() const
Definition JobEntry.h:104
JobEntry & WithAssetConfiguration(AssetConfigurationT &&value)
Definition JobEntry.h:75
const Aws::String & GetArn() const
Definition JobEntry.h:48
const Aws::Vector< JobError > & GetErrors() const
Definition JobEntry.h:122
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue