AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobTemplateRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/PresignedUrlConfig.h>
11#include <aws/iot/model/JobExecutionsRolloutConfig.h>
12#include <aws/iot/model/AbortConfig.h>
13#include <aws/iot/model/TimeoutConfig.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/iot/model/JobExecutionsRetryConfig.h>
16#include <aws/iot/model/Tag.h>
17#include <aws/iot/model/MaintenanceWindow.h>
18#include <utility>
19
20namespace Aws
21{
22namespace IoT
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateJobTemplate"; }
39
40 AWS_IOT_API Aws::String SerializePayload() const override;
41
42
44
48 inline const Aws::String& GetJobTemplateId() const{ return m_jobTemplateId; }
49 inline bool JobTemplateIdHasBeenSet() const { return m_jobTemplateIdHasBeenSet; }
50 inline void SetJobTemplateId(const Aws::String& value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId = value; }
51 inline void SetJobTemplateId(Aws::String&& value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId = std::move(value); }
52 inline void SetJobTemplateId(const char* value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId.assign(value); }
53 inline CreateJobTemplateRequest& WithJobTemplateId(const Aws::String& value) { SetJobTemplateId(value); return *this;}
54 inline CreateJobTemplateRequest& WithJobTemplateId(Aws::String&& value) { SetJobTemplateId(std::move(value)); return *this;}
55 inline CreateJobTemplateRequest& WithJobTemplateId(const char* value) { SetJobTemplateId(value); return *this;}
57
59
62 inline const Aws::String& GetJobArn() const{ return m_jobArn; }
63 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
64 inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
65 inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
66 inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
67 inline CreateJobTemplateRequest& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
68 inline CreateJobTemplateRequest& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
69 inline CreateJobTemplateRequest& WithJobArn(const char* value) { SetJobArn(value); return *this;}
71
73
82 inline const Aws::String& GetDocumentSource() const{ return m_documentSource; }
83 inline bool DocumentSourceHasBeenSet() const { return m_documentSourceHasBeenSet; }
84 inline void SetDocumentSource(const Aws::String& value) { m_documentSourceHasBeenSet = true; m_documentSource = value; }
85 inline void SetDocumentSource(Aws::String&& value) { m_documentSourceHasBeenSet = true; m_documentSource = std::move(value); }
86 inline void SetDocumentSource(const char* value) { m_documentSourceHasBeenSet = true; m_documentSource.assign(value); }
87 inline CreateJobTemplateRequest& WithDocumentSource(const Aws::String& value) { SetDocumentSource(value); return *this;}
88 inline CreateJobTemplateRequest& WithDocumentSource(Aws::String&& value) { SetDocumentSource(std::move(value)); return *this;}
89 inline CreateJobTemplateRequest& WithDocumentSource(const char* value) { SetDocumentSource(value); return *this;}
91
93
97 inline const Aws::String& GetDocument() const{ return m_document; }
98 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
99 inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
100 inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
101 inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
102 inline CreateJobTemplateRequest& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
103 inline CreateJobTemplateRequest& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
104 inline CreateJobTemplateRequest& WithDocument(const char* value) { SetDocument(value); return *this;}
106
108
111 inline const Aws::String& GetDescription() const{ return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
114 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
115 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 inline CreateJobTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
117 inline CreateJobTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
118 inline CreateJobTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
120
122
123 inline const PresignedUrlConfig& GetPresignedUrlConfig() const{ return m_presignedUrlConfig; }
124 inline bool PresignedUrlConfigHasBeenSet() const { return m_presignedUrlConfigHasBeenSet; }
125 inline void SetPresignedUrlConfig(const PresignedUrlConfig& value) { m_presignedUrlConfigHasBeenSet = true; m_presignedUrlConfig = value; }
126 inline void SetPresignedUrlConfig(PresignedUrlConfig&& value) { m_presignedUrlConfigHasBeenSet = true; m_presignedUrlConfig = std::move(value); }
130
132
133 inline const JobExecutionsRolloutConfig& GetJobExecutionsRolloutConfig() const{ return m_jobExecutionsRolloutConfig; }
134 inline bool JobExecutionsRolloutConfigHasBeenSet() const { return m_jobExecutionsRolloutConfigHasBeenSet; }
135 inline void SetJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = value; }
136 inline void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfig&& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = std::move(value); }
140
142
143 inline const AbortConfig& GetAbortConfig() const{ return m_abortConfig; }
144 inline bool AbortConfigHasBeenSet() const { return m_abortConfigHasBeenSet; }
145 inline void SetAbortConfig(const AbortConfig& value) { m_abortConfigHasBeenSet = true; m_abortConfig = value; }
146 inline void SetAbortConfig(AbortConfig&& value) { m_abortConfigHasBeenSet = true; m_abortConfig = std::move(value); }
147 inline CreateJobTemplateRequest& WithAbortConfig(const AbortConfig& value) { SetAbortConfig(value); return *this;}
148 inline CreateJobTemplateRequest& WithAbortConfig(AbortConfig&& value) { SetAbortConfig(std::move(value)); return *this;}
150
152
153 inline const TimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; }
154 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
155 inline void SetTimeoutConfig(const TimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; }
156 inline void SetTimeoutConfig(TimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); }
157 inline CreateJobTemplateRequest& WithTimeoutConfig(const TimeoutConfig& value) { SetTimeoutConfig(value); return *this;}
158 inline CreateJobTemplateRequest& WithTimeoutConfig(TimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;}
160
162
165 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
168 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
169 inline CreateJobTemplateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
170 inline CreateJobTemplateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
171 inline CreateJobTemplateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
172 inline CreateJobTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
174
176
179 inline const JobExecutionsRetryConfig& GetJobExecutionsRetryConfig() const{ return m_jobExecutionsRetryConfig; }
180 inline bool JobExecutionsRetryConfigHasBeenSet() const { return m_jobExecutionsRetryConfigHasBeenSet; }
181 inline void SetJobExecutionsRetryConfig(const JobExecutionsRetryConfig& value) { m_jobExecutionsRetryConfigHasBeenSet = true; m_jobExecutionsRetryConfig = value; }
182 inline void SetJobExecutionsRetryConfig(JobExecutionsRetryConfig&& value) { m_jobExecutionsRetryConfigHasBeenSet = true; m_jobExecutionsRetryConfig = std::move(value); }
186
188
192 inline const Aws::Vector<MaintenanceWindow>& GetMaintenanceWindows() const{ return m_maintenanceWindows; }
193 inline bool MaintenanceWindowsHasBeenSet() const { return m_maintenanceWindowsHasBeenSet; }
194 inline void SetMaintenanceWindows(const Aws::Vector<MaintenanceWindow>& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows = value; }
195 inline void SetMaintenanceWindows(Aws::Vector<MaintenanceWindow>&& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows = std::move(value); }
198 inline CreateJobTemplateRequest& AddMaintenanceWindows(const MaintenanceWindow& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows.push_back(value); return *this; }
199 inline CreateJobTemplateRequest& AddMaintenanceWindows(MaintenanceWindow&& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows.push_back(std::move(value)); return *this; }
201
203
212 inline const Aws::Vector<Aws::String>& GetDestinationPackageVersions() const{ return m_destinationPackageVersions; }
213 inline bool DestinationPackageVersionsHasBeenSet() const { return m_destinationPackageVersionsHasBeenSet; }
214 inline void SetDestinationPackageVersions(const Aws::Vector<Aws::String>& value) { m_destinationPackageVersionsHasBeenSet = true; m_destinationPackageVersions = value; }
215 inline void SetDestinationPackageVersions(Aws::Vector<Aws::String>&& value) { m_destinationPackageVersionsHasBeenSet = true; m_destinationPackageVersions = std::move(value); }
218 inline CreateJobTemplateRequest& AddDestinationPackageVersions(const Aws::String& value) { m_destinationPackageVersionsHasBeenSet = true; m_destinationPackageVersions.push_back(value); return *this; }
219 inline CreateJobTemplateRequest& AddDestinationPackageVersions(Aws::String&& value) { m_destinationPackageVersionsHasBeenSet = true; m_destinationPackageVersions.push_back(std::move(value)); return *this; }
220 inline CreateJobTemplateRequest& AddDestinationPackageVersions(const char* value) { m_destinationPackageVersionsHasBeenSet = true; m_destinationPackageVersions.push_back(value); return *this; }
222 private:
223
224 Aws::String m_jobTemplateId;
225 bool m_jobTemplateIdHasBeenSet = false;
226
227 Aws::String m_jobArn;
228 bool m_jobArnHasBeenSet = false;
229
230 Aws::String m_documentSource;
231 bool m_documentSourceHasBeenSet = false;
232
233 Aws::String m_document;
234 bool m_documentHasBeenSet = false;
235
236 Aws::String m_description;
237 bool m_descriptionHasBeenSet = false;
238
239 PresignedUrlConfig m_presignedUrlConfig;
240 bool m_presignedUrlConfigHasBeenSet = false;
241
242 JobExecutionsRolloutConfig m_jobExecutionsRolloutConfig;
243 bool m_jobExecutionsRolloutConfigHasBeenSet = false;
244
245 AbortConfig m_abortConfig;
246 bool m_abortConfigHasBeenSet = false;
247
248 TimeoutConfig m_timeoutConfig;
249 bool m_timeoutConfigHasBeenSet = false;
250
251 Aws::Vector<Tag> m_tags;
252 bool m_tagsHasBeenSet = false;
253
254 JobExecutionsRetryConfig m_jobExecutionsRetryConfig;
255 bool m_jobExecutionsRetryConfigHasBeenSet = false;
256
257 Aws::Vector<MaintenanceWindow> m_maintenanceWindows;
258 bool m_maintenanceWindowsHasBeenSet = false;
259
260 Aws::Vector<Aws::String> m_destinationPackageVersions;
261 bool m_destinationPackageVersionsHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace IoT
266} // namespace Aws
CreateJobTemplateRequest & WithDocumentSource(const char *value)
void SetPresignedUrlConfig(const PresignedUrlConfig &value)
CreateJobTemplateRequest & AddDestinationPackageVersions(Aws::String &&value)
CreateJobTemplateRequest & WithDestinationPackageVersions(const Aws::Vector< Aws::String > &value)
CreateJobTemplateRequest & WithJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig &value)
CreateJobTemplateRequest & WithTimeoutConfig(const TimeoutConfig &value)
const JobExecutionsRolloutConfig & GetJobExecutionsRolloutConfig() const
CreateJobTemplateRequest & WithMaintenanceWindows(Aws::Vector< MaintenanceWindow > &&value)
CreateJobTemplateRequest & WithJobArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateJobTemplateRequest & WithAbortConfig(AbortConfig &&value)
void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfig &&value)
CreateJobTemplateRequest & AddTags(const Tag &value)
void SetPresignedUrlConfig(PresignedUrlConfig &&value)
CreateJobTemplateRequest & WithJobExecutionsRolloutConfig(JobExecutionsRolloutConfig &&value)
void SetJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateJobTemplateRequest & WithDocumentSource(const Aws::String &value)
CreateJobTemplateRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTimeoutConfig(const TimeoutConfig &value)
const Aws::Vector< MaintenanceWindow > & GetMaintenanceWindows() const
CreateJobTemplateRequest & WithDocumentSource(Aws::String &&value)
CreateJobTemplateRequest & WithJobExecutionsRetryConfig(const JobExecutionsRetryConfig &value)
void SetMaintenanceWindows(const Aws::Vector< MaintenanceWindow > &value)
CreateJobTemplateRequest & WithTimeoutConfig(TimeoutConfig &&value)
void SetJobExecutionsRetryConfig(const JobExecutionsRetryConfig &value)
CreateJobTemplateRequest & WithJobTemplateId(const char *value)
CreateJobTemplateRequest & WithDocument(const char *value)
CreateJobTemplateRequest & WithDescription(Aws::String &&value)
CreateJobTemplateRequest & WithDocument(Aws::String &&value)
CreateJobTemplateRequest & WithDocument(const Aws::String &value)
CreateJobTemplateRequest & WithMaintenanceWindows(const Aws::Vector< MaintenanceWindow > &value)
CreateJobTemplateRequest & WithDestinationPackageVersions(Aws::Vector< Aws::String > &&value)
CreateJobTemplateRequest & WithJobArn(const Aws::String &value)
CreateJobTemplateRequest & WithJobExecutionsRetryConfig(JobExecutionsRetryConfig &&value)
CreateJobTemplateRequest & WithDescription(const Aws::String &value)
CreateJobTemplateRequest & WithAbortConfig(const AbortConfig &value)
void SetMaintenanceWindows(Aws::Vector< MaintenanceWindow > &&value)
CreateJobTemplateRequest & WithTags(Aws::Vector< Tag > &&value)
const JobExecutionsRetryConfig & GetJobExecutionsRetryConfig() const
CreateJobTemplateRequest & AddDestinationPackageVersions(const Aws::String &value)
CreateJobTemplateRequest & WithJobTemplateId(const Aws::String &value)
CreateJobTemplateRequest & AddMaintenanceWindows(MaintenanceWindow &&value)
CreateJobTemplateRequest & AddDestinationPackageVersions(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateJobTemplateRequest & WithPresignedUrlConfig(const PresignedUrlConfig &value)
CreateJobTemplateRequest & WithJobTemplateId(Aws::String &&value)
CreateJobTemplateRequest & WithJobArn(const char *value)
CreateJobTemplateRequest & AddTags(Tag &&value)
const Aws::Vector< Aws::String > & GetDestinationPackageVersions() const
void SetJobExecutionsRetryConfig(JobExecutionsRetryConfig &&value)
void SetDestinationPackageVersions(const Aws::Vector< Aws::String > &value)
CreateJobTemplateRequest & AddMaintenanceWindows(const MaintenanceWindow &value)
CreateJobTemplateRequest & WithDescription(const char *value)
void SetDestinationPackageVersions(Aws::Vector< Aws::String > &&value)
const PresignedUrlConfig & GetPresignedUrlConfig() const
CreateJobTemplateRequest & WithPresignedUrlConfig(PresignedUrlConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector