AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateJobResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dataexchange/DataExchange_EXPORTS.h>
12#include <aws/dataexchange/model/AssetConfiguration.h>
13#include <aws/dataexchange/model/JobError.h>
14#include <aws/dataexchange/model/ResponseDetails.h>
15#include <aws/dataexchange/model/State.h>
16#include <aws/dataexchange/model/Type.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DataExchange {
30namespace Model {
32 public:
33 AWS_DATAEXCHANGE_API CreateJobResult() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 CreateJobResult& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
59 inline const AssetConfiguration& GetAssetConfiguration() const { return m_assetConfiguration; }
60 template <typename AssetConfigurationT = AssetConfiguration>
61 void SetAssetConfiguration(AssetConfigurationT&& value) {
62 m_assetConfigurationHasBeenSet = true;
63 m_assetConfiguration = std::forward<AssetConfigurationT>(value);
64 }
65 template <typename AssetConfigurationT = AssetConfiguration>
66 CreateJobResult& WithAssetConfiguration(AssetConfigurationT&& value) {
67 SetAssetConfiguration(std::forward<AssetConfigurationT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
77 template <typename CreatedAtT = Aws::Utils::DateTime>
78 void SetCreatedAt(CreatedAtT&& value) {
79 m_createdAtHasBeenSet = true;
80 m_createdAt = std::forward<CreatedAtT>(value);
81 }
82 template <typename CreatedAtT = Aws::Utils::DateTime>
83 CreateJobResult& WithCreatedAt(CreatedAtT&& value) {
84 SetCreatedAt(std::forward<CreatedAtT>(value));
85 return *this;
86 }
88
90
93 inline const ResponseDetails& GetDetails() const { return m_details; }
94 template <typename DetailsT = ResponseDetails>
95 void SetDetails(DetailsT&& value) {
96 m_detailsHasBeenSet = true;
97 m_details = std::forward<DetailsT>(value);
98 }
99 template <typename DetailsT = ResponseDetails>
100 CreateJobResult& WithDetails(DetailsT&& value) {
101 SetDetails(std::forward<DetailsT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<JobError>& GetErrors() const { return m_errors; }
111 template <typename ErrorsT = Aws::Vector<JobError>>
112 void SetErrors(ErrorsT&& value) {
113 m_errorsHasBeenSet = true;
114 m_errors = std::forward<ErrorsT>(value);
115 }
116 template <typename ErrorsT = Aws::Vector<JobError>>
117 CreateJobResult& WithErrors(ErrorsT&& value) {
118 SetErrors(std::forward<ErrorsT>(value));
119 return *this;
120 }
121 template <typename ErrorsT = JobError>
122 CreateJobResult& AddErrors(ErrorsT&& value) {
123 m_errorsHasBeenSet = true;
124 m_errors.emplace_back(std::forward<ErrorsT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetId() const { return m_id; }
134 template <typename IdT = Aws::String>
135 void SetId(IdT&& value) {
136 m_idHasBeenSet = true;
137 m_id = std::forward<IdT>(value);
138 }
139 template <typename IdT = Aws::String>
140 CreateJobResult& WithId(IdT&& value) {
141 SetId(std::forward<IdT>(value));
142 return *this;
143 }
145
147
150 inline State GetState() const { return m_state; }
151 inline void SetState(State value) {
152 m_stateHasBeenSet = true;
153 m_state = value;
154 }
156 SetState(value);
157 return *this;
158 }
160
162
165 inline Type GetType() const { return m_type; }
166 inline void SetType(Type value) {
167 m_typeHasBeenSet = true;
168 m_type = value;
169 }
171 SetType(value);
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
181 template <typename UpdatedAtT = Aws::Utils::DateTime>
182 void SetUpdatedAt(UpdatedAtT&& value) {
183 m_updatedAtHasBeenSet = true;
184 m_updatedAt = std::forward<UpdatedAtT>(value);
185 }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 CreateJobResult& WithUpdatedAt(UpdatedAtT&& value) {
188 SetUpdatedAt(std::forward<UpdatedAtT>(value));
189 return *this;
190 }
192
194
195 inline const Aws::String& GetRequestId() const { return m_requestId; }
196 template <typename RequestIdT = Aws::String>
197 void SetRequestId(RequestIdT&& value) {
198 m_requestIdHasBeenSet = true;
199 m_requestId = std::forward<RequestIdT>(value);
200 }
201 template <typename RequestIdT = Aws::String>
202 CreateJobResult& WithRequestId(RequestIdT&& value) {
203 SetRequestId(std::forward<RequestIdT>(value));
204 return *this;
205 }
207 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
208
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
228 Aws::String m_requestId;
229 Aws::Http::HttpResponseCode m_HttpResponseCode;
230 bool m_arnHasBeenSet = false;
231 bool m_assetConfigurationHasBeenSet = false;
232 bool m_createdAtHasBeenSet = false;
233 bool m_detailsHasBeenSet = false;
234 bool m_errorsHasBeenSet = false;
235 bool m_idHasBeenSet = false;
236 bool m_stateHasBeenSet = false;
237 bool m_typeHasBeenSet = false;
238 bool m_updatedAtHasBeenSet = false;
239 bool m_requestIdHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace DataExchange
244} // namespace Aws
AWS_DATAEXCHANGE_API CreateJobResult()=default
CreateJobResult & WithErrors(ErrorsT &&value)
const AssetConfiguration & GetAssetConfiguration() const
CreateJobResult & WithType(Type value)
CreateJobResult & WithState(State value)
void SetAssetConfiguration(AssetConfigurationT &&value)
const Aws::Vector< JobError > & GetErrors() const
AWS_DATAEXCHANGE_API CreateJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateJobResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateJobResult & WithCreatedAt(CreatedAtT &&value)
CreateJobResult & AddErrors(ErrorsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateJobResult & WithDetails(DetailsT &&value)
CreateJobResult & WithId(IdT &&value)
CreateJobResult & WithAssetConfiguration(AssetConfigurationT &&value)
const ResponseDetails & GetDetails() const
AWS_DATAEXCHANGE_API CreateJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
CreateJobResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateJobResult & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue