AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateHarvestJobRequest.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/mediapackagev2/Mediapackagev2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediapackagev2/model/HarvestedManifests.h>
11#include <aws/mediapackagev2/model/HarvesterScheduleConfiguration.h>
12#include <aws/mediapackagev2/model/Destination.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace mediapackagev2
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_MEDIAPACKAGEV2_API CreateHarvestJobRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateHarvestJob"; }
40
41 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
42
43 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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 CreateHarvestJobRequest& 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 CreateHarvestJobRequest& 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 CreateHarvestJobRequest& WithOriginEndpointName(OriginEndpointNameT&& value) { SetOriginEndpointName(std::forward<OriginEndpointNameT>(value)); return *this;}
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 CreateHarvestJobRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
99 inline const HarvestedManifests& GetHarvestedManifests() const { return m_harvestedManifests; }
100 inline bool HarvestedManifestsHasBeenSet() const { return m_harvestedManifestsHasBeenSet; }
101 template<typename HarvestedManifestsT = HarvestedManifests>
102 void SetHarvestedManifests(HarvestedManifestsT&& value) { m_harvestedManifestsHasBeenSet = true; m_harvestedManifests = std::forward<HarvestedManifestsT>(value); }
103 template<typename HarvestedManifestsT = HarvestedManifests>
104 CreateHarvestJobRequest& WithHarvestedManifests(HarvestedManifestsT&& value) { SetHarvestedManifests(std::forward<HarvestedManifestsT>(value)); return *this;}
106
108
112 inline const HarvesterScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
113 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
114 template<typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
115 void SetScheduleConfiguration(ScheduleConfigurationT&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value); }
116 template<typename ScheduleConfigurationT = HarvesterScheduleConfiguration>
117 CreateHarvestJobRequest& WithScheduleConfiguration(ScheduleConfigurationT&& value) { SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value)); return *this;}
119
121
124 inline const Destination& GetDestination() const { return m_destination; }
125 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
126 template<typename DestinationT = Destination>
127 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
128 template<typename DestinationT = Destination>
129 CreateHarvestJobRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
131
133
137 inline const Aws::String& GetClientToken() const { return m_clientToken; }
138 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
139 template<typename ClientTokenT = Aws::String>
140 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
141 template<typename ClientTokenT = Aws::String>
142 CreateHarvestJobRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
144
146
149 inline const Aws::String& GetHarvestJobName() const { return m_harvestJobName; }
150 inline bool HarvestJobNameHasBeenSet() const { return m_harvestJobNameHasBeenSet; }
151 template<typename HarvestJobNameT = Aws::String>
152 void SetHarvestJobName(HarvestJobNameT&& value) { m_harvestJobNameHasBeenSet = true; m_harvestJobName = std::forward<HarvestJobNameT>(value); }
153 template<typename HarvestJobNameT = Aws::String>
154 CreateHarvestJobRequest& WithHarvestJobName(HarvestJobNameT&& value) { SetHarvestJobName(std::forward<HarvestJobNameT>(value)); return *this;}
156
158
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 CreateHarvestJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 CreateHarvestJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
170 }
172 private:
173
174 Aws::String m_channelGroupName;
175 bool m_channelGroupNameHasBeenSet = false;
176
177 Aws::String m_channelName;
178 bool m_channelNameHasBeenSet = false;
179
180 Aws::String m_originEndpointName;
181 bool m_originEndpointNameHasBeenSet = false;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 HarvestedManifests m_harvestedManifests;
187 bool m_harvestedManifestsHasBeenSet = false;
188
189 HarvesterScheduleConfiguration m_scheduleConfiguration;
190 bool m_scheduleConfigurationHasBeenSet = false;
191
192 Destination m_destination;
193 bool m_destinationHasBeenSet = false;
194
196 bool m_clientTokenHasBeenSet = true;
197
198 Aws::String m_harvestJobName;
199 bool m_harvestJobNameHasBeenSet = false;
200
202 bool m_tagsHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace mediapackagev2
207} // 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