AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
CreateHarvestJobResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
12#include <aws/mediapackagev2/model/Destination.h>
13#include <aws/mediapackagev2/model/HarvestJobStatus.h>
14#include <aws/mediapackagev2/model/HarvestedManifests.h>
15#include <aws/mediapackagev2/model/HarvesterScheduleConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace mediapackagev2 {
29namespace Model {
37 public:
38 AWS_MEDIAPACKAGEV2_API CreateHarvestJobResult() = default;
41
43
47 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
48 template <typename ChannelGroupNameT = Aws::String>
49 void SetChannelGroupName(ChannelGroupNameT&& value) {
50 m_channelGroupNameHasBeenSet = true;
51 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
52 }
53 template <typename ChannelGroupNameT = Aws::String>
54 CreateHarvestJobResult& WithChannelGroupName(ChannelGroupNameT&& value) {
55 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetChannelName() const { return m_channelName; }
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 CreateHarvestJobResult& 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 template <typename OriginEndpointNameT = Aws::String>
83 void SetOriginEndpointName(OriginEndpointNameT&& value) {
84 m_originEndpointNameHasBeenSet = true;
85 m_originEndpointName = std::forward<OriginEndpointNameT>(value);
86 }
87 template <typename OriginEndpointNameT = Aws::String>
88 CreateHarvestJobResult& WithOriginEndpointName(OriginEndpointNameT&& value) {
89 SetOriginEndpointName(std::forward<OriginEndpointNameT>(value));
90 return *this;
91 }
93
95
98 inline const Destination& GetDestination() const { return m_destination; }
99 template <typename DestinationT = Destination>
100 void SetDestination(DestinationT&& value) {
101 m_destinationHasBeenSet = true;
102 m_destination = std::forward<DestinationT>(value);
103 }
104 template <typename DestinationT = Destination>
106 SetDestination(std::forward<DestinationT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetHarvestJobName() const { return m_harvestJobName; }
116 template <typename HarvestJobNameT = Aws::String>
117 void SetHarvestJobName(HarvestJobNameT&& value) {
118 m_harvestJobNameHasBeenSet = true;
119 m_harvestJobName = std::forward<HarvestJobNameT>(value);
120 }
121 template <typename HarvestJobNameT = Aws::String>
122 CreateHarvestJobResult& WithHarvestJobName(HarvestJobNameT&& value) {
123 SetHarvestJobName(std::forward<HarvestJobNameT>(value));
124 return *this;
125 }
127
129
132 inline const HarvestedManifests& GetHarvestedManifests() const { return m_harvestedManifests; }
133 template <typename HarvestedManifestsT = HarvestedManifests>
134 void SetHarvestedManifests(HarvestedManifestsT&& value) {
135 m_harvestedManifestsHasBeenSet = true;
136 m_harvestedManifests = std::forward<HarvestedManifestsT>(value);
137 }
138 template <typename HarvestedManifestsT = HarvestedManifests>
139 CreateHarvestJobResult& WithHarvestedManifests(HarvestedManifestsT&& value) {
140 SetHarvestedManifests(std::forward<HarvestedManifestsT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetDescription() const { return m_description; }
150 template <typename DescriptionT = Aws::String>
151 void SetDescription(DescriptionT&& value) {
152 m_descriptionHasBeenSet = true;
153 m_description = std::forward<DescriptionT>(value);
154 }
155 template <typename DescriptionT = Aws::String>
157 SetDescription(std::forward<DescriptionT>(value));
158 return *this;
159 }
161
163
167 inline const HarvesterScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
168 template <typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
169 void SetScheduleConfiguration(ScheduleConfigurationT&& value) {
170 m_scheduleConfigurationHasBeenSet = true;
171 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
172 }
173 template <typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
174 CreateHarvestJobResult& WithScheduleConfiguration(ScheduleConfigurationT&& value) {
175 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetArn() const { return m_arn; }
185 template <typename ArnT = Aws::String>
186 void SetArn(ArnT&& value) {
187 m_arnHasBeenSet = true;
188 m_arn = std::forward<ArnT>(value);
189 }
190 template <typename ArnT = Aws::String>
192 SetArn(std::forward<ArnT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
202 template <typename CreatedAtT = Aws::Utils::DateTime>
203 void SetCreatedAt(CreatedAtT&& value) {
204 m_createdAtHasBeenSet = true;
205 m_createdAt = std::forward<CreatedAtT>(value);
206 }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
209 SetCreatedAt(std::forward<CreatedAtT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
219 template <typename ModifiedAtT = Aws::Utils::DateTime>
220 void SetModifiedAt(ModifiedAtT&& value) {
221 m_modifiedAtHasBeenSet = true;
222 m_modifiedAt = std::forward<ModifiedAtT>(value);
223 }
224 template <typename ModifiedAtT = Aws::Utils::DateTime>
226 SetModifiedAt(std::forward<ModifiedAtT>(value));
227 return *this;
228 }
230
232
236 inline HarvestJobStatus GetStatus() const { return m_status; }
237 inline void SetStatus(HarvestJobStatus value) {
238 m_statusHasBeenSet = true;
239 m_status = value;
240 }
242 SetStatus(value);
243 return *this;
244 }
246
248
251 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
252 template <typename ErrorMessageT = Aws::String>
253 void SetErrorMessage(ErrorMessageT&& value) {
254 m_errorMessageHasBeenSet = true;
255 m_errorMessage = std::forward<ErrorMessageT>(value);
256 }
257 template <typename ErrorMessageT = Aws::String>
258 CreateHarvestJobResult& WithErrorMessage(ErrorMessageT&& value) {
259 SetErrorMessage(std::forward<ErrorMessageT>(value));
260 return *this;
261 }
263
265
268 inline const Aws::String& GetETag() const { return m_eTag; }
269 template <typename ETagT = Aws::String>
270 void SetETag(ETagT&& value) {
271 m_eTagHasBeenSet = true;
272 m_eTag = std::forward<ETagT>(value);
273 }
274 template <typename ETagT = Aws::String>
276 SetETag(std::forward<ETagT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
286 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
287 void SetTags(TagsT&& value) {
288 m_tagsHasBeenSet = true;
289 m_tags = std::forward<TagsT>(value);
290 }
291 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
293 SetTags(std::forward<TagsT>(value));
294 return *this;
295 }
296 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
297 CreateHarvestJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
298 m_tagsHasBeenSet = true;
299 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
300 return *this;
301 }
303
305
306 inline const Aws::String& GetRequestId() const { return m_requestId; }
307 template <typename RequestIdT = Aws::String>
308 void SetRequestId(RequestIdT&& value) {
309 m_requestIdHasBeenSet = true;
310 m_requestId = std::forward<RequestIdT>(value);
311 }
312 template <typename RequestIdT = Aws::String>
314 SetRequestId(std::forward<RequestIdT>(value));
315 return *this;
316 }
318 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
319
320 private:
321 Aws::String m_channelGroupName;
322
323 Aws::String m_channelName;
324
325 Aws::String m_originEndpointName;
326
327 Destination m_destination;
328
329 Aws::String m_harvestJobName;
330
331 HarvestedManifests m_harvestedManifests;
332
333 Aws::String m_description;
334
335 HarvesterScheduleConfiguration m_scheduleConfiguration;
336
337 Aws::String m_arn;
338
339 Aws::Utils::DateTime m_createdAt{};
340
341 Aws::Utils::DateTime m_modifiedAt{};
342
344
345 Aws::String m_errorMessage;
346
347 Aws::String m_eTag;
348
350
351 Aws::String m_requestId;
352 Aws::Http::HttpResponseCode m_HttpResponseCode;
353 bool m_channelGroupNameHasBeenSet = false;
354 bool m_channelNameHasBeenSet = false;
355 bool m_originEndpointNameHasBeenSet = false;
356 bool m_destinationHasBeenSet = false;
357 bool m_harvestJobNameHasBeenSet = false;
358 bool m_harvestedManifestsHasBeenSet = false;
359 bool m_descriptionHasBeenSet = false;
360 bool m_scheduleConfigurationHasBeenSet = false;
361 bool m_arnHasBeenSet = false;
362 bool m_createdAtHasBeenSet = false;
363 bool m_modifiedAtHasBeenSet = false;
364 bool m_statusHasBeenSet = false;
365 bool m_errorMessageHasBeenSet = false;
366 bool m_eTagHasBeenSet = false;
367 bool m_tagsHasBeenSet = false;
368 bool m_requestIdHasBeenSet = false;
369};
370
371} // namespace Model
372} // namespace mediapackagev2
373} // namespace Aws
CreateHarvestJobResult & WithETag(ETagT &&value)
const HarvesterScheduleConfiguration & GetScheduleConfiguration() const
CreateHarvestJobResult & WithChannelName(ChannelNameT &&value)
CreateHarvestJobResult & WithHarvestJobName(HarvestJobNameT &&value)
CreateHarvestJobResult & WithTags(TagsT &&value)
CreateHarvestJobResult & WithStatus(HarvestJobStatus value)
CreateHarvestJobResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateHarvestJobResult & WithDestination(DestinationT &&value)
AWS_MEDIAPACKAGEV2_API CreateHarvestJobResult()=default
CreateHarvestJobResult & WithChannelGroupName(ChannelGroupNameT &&value)
AWS_MEDIAPACKAGEV2_API CreateHarvestJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateHarvestJobResult & WithCreatedAt(CreatedAtT &&value)
void SetScheduleConfiguration(ScheduleConfigurationT &&value)
CreateHarvestJobResult & WithOriginEndpointName(OriginEndpointNameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateHarvestJobResult & WithScheduleConfiguration(ScheduleConfigurationT &&value)
CreateHarvestJobResult & WithErrorMessage(ErrorMessageT &&value)
CreateHarvestJobResult & WithHarvestedManifests(HarvestedManifestsT &&value)
CreateHarvestJobResult & WithRequestId(RequestIdT &&value)
CreateHarvestJobResult & WithModifiedAt(ModifiedAtT &&value)
CreateHarvestJobResult & WithDescription(DescriptionT &&value)
AWS_MEDIAPACKAGEV2_API CreateHarvestJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue