AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
HarvestJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
10#include <aws/mediapackagev2/model/Destination.h>
11#include <aws/mediapackagev2/model/HarvestJobStatus.h>
12#include <aws/mediapackagev2/model/HarvestedManifests.h>
13#include <aws/mediapackagev2/model/HarvesterScheduleConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace mediapackagev2 {
25namespace Model {
26
34 public:
35 AWS_MEDIAPACKAGEV2_API HarvestJob() = default;
36 AWS_MEDIAPACKAGEV2_API HarvestJob(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIAPACKAGEV2_API HarvestJob& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
46 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
47 template <typename ChannelGroupNameT = Aws::String>
48 void SetChannelGroupName(ChannelGroupNameT&& value) {
49 m_channelGroupNameHasBeenSet = true;
50 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
51 }
52 template <typename ChannelGroupNameT = Aws::String>
53 HarvestJob& WithChannelGroupName(ChannelGroupNameT&& value) {
54 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetChannelName() const { return m_channelName; }
64 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
65 template <typename ChannelNameT = Aws::String>
66 void SetChannelName(ChannelNameT&& value) {
67 m_channelNameHasBeenSet = true;
68 m_channelName = std::forward<ChannelNameT>(value);
69 }
70 template <typename ChannelNameT = Aws::String>
71 HarvestJob& WithChannelName(ChannelNameT&& value) {
72 SetChannelName(std::forward<ChannelNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetOriginEndpointName() const { return m_originEndpointName; }
82 inline bool OriginEndpointNameHasBeenSet() const { return m_originEndpointNameHasBeenSet; }
83 template <typename OriginEndpointNameT = Aws::String>
84 void SetOriginEndpointName(OriginEndpointNameT&& value) {
85 m_originEndpointNameHasBeenSet = true;
86 m_originEndpointName = std::forward<OriginEndpointNameT>(value);
87 }
88 template <typename OriginEndpointNameT = Aws::String>
89 HarvestJob& WithOriginEndpointName(OriginEndpointNameT&& value) {
90 SetOriginEndpointName(std::forward<OriginEndpointNameT>(value));
91 return *this;
92 }
94
96
99 inline const Destination& GetDestination() const { return m_destination; }
100 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
101 template <typename DestinationT = Destination>
102 void SetDestination(DestinationT&& value) {
103 m_destinationHasBeenSet = true;
104 m_destination = std::forward<DestinationT>(value);
105 }
106 template <typename DestinationT = Destination>
107 HarvestJob& WithDestination(DestinationT&& value) {
108 SetDestination(std::forward<DestinationT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetHarvestJobName() const { return m_harvestJobName; }
118 inline bool HarvestJobNameHasBeenSet() const { return m_harvestJobNameHasBeenSet; }
119 template <typename HarvestJobNameT = Aws::String>
120 void SetHarvestJobName(HarvestJobNameT&& value) {
121 m_harvestJobNameHasBeenSet = true;
122 m_harvestJobName = std::forward<HarvestJobNameT>(value);
123 }
124 template <typename HarvestJobNameT = Aws::String>
125 HarvestJob& WithHarvestJobName(HarvestJobNameT&& value) {
126 SetHarvestJobName(std::forward<HarvestJobNameT>(value));
127 return *this;
128 }
130
132
135 inline const HarvestedManifests& GetHarvestedManifests() const { return m_harvestedManifests; }
136 inline bool HarvestedManifestsHasBeenSet() const { return m_harvestedManifestsHasBeenSet; }
137 template <typename HarvestedManifestsT = HarvestedManifests>
138 void SetHarvestedManifests(HarvestedManifestsT&& value) {
139 m_harvestedManifestsHasBeenSet = true;
140 m_harvestedManifests = std::forward<HarvestedManifestsT>(value);
141 }
142 template <typename HarvestedManifestsT = HarvestedManifests>
143 HarvestJob& WithHarvestedManifests(HarvestedManifestsT&& value) {
144 SetHarvestedManifests(std::forward<HarvestedManifestsT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetDescription() const { return m_description; }
154 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
155 template <typename DescriptionT = Aws::String>
156 void SetDescription(DescriptionT&& value) {
157 m_descriptionHasBeenSet = true;
158 m_description = std::forward<DescriptionT>(value);
159 }
160 template <typename DescriptionT = Aws::String>
161 HarvestJob& WithDescription(DescriptionT&& value) {
162 SetDescription(std::forward<DescriptionT>(value));
163 return *this;
164 }
166
168
171 inline const HarvesterScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
172 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
173 template <typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
174 void SetScheduleConfiguration(ScheduleConfigurationT&& value) {
175 m_scheduleConfigurationHasBeenSet = true;
176 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
177 }
178 template <typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
179 HarvestJob& WithScheduleConfiguration(ScheduleConfigurationT&& value) {
180 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetArn() const { return m_arn; }
190 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
191 template <typename ArnT = Aws::String>
192 void SetArn(ArnT&& value) {
193 m_arnHasBeenSet = true;
194 m_arn = std::forward<ArnT>(value);
195 }
196 template <typename ArnT = Aws::String>
197 HarvestJob& WithArn(ArnT&& value) {
198 SetArn(std::forward<ArnT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
208 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
209 template <typename CreatedAtT = Aws::Utils::DateTime>
210 void SetCreatedAt(CreatedAtT&& value) {
211 m_createdAtHasBeenSet = true;
212 m_createdAt = std::forward<CreatedAtT>(value);
213 }
214 template <typename CreatedAtT = Aws::Utils::DateTime>
215 HarvestJob& WithCreatedAt(CreatedAtT&& value) {
216 SetCreatedAt(std::forward<CreatedAtT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
226 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
227 template <typename ModifiedAtT = Aws::Utils::DateTime>
228 void SetModifiedAt(ModifiedAtT&& value) {
229 m_modifiedAtHasBeenSet = true;
230 m_modifiedAt = std::forward<ModifiedAtT>(value);
231 }
232 template <typename ModifiedAtT = Aws::Utils::DateTime>
233 HarvestJob& WithModifiedAt(ModifiedAtT&& value) {
234 SetModifiedAt(std::forward<ModifiedAtT>(value));
235 return *this;
236 }
238
240
244 inline HarvestJobStatus GetStatus() const { return m_status; }
245 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
246 inline void SetStatus(HarvestJobStatus value) {
247 m_statusHasBeenSet = true;
248 m_status = value;
249 }
251 SetStatus(value);
252 return *this;
253 }
255
257
260 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
261 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
262 template <typename ErrorMessageT = Aws::String>
263 void SetErrorMessage(ErrorMessageT&& value) {
264 m_errorMessageHasBeenSet = true;
265 m_errorMessage = std::forward<ErrorMessageT>(value);
266 }
267 template <typename ErrorMessageT = Aws::String>
268 HarvestJob& WithErrorMessage(ErrorMessageT&& value) {
269 SetErrorMessage(std::forward<ErrorMessageT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::String& GetETag() const { return m_eTag; }
279 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
280 template <typename ETagT = Aws::String>
281 void SetETag(ETagT&& value) {
282 m_eTagHasBeenSet = true;
283 m_eTag = std::forward<ETagT>(value);
284 }
285 template <typename ETagT = Aws::String>
286 HarvestJob& WithETag(ETagT&& value) {
287 SetETag(std::forward<ETagT>(value));
288 return *this;
289 }
291 private:
292 Aws::String m_channelGroupName;
293
294 Aws::String m_channelName;
295
296 Aws::String m_originEndpointName;
297
298 Destination m_destination;
299
300 Aws::String m_harvestJobName;
301
302 HarvestedManifests m_harvestedManifests;
303
304 Aws::String m_description;
305
306 HarvesterScheduleConfiguration m_scheduleConfiguration;
307
308 Aws::String m_arn;
309
310 Aws::Utils::DateTime m_createdAt{};
311
312 Aws::Utils::DateTime m_modifiedAt{};
313
315
316 Aws::String m_errorMessage;
317
318 Aws::String m_eTag;
319 bool m_channelGroupNameHasBeenSet = false;
320 bool m_channelNameHasBeenSet = false;
321 bool m_originEndpointNameHasBeenSet = false;
322 bool m_destinationHasBeenSet = false;
323 bool m_harvestJobNameHasBeenSet = false;
324 bool m_harvestedManifestsHasBeenSet = false;
325 bool m_descriptionHasBeenSet = false;
326 bool m_scheduleConfigurationHasBeenSet = false;
327 bool m_arnHasBeenSet = false;
328 bool m_createdAtHasBeenSet = false;
329 bool m_modifiedAtHasBeenSet = false;
330 bool m_statusHasBeenSet = false;
331 bool m_errorMessageHasBeenSet = false;
332 bool m_eTagHasBeenSet = false;
333};
334
335} // namespace Model
336} // namespace mediapackagev2
337} // namespace Aws
void SetHarvestedManifests(HarvestedManifestsT &&value)
Definition HarvestJob.h:138
const HarvestedManifests & GetHarvestedManifests() const
Definition HarvestJob.h:135
AWS_MEDIAPACKAGEV2_API HarvestJob & operator=(Aws::Utils::Json::JsonView jsonValue)
HarvestJob & WithErrorMessage(ErrorMessageT &&value)
Definition HarvestJob.h:268
void SetDestination(DestinationT &&value)
Definition HarvestJob.h:102
void SetScheduleConfiguration(ScheduleConfigurationT &&value)
Definition HarvestJob.h:174
HarvestJob & WithETag(ETagT &&value)
Definition HarvestJob.h:286
void SetDescription(DescriptionT &&value)
Definition HarvestJob.h:156
AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChannelGroupName(ChannelGroupNameT &&value)
Definition HarvestJob.h:48
HarvestJob & WithHarvestJobName(HarvestJobNameT &&value)
Definition HarvestJob.h:125
HarvestJob & WithDestination(DestinationT &&value)
Definition HarvestJob.h:107
AWS_MEDIAPACKAGEV2_API HarvestJob()=default
const Aws::String & GetOriginEndpointName() const
Definition HarvestJob.h:81
const Aws::String & GetErrorMessage() const
Definition HarvestJob.h:260
void SetModifiedAt(ModifiedAtT &&value)
Definition HarvestJob.h:228
void SetHarvestJobName(HarvestJobNameT &&value)
Definition HarvestJob.h:120
void SetOriginEndpointName(OriginEndpointNameT &&value)
Definition HarvestJob.h:84
const Aws::String & GetDescription() const
Definition HarvestJob.h:153
HarvestJob & WithModifiedAt(ModifiedAtT &&value)
Definition HarvestJob.h:233
HarvestJobStatus GetStatus() const
Definition HarvestJob.h:244
void SetChannelName(ChannelNameT &&value)
Definition HarvestJob.h:66
void SetStatus(HarvestJobStatus value)
Definition HarvestJob.h:246
HarvestJob & WithOriginEndpointName(OriginEndpointNameT &&value)
Definition HarvestJob.h:89
HarvestJob & WithChannelGroupName(ChannelGroupNameT &&value)
Definition HarvestJob.h:53
const Aws::String & GetHarvestJobName() const
Definition HarvestJob.h:117
HarvestJob & WithHarvestedManifests(HarvestedManifestsT &&value)
Definition HarvestJob.h:143
const Destination & GetDestination() const
Definition HarvestJob.h:99
const Aws::Utils::DateTime & GetCreatedAt() const
Definition HarvestJob.h:207
HarvestJob & WithChannelName(ChannelNameT &&value)
Definition HarvestJob.h:71
const Aws::String & GetETag() const
Definition HarvestJob.h:278
const Aws::String & GetChannelName() const
Definition HarvestJob.h:63
HarvestJob & WithStatus(HarvestJobStatus value)
Definition HarvestJob.h:250
const Aws::String & GetChannelGroupName() const
Definition HarvestJob.h:45
void SetErrorMessage(ErrorMessageT &&value)
Definition HarvestJob.h:263
const HarvesterScheduleConfiguration & GetScheduleConfiguration() const
Definition HarvestJob.h:171
HarvestJob & WithDescription(DescriptionT &&value)
Definition HarvestJob.h:161
const Aws::String & GetArn() const
Definition HarvestJob.h:189
HarvestJob & WithScheduleConfiguration(ScheduleConfigurationT &&value)
Definition HarvestJob.h:179
const Aws::Utils::DateTime & GetModifiedAt() const
Definition HarvestJob.h:225
HarvestJob & WithCreatedAt(CreatedAtT &&value)
Definition HarvestJob.h:215
HarvestJob & WithArn(ArnT &&value)
Definition HarvestJob.h:197
void SetCreatedAt(CreatedAtT &&value)
Definition HarvestJob.h:210
AWS_MEDIAPACKAGEV2_API HarvestJob(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue