AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOriginEndpointRequest.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/ContainerType.h>
11#include <aws/mediapackagev2/model/Segment.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/mediapackagev2/model/ForceEndpointErrorConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/mediapackagev2/model/CreateHlsManifestConfiguration.h>
16#include <aws/mediapackagev2/model/CreateLowLatencyHlsManifestConfiguration.h>
17#include <aws/mediapackagev2/model/CreateDashManifestConfiguration.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace mediapackagev2
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_MEDIAPACKAGEV2_API CreateOriginEndpointRequest();
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 "CreateOriginEndpoint"; }
40
41 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
42
43 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
44
45
47
52 inline const Aws::String& GetChannelGroupName() const{ return m_channelGroupName; }
53 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
54 inline void SetChannelGroupName(const Aws::String& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = value; }
55 inline void SetChannelGroupName(Aws::String&& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = std::move(value); }
56 inline void SetChannelGroupName(const char* value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName.assign(value); }
58 inline CreateOriginEndpointRequest& WithChannelGroupName(Aws::String&& value) { SetChannelGroupName(std::move(value)); return *this;}
59 inline CreateOriginEndpointRequest& WithChannelGroupName(const char* value) { SetChannelGroupName(value); return *this;}
61
63
68 inline const Aws::String& GetChannelName() const{ return m_channelName; }
69 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
70 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
71 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
72 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
73 inline CreateOriginEndpointRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
74 inline CreateOriginEndpointRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
75 inline CreateOriginEndpointRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
77
79
85 inline const Aws::String& GetOriginEndpointName() const{ return m_originEndpointName; }
86 inline bool OriginEndpointNameHasBeenSet() const { return m_originEndpointNameHasBeenSet; }
87 inline void SetOriginEndpointName(const Aws::String& value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName = value; }
88 inline void SetOriginEndpointName(Aws::String&& value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName = std::move(value); }
89 inline void SetOriginEndpointName(const char* value) { m_originEndpointNameHasBeenSet = true; m_originEndpointName.assign(value); }
91 inline CreateOriginEndpointRequest& WithOriginEndpointName(Aws::String&& value) { SetOriginEndpointName(std::move(value)); return *this;}
92 inline CreateOriginEndpointRequest& WithOriginEndpointName(const char* value) { SetOriginEndpointName(value); return *this;}
94
96
102 inline const ContainerType& GetContainerType() const{ return m_containerType; }
103 inline bool ContainerTypeHasBeenSet() const { return m_containerTypeHasBeenSet; }
104 inline void SetContainerType(const ContainerType& value) { m_containerTypeHasBeenSet = true; m_containerType = value; }
105 inline void SetContainerType(ContainerType&& value) { m_containerTypeHasBeenSet = true; m_containerType = std::move(value); }
107 inline CreateOriginEndpointRequest& WithContainerType(ContainerType&& value) { SetContainerType(std::move(value)); return *this;}
109
111
115 inline const Segment& GetSegment() const{ return m_segment; }
116 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
117 inline void SetSegment(const Segment& value) { m_segmentHasBeenSet = true; m_segment = value; }
118 inline void SetSegment(Segment&& value) { m_segmentHasBeenSet = true; m_segment = std::move(value); }
119 inline CreateOriginEndpointRequest& WithSegment(const Segment& value) { SetSegment(value); return *this;}
120 inline CreateOriginEndpointRequest& WithSegment(Segment&& value) { SetSegment(std::move(value)); return *this;}
122
124
128 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
131 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
132 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
133 inline CreateOriginEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
134 inline CreateOriginEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
135 inline CreateOriginEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
137
139
143 inline const Aws::String& GetDescription() const{ return m_description; }
144 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
145 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
146 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
147 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
148 inline CreateOriginEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
149 inline CreateOriginEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
150 inline CreateOriginEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
152
154
160 inline int GetStartoverWindowSeconds() const{ return m_startoverWindowSeconds; }
161 inline bool StartoverWindowSecondsHasBeenSet() const { return m_startoverWindowSecondsHasBeenSet; }
162 inline void SetStartoverWindowSeconds(int value) { m_startoverWindowSecondsHasBeenSet = true; m_startoverWindowSeconds = value; }
165
167
170 inline const Aws::Vector<CreateHlsManifestConfiguration>& GetHlsManifests() const{ return m_hlsManifests; }
171 inline bool HlsManifestsHasBeenSet() const { return m_hlsManifestsHasBeenSet; }
172 inline void SetHlsManifests(const Aws::Vector<CreateHlsManifestConfiguration>& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = value; }
173 inline void SetHlsManifests(Aws::Vector<CreateHlsManifestConfiguration>&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = std::move(value); }
176 inline CreateOriginEndpointRequest& AddHlsManifests(const CreateHlsManifestConfiguration& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(value); return *this; }
177 inline CreateOriginEndpointRequest& AddHlsManifests(CreateHlsManifestConfiguration&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(std::move(value)); return *this; }
179
181
184 inline const Aws::Vector<CreateLowLatencyHlsManifestConfiguration>& GetLowLatencyHlsManifests() const{ return m_lowLatencyHlsManifests; }
185 inline bool LowLatencyHlsManifestsHasBeenSet() const { return m_lowLatencyHlsManifestsHasBeenSet; }
186 inline void SetLowLatencyHlsManifests(const Aws::Vector<CreateLowLatencyHlsManifestConfiguration>& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests = value; }
187 inline void SetLowLatencyHlsManifests(Aws::Vector<CreateLowLatencyHlsManifestConfiguration>&& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests = std::move(value); }
190 inline CreateOriginEndpointRequest& AddLowLatencyHlsManifests(const CreateLowLatencyHlsManifestConfiguration& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests.push_back(value); return *this; }
191 inline CreateOriginEndpointRequest& AddLowLatencyHlsManifests(CreateLowLatencyHlsManifestConfiguration&& value) { m_lowLatencyHlsManifestsHasBeenSet = true; m_lowLatencyHlsManifests.push_back(std::move(value)); return *this; }
193
195
198 inline const Aws::Vector<CreateDashManifestConfiguration>& GetDashManifests() const{ return m_dashManifests; }
199 inline bool DashManifestsHasBeenSet() const { return m_dashManifestsHasBeenSet; }
200 inline void SetDashManifests(const Aws::Vector<CreateDashManifestConfiguration>& value) { m_dashManifestsHasBeenSet = true; m_dashManifests = value; }
201 inline void SetDashManifests(Aws::Vector<CreateDashManifestConfiguration>&& value) { m_dashManifestsHasBeenSet = true; m_dashManifests = std::move(value); }
204 inline CreateOriginEndpointRequest& AddDashManifests(const CreateDashManifestConfiguration& value) { m_dashManifestsHasBeenSet = true; m_dashManifests.push_back(value); return *this; }
205 inline CreateOriginEndpointRequest& AddDashManifests(CreateDashManifestConfiguration&& value) { m_dashManifestsHasBeenSet = true; m_dashManifests.push_back(std::move(value)); return *this; }
207
209
212 inline const ForceEndpointErrorConfiguration& GetForceEndpointErrorConfiguration() const{ return m_forceEndpointErrorConfiguration; }
213 inline bool ForceEndpointErrorConfigurationHasBeenSet() const { return m_forceEndpointErrorConfigurationHasBeenSet; }
214 inline void SetForceEndpointErrorConfiguration(const ForceEndpointErrorConfiguration& value) { m_forceEndpointErrorConfigurationHasBeenSet = true; m_forceEndpointErrorConfiguration = value; }
215 inline void SetForceEndpointErrorConfiguration(ForceEndpointErrorConfiguration&& value) { m_forceEndpointErrorConfigurationHasBeenSet = true; m_forceEndpointErrorConfiguration = std::move(value); }
219
221
226 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
227 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
229 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
231 inline CreateOriginEndpointRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
232 inline CreateOriginEndpointRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
233 inline CreateOriginEndpointRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
234 inline CreateOriginEndpointRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
235 inline CreateOriginEndpointRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
236 inline CreateOriginEndpointRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
237 inline CreateOriginEndpointRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
238 inline CreateOriginEndpointRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
240 private:
241
242 Aws::String m_channelGroupName;
243 bool m_channelGroupNameHasBeenSet = false;
244
245 Aws::String m_channelName;
246 bool m_channelNameHasBeenSet = false;
247
248 Aws::String m_originEndpointName;
249 bool m_originEndpointNameHasBeenSet = false;
250
251 ContainerType m_containerType;
252 bool m_containerTypeHasBeenSet = false;
253
254 Segment m_segment;
255 bool m_segmentHasBeenSet = false;
256
257 Aws::String m_clientToken;
258 bool m_clientTokenHasBeenSet = false;
259
260 Aws::String m_description;
261 bool m_descriptionHasBeenSet = false;
262
263 int m_startoverWindowSeconds;
264 bool m_startoverWindowSecondsHasBeenSet = false;
265
267 bool m_hlsManifestsHasBeenSet = false;
268
270 bool m_lowLatencyHlsManifestsHasBeenSet = false;
271
273 bool m_dashManifestsHasBeenSet = false;
274
275 ForceEndpointErrorConfiguration m_forceEndpointErrorConfiguration;
276 bool m_forceEndpointErrorConfigurationHasBeenSet = false;
277
279 bool m_tagsHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace mediapackagev2
284} // namespace Aws
void SetLowLatencyHlsManifests(Aws::Vector< CreateLowLatencyHlsManifestConfiguration > &&value)
CreateOriginEndpointRequest & WithChannelGroupName(Aws::String &&value)
void SetHlsManifests(const Aws::Vector< CreateHlsManifestConfiguration > &value)
CreateOriginEndpointRequest & WithChannelName(const Aws::String &value)
CreateOriginEndpointRequest & WithClientToken(const Aws::String &value)
CreateOriginEndpointRequest & WithHlsManifests(Aws::Vector< CreateHlsManifestConfiguration > &&value)
CreateOriginEndpointRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateOriginEndpointRequest & WithOriginEndpointName(const char *value)
void SetForceEndpointErrorConfiguration(ForceEndpointErrorConfiguration &&value)
CreateOriginEndpointRequest & AddLowLatencyHlsManifests(CreateLowLatencyHlsManifestConfiguration &&value)
CreateOriginEndpointRequest & WithContainerType(ContainerType &&value)
void SetHlsManifests(Aws::Vector< CreateHlsManifestConfiguration > &&value)
CreateOriginEndpointRequest & AddHlsManifests(CreateHlsManifestConfiguration &&value)
CreateOriginEndpointRequest & WithChannelName(const char *value)
void SetDashManifests(Aws::Vector< CreateDashManifestConfiguration > &&value)
CreateOriginEndpointRequest & WithOriginEndpointName(const Aws::String &value)
const Aws::Vector< CreateHlsManifestConfiguration > & GetHlsManifests() const
CreateOriginEndpointRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Vector< CreateDashManifestConfiguration > & GetDashManifests() const
CreateOriginEndpointRequest & AddLowLatencyHlsManifests(const CreateLowLatencyHlsManifestConfiguration &value)
CreateOriginEndpointRequest & WithLowLatencyHlsManifests(const Aws::Vector< CreateLowLatencyHlsManifestConfiguration > &value)
CreateOriginEndpointRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateOriginEndpointRequest & WithDashManifests(const Aws::Vector< CreateDashManifestConfiguration > &value)
CreateOriginEndpointRequest & AddHlsManifests(const CreateHlsManifestConfiguration &value)
CreateOriginEndpointRequest & WithClientToken(Aws::String &&value)
CreateOriginEndpointRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
CreateOriginEndpointRequest & WithClientToken(const char *value)
CreateOriginEndpointRequest & WithChannelGroupName(const char *value)
CreateOriginEndpointRequest & WithSegment(const Segment &value)
CreateOriginEndpointRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const ForceEndpointErrorConfiguration & GetForceEndpointErrorConfiguration() const
CreateOriginEndpointRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateOriginEndpointRequest & WithStartoverWindowSeconds(int value)
CreateOriginEndpointRequest & WithDescription(const Aws::String &value)
CreateOriginEndpointRequest & WithSegment(Segment &&value)
AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetLowLatencyHlsManifests(const Aws::Vector< CreateLowLatencyHlsManifestConfiguration > &value)
CreateOriginEndpointRequest & WithChannelGroupName(const Aws::String &value)
CreateOriginEndpointRequest & WithForceEndpointErrorConfiguration(ForceEndpointErrorConfiguration &&value)
CreateOriginEndpointRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Vector< CreateLowLatencyHlsManifestConfiguration > & GetLowLatencyHlsManifests() const
void SetDashManifests(const Aws::Vector< CreateDashManifestConfiguration > &value)
CreateOriginEndpointRequest & WithDescription(Aws::String &&value)
CreateOriginEndpointRequest & WithLowLatencyHlsManifests(Aws::Vector< CreateLowLatencyHlsManifestConfiguration > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateOriginEndpointRequest & WithOriginEndpointName(Aws::String &&value)
CreateOriginEndpointRequest & AddDashManifests(const CreateDashManifestConfiguration &value)
void SetForceEndpointErrorConfiguration(const ForceEndpointErrorConfiguration &value)
CreateOriginEndpointRequest & WithHlsManifests(const Aws::Vector< CreateHlsManifestConfiguration > &value)
CreateOriginEndpointRequest & WithDescription(const char *value)
CreateOriginEndpointRequest & AddDashManifests(CreateDashManifestConfiguration &&value)
CreateOriginEndpointRequest & AddTags(const char *key, const char *value)
CreateOriginEndpointRequest & WithForceEndpointErrorConfiguration(const ForceEndpointErrorConfiguration &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateOriginEndpointRequest & WithChannelName(Aws::String &&value)
CreateOriginEndpointRequest & WithDashManifests(Aws::Vector< CreateDashManifestConfiguration > &&value)
CreateOriginEndpointRequest & WithContainerType(const ContainerType &value)
CreateOriginEndpointRequest & AddTags(Aws::String &&key, const char *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
std::vector< T, Aws::Allocator< T > > Vector