AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
DescribeJobTemplateResult.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/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/AbortConfig.h>
13#include <aws/iot/model/JobExecutionsRetryConfig.h>
14#include <aws/iot/model/JobExecutionsRolloutConfig.h>
15#include <aws/iot/model/MaintenanceWindow.h>
16#include <aws/iot/model/PresignedUrlConfig.h>
17#include <aws/iot/model/TimeoutConfig.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace IoT {
31namespace Model {
33 public:
34 AWS_IOT_API DescribeJobTemplateResult() = default;
37
39
42 inline const Aws::String& GetJobTemplateArn() const { return m_jobTemplateArn; }
43 template <typename JobTemplateArnT = Aws::String>
44 void SetJobTemplateArn(JobTemplateArnT&& value) {
45 m_jobTemplateArnHasBeenSet = true;
46 m_jobTemplateArn = std::forward<JobTemplateArnT>(value);
47 }
48 template <typename JobTemplateArnT = Aws::String>
50 SetJobTemplateArn(std::forward<JobTemplateArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetJobTemplateId() const { return m_jobTemplateId; }
60 template <typename JobTemplateIdT = Aws::String>
61 void SetJobTemplateId(JobTemplateIdT&& value) {
62 m_jobTemplateIdHasBeenSet = true;
63 m_jobTemplateId = std::forward<JobTemplateIdT>(value);
64 }
65 template <typename JobTemplateIdT = Aws::String>
67 SetJobTemplateId(std::forward<JobTemplateIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDocumentSource() const { return m_documentSource; }
94 template <typename DocumentSourceT = Aws::String>
95 void SetDocumentSource(DocumentSourceT&& value) {
96 m_documentSourceHasBeenSet = true;
97 m_documentSource = std::forward<DocumentSourceT>(value);
98 }
99 template <typename DocumentSourceT = Aws::String>
101 SetDocumentSource(std::forward<DocumentSourceT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDocument() const { return m_document; }
111 template <typename DocumentT = Aws::String>
112 void SetDocument(DocumentT&& value) {
113 m_documentHasBeenSet = true;
114 m_document = std::forward<DocumentT>(value);
115 }
116 template <typename DocumentT = Aws::String>
118 SetDocument(std::forward<DocumentT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
128 template <typename CreatedAtT = Aws::Utils::DateTime>
129 void SetCreatedAt(CreatedAtT&& value) {
130 m_createdAtHasBeenSet = true;
131 m_createdAt = std::forward<CreatedAtT>(value);
132 }
133 template <typename CreatedAtT = Aws::Utils::DateTime>
135 SetCreatedAt(std::forward<CreatedAtT>(value));
136 return *this;
137 }
139
141
142 inline const PresignedUrlConfig& GetPresignedUrlConfig() const { return m_presignedUrlConfig; }
143 template <typename PresignedUrlConfigT = PresignedUrlConfig>
144 void SetPresignedUrlConfig(PresignedUrlConfigT&& value) {
145 m_presignedUrlConfigHasBeenSet = true;
146 m_presignedUrlConfig = std::forward<PresignedUrlConfigT>(value);
147 }
148 template <typename PresignedUrlConfigT = PresignedUrlConfig>
149 DescribeJobTemplateResult& WithPresignedUrlConfig(PresignedUrlConfigT&& value) {
150 SetPresignedUrlConfig(std::forward<PresignedUrlConfigT>(value));
151 return *this;
152 }
154
156
157 inline const JobExecutionsRolloutConfig& GetJobExecutionsRolloutConfig() const { return m_jobExecutionsRolloutConfig; }
158 template <typename JobExecutionsRolloutConfigT = JobExecutionsRolloutConfig>
159 void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT&& value) {
160 m_jobExecutionsRolloutConfigHasBeenSet = true;
161 m_jobExecutionsRolloutConfig = std::forward<JobExecutionsRolloutConfigT>(value);
162 }
163 template <typename JobExecutionsRolloutConfigT = JobExecutionsRolloutConfig>
164 DescribeJobTemplateResult& WithJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT&& value) {
165 SetJobExecutionsRolloutConfig(std::forward<JobExecutionsRolloutConfigT>(value));
166 return *this;
167 }
169
171
172 inline const AbortConfig& GetAbortConfig() const { return m_abortConfig; }
173 template <typename AbortConfigT = AbortConfig>
174 void SetAbortConfig(AbortConfigT&& value) {
175 m_abortConfigHasBeenSet = true;
176 m_abortConfig = std::forward<AbortConfigT>(value);
177 }
178 template <typename AbortConfigT = AbortConfig>
180 SetAbortConfig(std::forward<AbortConfigT>(value));
181 return *this;
182 }
184
186
187 inline const TimeoutConfig& GetTimeoutConfig() const { return m_timeoutConfig; }
188 template <typename TimeoutConfigT = TimeoutConfig>
189 void SetTimeoutConfig(TimeoutConfigT&& value) {
190 m_timeoutConfigHasBeenSet = true;
191 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
192 }
193 template <typename TimeoutConfigT = TimeoutConfig>
195 SetTimeoutConfig(std::forward<TimeoutConfigT>(value));
196 return *this;
197 }
199
201
205 inline const JobExecutionsRetryConfig& GetJobExecutionsRetryConfig() const { return m_jobExecutionsRetryConfig; }
206 template <typename JobExecutionsRetryConfigT = JobExecutionsRetryConfig>
207 void SetJobExecutionsRetryConfig(JobExecutionsRetryConfigT&& value) {
208 m_jobExecutionsRetryConfigHasBeenSet = true;
209 m_jobExecutionsRetryConfig = std::forward<JobExecutionsRetryConfigT>(value);
210 }
211 template <typename JobExecutionsRetryConfigT = JobExecutionsRetryConfig>
212 DescribeJobTemplateResult& WithJobExecutionsRetryConfig(JobExecutionsRetryConfigT&& value) {
213 SetJobExecutionsRetryConfig(std::forward<JobExecutionsRetryConfigT>(value));
214 return *this;
215 }
217
219
223 inline const Aws::Vector<MaintenanceWindow>& GetMaintenanceWindows() const { return m_maintenanceWindows; }
224 template <typename MaintenanceWindowsT = Aws::Vector<MaintenanceWindow>>
225 void SetMaintenanceWindows(MaintenanceWindowsT&& value) {
226 m_maintenanceWindowsHasBeenSet = true;
227 m_maintenanceWindows = std::forward<MaintenanceWindowsT>(value);
228 }
229 template <typename MaintenanceWindowsT = Aws::Vector<MaintenanceWindow>>
230 DescribeJobTemplateResult& WithMaintenanceWindows(MaintenanceWindowsT&& value) {
231 SetMaintenanceWindows(std::forward<MaintenanceWindowsT>(value));
232 return *this;
233 }
234 template <typename MaintenanceWindowsT = MaintenanceWindow>
235 DescribeJobTemplateResult& AddMaintenanceWindows(MaintenanceWindowsT&& value) {
236 m_maintenanceWindowsHasBeenSet = true;
237 m_maintenanceWindows.emplace_back(std::forward<MaintenanceWindowsT>(value));
238 return *this;
239 }
241
243
252 inline const Aws::Vector<Aws::String>& GetDestinationPackageVersions() const { return m_destinationPackageVersions; }
253 template <typename DestinationPackageVersionsT = Aws::Vector<Aws::String>>
254 void SetDestinationPackageVersions(DestinationPackageVersionsT&& value) {
255 m_destinationPackageVersionsHasBeenSet = true;
256 m_destinationPackageVersions = std::forward<DestinationPackageVersionsT>(value);
257 }
258 template <typename DestinationPackageVersionsT = Aws::Vector<Aws::String>>
259 DescribeJobTemplateResult& WithDestinationPackageVersions(DestinationPackageVersionsT&& value) {
260 SetDestinationPackageVersions(std::forward<DestinationPackageVersionsT>(value));
261 return *this;
262 }
263 template <typename DestinationPackageVersionsT = Aws::String>
264 DescribeJobTemplateResult& AddDestinationPackageVersions(DestinationPackageVersionsT&& value) {
265 m_destinationPackageVersionsHasBeenSet = true;
266 m_destinationPackageVersions.emplace_back(std::forward<DestinationPackageVersionsT>(value));
267 return *this;
268 }
270
272
273 inline const Aws::String& GetRequestId() const { return m_requestId; }
274 template <typename RequestIdT = Aws::String>
275 void SetRequestId(RequestIdT&& value) {
276 m_requestIdHasBeenSet = true;
277 m_requestId = std::forward<RequestIdT>(value);
278 }
279 template <typename RequestIdT = Aws::String>
281 SetRequestId(std::forward<RequestIdT>(value));
282 return *this;
283 }
285 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
286
287 private:
288 Aws::String m_jobTemplateArn;
289
290 Aws::String m_jobTemplateId;
291
292 Aws::String m_description;
293
294 Aws::String m_documentSource;
295
296 Aws::String m_document;
297
298 Aws::Utils::DateTime m_createdAt{};
299
300 PresignedUrlConfig m_presignedUrlConfig;
301
302 JobExecutionsRolloutConfig m_jobExecutionsRolloutConfig;
303
304 AbortConfig m_abortConfig;
305
306 TimeoutConfig m_timeoutConfig;
307
308 JobExecutionsRetryConfig m_jobExecutionsRetryConfig;
309
310 Aws::Vector<MaintenanceWindow> m_maintenanceWindows;
311
312 Aws::Vector<Aws::String> m_destinationPackageVersions;
313
314 Aws::String m_requestId;
315 Aws::Http::HttpResponseCode m_HttpResponseCode;
316 bool m_jobTemplateArnHasBeenSet = false;
317 bool m_jobTemplateIdHasBeenSet = false;
318 bool m_descriptionHasBeenSet = false;
319 bool m_documentSourceHasBeenSet = false;
320 bool m_documentHasBeenSet = false;
321 bool m_createdAtHasBeenSet = false;
322 bool m_presignedUrlConfigHasBeenSet = false;
323 bool m_jobExecutionsRolloutConfigHasBeenSet = false;
324 bool m_abortConfigHasBeenSet = false;
325 bool m_timeoutConfigHasBeenSet = false;
326 bool m_jobExecutionsRetryConfigHasBeenSet = false;
327 bool m_maintenanceWindowsHasBeenSet = false;
328 bool m_destinationPackageVersionsHasBeenSet = false;
329 bool m_requestIdHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace IoT
334} // namespace Aws
const PresignedUrlConfig & GetPresignedUrlConfig() const
DescribeJobTemplateResult & WithAbortConfig(AbortConfigT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const JobExecutionsRolloutConfig & GetJobExecutionsRolloutConfig() const
DescribeJobTemplateResult & WithTimeoutConfig(TimeoutConfigT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DescribeJobTemplateResult & WithJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT &&value)
const Aws::Vector< Aws::String > & GetDestinationPackageVersions() const
DescribeJobTemplateResult & WithJobTemplateArn(JobTemplateArnT &&value)
DescribeJobTemplateResult & WithDocumentSource(DocumentSourceT &&value)
AWS_IOT_API DescribeJobTemplateResult()=default
DescribeJobTemplateResult & WithJobTemplateId(JobTemplateIdT &&value)
DescribeJobTemplateResult & AddMaintenanceWindows(MaintenanceWindowsT &&value)
AWS_IOT_API DescribeJobTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< MaintenanceWindow > & GetMaintenanceWindows() const
DescribeJobTemplateResult & AddDestinationPackageVersions(DestinationPackageVersionsT &&value)
void SetJobExecutionsRetryConfig(JobExecutionsRetryConfigT &&value)
DescribeJobTemplateResult & WithDescription(DescriptionT &&value)
void SetDestinationPackageVersions(DestinationPackageVersionsT &&value)
void SetMaintenanceWindows(MaintenanceWindowsT &&value)
void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfigT &&value)
DescribeJobTemplateResult & WithDocument(DocumentT &&value)
DescribeJobTemplateResult & WithJobExecutionsRetryConfig(JobExecutionsRetryConfigT &&value)
AWS_IOT_API DescribeJobTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeJobTemplateResult & WithDestinationPackageVersions(DestinationPackageVersionsT &&value)
DescribeJobTemplateResult & WithPresignedUrlConfig(PresignedUrlConfigT &&value)
DescribeJobTemplateResult & WithMaintenanceWindows(MaintenanceWindowsT &&value)
DescribeJobTemplateResult & WithCreatedAt(CreatedAtT &&value)
const JobExecutionsRetryConfig & GetJobExecutionsRetryConfig() const
void SetPresignedUrlConfig(PresignedUrlConfigT &&value)
DescribeJobTemplateResult & WithRequestId(RequestIdT &&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