AWS SDK for C++

AWS SDK for C++ Version 1.11.699

Loading...
Searching...
No Matches
CreateHarvestJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediapackagev2/Mediapackagev2Request.h>
11#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
12#include <aws/mediapackagev2/model/Destination.h>
13#include <aws/mediapackagev2/model/HarvestedManifests.h>
14#include <aws/mediapackagev2/model/HarvesterScheduleConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace mediapackagev2 {
20namespace Model {
21
29 public:
30 AWS_MEDIAPACKAGEV2_API CreateHarvestJobRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateHarvestJob"; }
37
38 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
39
40 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
43
47 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
48 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
49 template <typename ChannelGroupNameT = Aws::String>
50 void SetChannelGroupName(ChannelGroupNameT&& value) {
51 m_channelGroupNameHasBeenSet = true;
52 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
53 }
54 template <typename ChannelGroupNameT = Aws::String>
55 CreateHarvestJobRequest& WithChannelGroupName(ChannelGroupNameT&& value) {
56 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetChannelName() const { return m_channelName; }
66 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
67 template <typename ChannelNameT = Aws::String>
68 void SetChannelName(ChannelNameT&& value) {
69 m_channelNameHasBeenSet = true;
70 m_channelName = std::forward<ChannelNameT>(value);
71 }
72 template <typename ChannelNameT = Aws::String>
74 SetChannelName(std::forward<ChannelNameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetOriginEndpointName() const { return m_originEndpointName; }
84 inline bool OriginEndpointNameHasBeenSet() const { return m_originEndpointNameHasBeenSet; }
85 template <typename OriginEndpointNameT = Aws::String>
86 void SetOriginEndpointName(OriginEndpointNameT&& value) {
87 m_originEndpointNameHasBeenSet = true;
88 m_originEndpointName = std::forward<OriginEndpointNameT>(value);
89 }
90 template <typename OriginEndpointNameT = Aws::String>
91 CreateHarvestJobRequest& WithOriginEndpointName(OriginEndpointNameT&& value) {
92 SetOriginEndpointName(std::forward<OriginEndpointNameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
119 inline const HarvestedManifests& GetHarvestedManifests() const { return m_harvestedManifests; }
120 inline bool HarvestedManifestsHasBeenSet() const { return m_harvestedManifestsHasBeenSet; }
121 template <typename HarvestedManifestsT = HarvestedManifests>
122 void SetHarvestedManifests(HarvestedManifestsT&& value) {
123 m_harvestedManifestsHasBeenSet = true;
124 m_harvestedManifests = std::forward<HarvestedManifestsT>(value);
125 }
126 template <typename HarvestedManifestsT = HarvestedManifests>
127 CreateHarvestJobRequest& WithHarvestedManifests(HarvestedManifestsT&& value) {
128 SetHarvestedManifests(std::forward<HarvestedManifestsT>(value));
129 return *this;
130 }
132
134
138 inline const HarvesterScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
139 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
140 template <typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
141 void SetScheduleConfiguration(ScheduleConfigurationT&& value) {
142 m_scheduleConfigurationHasBeenSet = true;
143 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
144 }
145 template <typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
146 CreateHarvestJobRequest& WithScheduleConfiguration(ScheduleConfigurationT&& value) {
147 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
148 return *this;
149 }
151
153
156 inline const Destination& GetDestination() const { return m_destination; }
157 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
158 template <typename DestinationT = Destination>
159 void SetDestination(DestinationT&& value) {
160 m_destinationHasBeenSet = true;
161 m_destination = std::forward<DestinationT>(value);
162 }
163 template <typename DestinationT = Destination>
165 SetDestination(std::forward<DestinationT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetClientToken() const { return m_clientToken; }
176 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
177 template <typename ClientTokenT = Aws::String>
178 void SetClientToken(ClientTokenT&& value) {
179 m_clientTokenHasBeenSet = true;
180 m_clientToken = std::forward<ClientTokenT>(value);
181 }
182 template <typename ClientTokenT = Aws::String>
184 SetClientToken(std::forward<ClientTokenT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetHarvestJobName() const { return m_harvestJobName; }
194 inline bool HarvestJobNameHasBeenSet() const { return m_harvestJobNameHasBeenSet; }
195 template <typename HarvestJobNameT = Aws::String>
196 void SetHarvestJobName(HarvestJobNameT&& value) {
197 m_harvestJobNameHasBeenSet = true;
198 m_harvestJobName = std::forward<HarvestJobNameT>(value);
199 }
200 template <typename HarvestJobNameT = Aws::String>
201 CreateHarvestJobRequest& WithHarvestJobName(HarvestJobNameT&& value) {
202 SetHarvestJobName(std::forward<HarvestJobNameT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
212 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
214 void SetTags(TagsT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags = std::forward<TagsT>(value);
217 }
218 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 SetTags(std::forward<TagsT>(value));
221 return *this;
222 }
223 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
224 CreateHarvestJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
225 m_tagsHasBeenSet = true;
226 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_channelGroupName;
232 bool m_channelGroupNameHasBeenSet = false;
233
234 Aws::String m_channelName;
235 bool m_channelNameHasBeenSet = false;
236
237 Aws::String m_originEndpointName;
238 bool m_originEndpointNameHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 HarvestedManifests m_harvestedManifests;
244 bool m_harvestedManifestsHasBeenSet = false;
245
246 HarvesterScheduleConfiguration m_scheduleConfiguration;
247 bool m_scheduleConfigurationHasBeenSet = false;
248
249 Destination m_destination;
250 bool m_destinationHasBeenSet = false;
251
253 bool m_clientTokenHasBeenSet = true;
254
255 Aws::String m_harvestJobName;
256 bool m_harvestJobNameHasBeenSet = false;
257
259 bool m_tagsHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace mediapackagev2
264} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateHarvestJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateHarvestJobRequest & WithOriginEndpointName(OriginEndpointNameT &&value)
const HarvesterScheduleConfiguration & GetScheduleConfiguration() const
CreateHarvestJobRequest & WithDestination(DestinationT &&value)
CreateHarvestJobRequest & WithTags(TagsT &&value)
CreateHarvestJobRequest & WithScheduleConfiguration(ScheduleConfigurationT &&value)
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
CreateHarvestJobRequest & WithChannelGroupName(ChannelGroupNameT &&value)
CreateHarvestJobRequest & WithClientToken(ClientTokenT &&value)
CreateHarvestJobRequest & WithDescription(DescriptionT &&value)
AWS_MEDIAPACKAGEV2_API CreateHarvestJobRequest()=default
void SetScheduleConfiguration(ScheduleConfigurationT &&value)
CreateHarvestJobRequest & WithChannelName(ChannelNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateHarvestJobRequest & WithHarvestJobName(HarvestJobNameT &&value)
CreateHarvestJobRequest & WithHarvestedManifests(HarvestedManifestsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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