AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HarvestJob.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackagev2/model/Destination.h>
10#include <aws/mediapackagev2/model/HarvestedManifests.h>
11#include <aws/mediapackagev2/model/HarvesterScheduleConfiguration.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/mediapackagev2/model/HarvestJobStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace mediapackagev2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_MEDIAPACKAGEV2_API HarvestJob() = default;
41 AWS_MEDIAPACKAGEV2_API HarvestJob(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIAPACKAGEV2_API HarvestJob& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
52 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
53 template<typename ChannelGroupNameT = Aws::String>
54 void SetChannelGroupName(ChannelGroupNameT&& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = std::forward<ChannelGroupNameT>(value); }
55 template<typename ChannelGroupNameT = Aws::String>
56 HarvestJob& WithChannelGroupName(ChannelGroupNameT&& value) { SetChannelGroupName(std::forward<ChannelGroupNameT>(value)); return *this;}
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) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
67 template<typename ChannelNameT = Aws::String>
68 HarvestJob& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetOriginEndpointName() const { return m_originEndpointName; }
76 inline bool OriginEndpointNameHasBeenSet() const { return m_originEndpointNameHasBeenSet; }
77 template<typename OriginEndpointNameT = Aws::String>
78 void SetOriginEndpointName(OriginEndpointNameT&& value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName = std::forward<OriginEndpointNameT>(value); }
79 template<typename OriginEndpointNameT = Aws::String>
80 HarvestJob& WithOriginEndpointName(OriginEndpointNameT&& value) { SetOriginEndpointName(std::forward<OriginEndpointNameT>(value)); return *this;}
82
84
87 inline const Destination& GetDestination() const { return m_destination; }
88 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
89 template<typename DestinationT = Destination>
90 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
91 template<typename DestinationT = Destination>
92 HarvestJob& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
94
96
99 inline const Aws::String& GetHarvestJobName() const { return m_harvestJobName; }
100 inline bool HarvestJobNameHasBeenSet() const { return m_harvestJobNameHasBeenSet; }
101 template<typename HarvestJobNameT = Aws::String>
102 void SetHarvestJobName(HarvestJobNameT&& value) { m_harvestJobNameHasBeenSet = true; m_harvestJobName = std::forward<HarvestJobNameT>(value); }
103 template<typename HarvestJobNameT = Aws::String>
104 HarvestJob& WithHarvestJobName(HarvestJobNameT&& value) { SetHarvestJobName(std::forward<HarvestJobNameT>(value)); return *this;}
106
108
111 inline const HarvestedManifests& GetHarvestedManifests() const { return m_harvestedManifests; }
112 inline bool HarvestedManifestsHasBeenSet() const { return m_harvestedManifestsHasBeenSet; }
113 template<typename HarvestedManifestsT = HarvestedManifests>
114 void SetHarvestedManifests(HarvestedManifestsT&& value) { m_harvestedManifestsHasBeenSet = true; m_harvestedManifests = std::forward<HarvestedManifestsT>(value); }
115 template<typename HarvestedManifestsT = HarvestedManifests>
116 HarvestJob& WithHarvestedManifests(HarvestedManifestsT&& value) { SetHarvestedManifests(std::forward<HarvestedManifestsT>(value)); return *this;}
118
120
123 inline const Aws::String& GetDescription() const { return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 template<typename DescriptionT = Aws::String>
126 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
127 template<typename DescriptionT = Aws::String>
128 HarvestJob& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
130
132
135 inline const HarvesterScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
136 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
137 template<typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
138 void SetScheduleConfiguration(ScheduleConfigurationT&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value); }
139 template<typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
140 HarvestJob& WithScheduleConfiguration(ScheduleConfigurationT&& value) { SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value)); return *this;}
142
144
147 inline const Aws::String& GetArn() const { return m_arn; }
148 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
149 template<typename ArnT = Aws::String>
150 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
151 template<typename ArnT = Aws::String>
152 HarvestJob& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
154
156
159 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
160 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
161 template<typename CreatedAtT = Aws::Utils::DateTime>
162 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
163 template<typename CreatedAtT = Aws::Utils::DateTime>
164 HarvestJob& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
166
168
171 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
172 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
173 template<typename ModifiedAtT = Aws::Utils::DateTime>
174 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
175 template<typename ModifiedAtT = Aws::Utils::DateTime>
176 HarvestJob& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
178
180
184 inline HarvestJobStatus GetStatus() const { return m_status; }
185 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
186 inline void SetStatus(HarvestJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
187 inline HarvestJob& WithStatus(HarvestJobStatus value) { SetStatus(value); return *this;}
189
191
194 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
195 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
196 template<typename ErrorMessageT = Aws::String>
197 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
198 template<typename ErrorMessageT = Aws::String>
199 HarvestJob& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
201
203
206 inline const Aws::String& GetETag() const { return m_eTag; }
207 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
208 template<typename ETagT = Aws::String>
209 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
210 template<typename ETagT = Aws::String>
211 HarvestJob& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
213 private:
214
215 Aws::String m_channelGroupName;
216 bool m_channelGroupNameHasBeenSet = false;
217
218 Aws::String m_channelName;
219 bool m_channelNameHasBeenSet = false;
220
221 Aws::String m_originEndpointName;
222 bool m_originEndpointNameHasBeenSet = false;
223
224 Destination m_destination;
225 bool m_destinationHasBeenSet = false;
226
227 Aws::String m_harvestJobName;
228 bool m_harvestJobNameHasBeenSet = false;
229
230 HarvestedManifests m_harvestedManifests;
231 bool m_harvestedManifestsHasBeenSet = false;
232
233 Aws::String m_description;
234 bool m_descriptionHasBeenSet = false;
235
236 HarvesterScheduleConfiguration m_scheduleConfiguration;
237 bool m_scheduleConfigurationHasBeenSet = false;
238
239 Aws::String m_arn;
240 bool m_arnHasBeenSet = false;
241
242 Aws::Utils::DateTime m_createdAt{};
243 bool m_createdAtHasBeenSet = false;
244
245 Aws::Utils::DateTime m_modifiedAt{};
246 bool m_modifiedAtHasBeenSet = false;
247
249 bool m_statusHasBeenSet = false;
250
251 Aws::String m_errorMessage;
252 bool m_errorMessageHasBeenSet = false;
253
254 Aws::String m_eTag;
255 bool m_eTagHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace mediapackagev2
260} // namespace Aws
void SetHarvestedManifests(HarvestedManifestsT &&value)
Definition HarvestJob.h:114
const HarvestedManifests & GetHarvestedManifests() const
Definition HarvestJob.h:111
AWS_MEDIAPACKAGEV2_API HarvestJob & operator=(Aws::Utils::Json::JsonView jsonValue)
HarvestJob & WithErrorMessage(ErrorMessageT &&value)
Definition HarvestJob.h:199
void SetDestination(DestinationT &&value)
Definition HarvestJob.h:90
void SetScheduleConfiguration(ScheduleConfigurationT &&value)
Definition HarvestJob.h:138
HarvestJob & WithETag(ETagT &&value)
Definition HarvestJob.h:211
void SetDescription(DescriptionT &&value)
Definition HarvestJob.h:126
AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChannelGroupName(ChannelGroupNameT &&value)
Definition HarvestJob.h:54
HarvestJob & WithHarvestJobName(HarvestJobNameT &&value)
Definition HarvestJob.h:104
HarvestJob & WithDestination(DestinationT &&value)
Definition HarvestJob.h:92
AWS_MEDIAPACKAGEV2_API HarvestJob()=default
const Aws::String & GetOriginEndpointName() const
Definition HarvestJob.h:75
const Aws::String & GetErrorMessage() const
Definition HarvestJob.h:194
void SetModifiedAt(ModifiedAtT &&value)
Definition HarvestJob.h:174
void SetHarvestJobName(HarvestJobNameT &&value)
Definition HarvestJob.h:102
void SetOriginEndpointName(OriginEndpointNameT &&value)
Definition HarvestJob.h:78
const Aws::String & GetDescription() const
Definition HarvestJob.h:123
HarvestJob & WithModifiedAt(ModifiedAtT &&value)
Definition HarvestJob.h:176
HarvestJobStatus GetStatus() const
Definition HarvestJob.h:184
void SetChannelName(ChannelNameT &&value)
Definition HarvestJob.h:66
void SetStatus(HarvestJobStatus value)
Definition HarvestJob.h:186
HarvestJob & WithOriginEndpointName(OriginEndpointNameT &&value)
Definition HarvestJob.h:80
HarvestJob & WithChannelGroupName(ChannelGroupNameT &&value)
Definition HarvestJob.h:56
const Aws::String & GetHarvestJobName() const
Definition HarvestJob.h:99
HarvestJob & WithHarvestedManifests(HarvestedManifestsT &&value)
Definition HarvestJob.h:116
const Destination & GetDestination() const
Definition HarvestJob.h:87
const Aws::Utils::DateTime & GetCreatedAt() const
Definition HarvestJob.h:159
HarvestJob & WithChannelName(ChannelNameT &&value)
Definition HarvestJob.h:68
const Aws::String & GetETag() const
Definition HarvestJob.h:206
const Aws::String & GetChannelName() const
Definition HarvestJob.h:63
HarvestJob & WithStatus(HarvestJobStatus value)
Definition HarvestJob.h:187
const Aws::String & GetChannelGroupName() const
Definition HarvestJob.h:51
void SetErrorMessage(ErrorMessageT &&value)
Definition HarvestJob.h:197
const HarvesterScheduleConfiguration & GetScheduleConfiguration() const
Definition HarvestJob.h:135
HarvestJob & WithDescription(DescriptionT &&value)
Definition HarvestJob.h:128
const Aws::String & GetArn() const
Definition HarvestJob.h:147
HarvestJob & WithScheduleConfiguration(ScheduleConfigurationT &&value)
Definition HarvestJob.h:140
const Aws::Utils::DateTime & GetModifiedAt() const
Definition HarvestJob.h:171
HarvestJob & WithCreatedAt(CreatedAtT &&value)
Definition HarvestJob.h:164
HarvestJob & WithArn(ArnT &&value)
Definition HarvestJob.h:152
void SetCreatedAt(CreatedAtT &&value)
Definition HarvestJob.h:162
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