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/mediapackage/MediaPackage_EXPORTS.h>
8#include <aws/mediapackage/MediaPackageRequest.h>
9#include <aws/mediapackage/model/Authorization.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediapackage/model/CmafPackageCreateOrUpdateParameters.h>
12#include <aws/mediapackage/model/DashPackage.h>
13#include <aws/mediapackage/model/HlsPackage.h>
14#include <aws/mediapackage/model/MssPackage.h>
15#include <aws/mediapackage/model/Origination.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18#include <utility>
19
20namespace Aws
21{
22namespace MediaPackage
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MEDIAPACKAGE_API CreateOriginEndpointRequest();
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateOriginEndpoint"; }
43
44 AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override;
45
46
48
49 inline const Authorization& GetAuthorization() const{ return m_authorization; }
50 inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
51 inline void SetAuthorization(const Authorization& value) { m_authorizationHasBeenSet = true; m_authorization = value; }
52 inline void SetAuthorization(Authorization&& value) { m_authorizationHasBeenSet = true; m_authorization = std::move(value); }
53 inline CreateOriginEndpointRequest& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
54 inline CreateOriginEndpointRequest& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
56
58
64 inline const Aws::String& GetChannelId() const{ return m_channelId; }
65 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
66 inline void SetChannelId(const Aws::String& value) { m_channelIdHasBeenSet = true; m_channelId = value; }
67 inline void SetChannelId(Aws::String&& value) { m_channelIdHasBeenSet = true; m_channelId = std::move(value); }
68 inline void SetChannelId(const char* value) { m_channelIdHasBeenSet = true; m_channelId.assign(value); }
69 inline CreateOriginEndpointRequest& WithChannelId(const Aws::String& value) { SetChannelId(value); return *this;}
70 inline CreateOriginEndpointRequest& WithChannelId(Aws::String&& value) { SetChannelId(std::move(value)); return *this;}
71 inline CreateOriginEndpointRequest& WithChannelId(const char* value) { SetChannelId(value); return *this;}
73
75
76 inline const CmafPackageCreateOrUpdateParameters& GetCmafPackage() const{ return m_cmafPackage; }
77 inline bool CmafPackageHasBeenSet() const { return m_cmafPackageHasBeenSet; }
78 inline void SetCmafPackage(const CmafPackageCreateOrUpdateParameters& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = value; }
79 inline void SetCmafPackage(CmafPackageCreateOrUpdateParameters&& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = std::move(value); }
83
85
86 inline const DashPackage& GetDashPackage() const{ return m_dashPackage; }
87 inline bool DashPackageHasBeenSet() const { return m_dashPackageHasBeenSet; }
88 inline void SetDashPackage(const DashPackage& value) { m_dashPackageHasBeenSet = true; m_dashPackage = value; }
89 inline void SetDashPackage(DashPackage&& value) { m_dashPackageHasBeenSet = true; m_dashPackage = std::move(value); }
90 inline CreateOriginEndpointRequest& WithDashPackage(const DashPackage& value) { SetDashPackage(value); return *this;}
91 inline CreateOriginEndpointRequest& WithDashPackage(DashPackage&& value) { SetDashPackage(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 inline CreateOriginEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 inline CreateOriginEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline CreateOriginEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
110 inline const HlsPackage& GetHlsPackage() const{ return m_hlsPackage; }
111 inline bool HlsPackageHasBeenSet() const { return m_hlsPackageHasBeenSet; }
112 inline void SetHlsPackage(const HlsPackage& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = value; }
113 inline void SetHlsPackage(HlsPackage&& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = std::move(value); }
114 inline CreateOriginEndpointRequest& WithHlsPackage(const HlsPackage& value) { SetHlsPackage(value); return *this;}
115 inline CreateOriginEndpointRequest& WithHlsPackage(HlsPackage&& value) { SetHlsPackage(std::move(value)); return *this;}
117
119
125 inline const Aws::String& GetId() const{ return m_id; }
126 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
127 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
128 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
129 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
130 inline CreateOriginEndpointRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
131 inline CreateOriginEndpointRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
132 inline CreateOriginEndpointRequest& WithId(const char* value) { SetId(value); return *this;}
134
136
140 inline const Aws::String& GetManifestName() const{ return m_manifestName; }
141 inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
142 inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
143 inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
144 inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
145 inline CreateOriginEndpointRequest& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
146 inline CreateOriginEndpointRequest& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
147 inline CreateOriginEndpointRequest& WithManifestName(const char* value) { SetManifestName(value); return *this;}
149
151
152 inline const MssPackage& GetMssPackage() const{ return m_mssPackage; }
153 inline bool MssPackageHasBeenSet() const { return m_mssPackageHasBeenSet; }
154 inline void SetMssPackage(const MssPackage& value) { m_mssPackageHasBeenSet = true; m_mssPackage = value; }
155 inline void SetMssPackage(MssPackage&& value) { m_mssPackageHasBeenSet = true; m_mssPackage = std::move(value); }
156 inline CreateOriginEndpointRequest& WithMssPackage(const MssPackage& value) { SetMssPackage(value); return *this;}
157 inline CreateOriginEndpointRequest& WithMssPackage(MssPackage&& value) { SetMssPackage(std::move(value)); return *this;}
159
161
171 inline const Origination& GetOrigination() const{ return m_origination; }
172 inline bool OriginationHasBeenSet() const { return m_originationHasBeenSet; }
173 inline void SetOrigination(const Origination& value) { m_originationHasBeenSet = true; m_origination = value; }
174 inline void SetOrigination(Origination&& value) { m_originationHasBeenSet = true; m_origination = std::move(value); }
175 inline CreateOriginEndpointRequest& WithOrigination(const Origination& value) { SetOrigination(value); return *this;}
176 inline CreateOriginEndpointRequest& WithOrigination(Origination&& value) { SetOrigination(std::move(value)); return *this;}
178
180
186 inline int GetStartoverWindowSeconds() const{ return m_startoverWindowSeconds; }
187 inline bool StartoverWindowSecondsHasBeenSet() const { return m_startoverWindowSecondsHasBeenSet; }
188 inline void SetStartoverWindowSeconds(int value) { m_startoverWindowSecondsHasBeenSet = true; m_startoverWindowSeconds = value; }
191
193
194 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
195 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
196 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
197 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
199 inline CreateOriginEndpointRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
200 inline CreateOriginEndpointRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
201 inline CreateOriginEndpointRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 inline CreateOriginEndpointRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
203 inline CreateOriginEndpointRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
204 inline CreateOriginEndpointRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
205 inline CreateOriginEndpointRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
206 inline CreateOriginEndpointRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
208
210
216 inline int GetTimeDelaySeconds() const{ return m_timeDelaySeconds; }
217 inline bool TimeDelaySecondsHasBeenSet() const { return m_timeDelaySecondsHasBeenSet; }
218 inline void SetTimeDelaySeconds(int value) { m_timeDelaySecondsHasBeenSet = true; m_timeDelaySeconds = value; }
219 inline CreateOriginEndpointRequest& WithTimeDelaySeconds(int value) { SetTimeDelaySeconds(value); return *this;}
221
223
227 inline const Aws::Vector<Aws::String>& GetWhitelist() const{ return m_whitelist; }
228 inline bool WhitelistHasBeenSet() const { return m_whitelistHasBeenSet; }
229 inline void SetWhitelist(const Aws::Vector<Aws::String>& value) { m_whitelistHasBeenSet = true; m_whitelist = value; }
230 inline void SetWhitelist(Aws::Vector<Aws::String>&& value) { m_whitelistHasBeenSet = true; m_whitelist = std::move(value); }
232 inline CreateOriginEndpointRequest& WithWhitelist(Aws::Vector<Aws::String>&& value) { SetWhitelist(std::move(value)); return *this;}
233 inline CreateOriginEndpointRequest& AddWhitelist(const Aws::String& value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(value); return *this; }
234 inline CreateOriginEndpointRequest& AddWhitelist(Aws::String&& value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(std::move(value)); return *this; }
235 inline CreateOriginEndpointRequest& AddWhitelist(const char* value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(value); return *this; }
237 private:
238
239 Authorization m_authorization;
240 bool m_authorizationHasBeenSet = false;
241
242 Aws::String m_channelId;
243 bool m_channelIdHasBeenSet = false;
244
246 bool m_cmafPackageHasBeenSet = false;
247
248 DashPackage m_dashPackage;
249 bool m_dashPackageHasBeenSet = false;
250
251 Aws::String m_description;
252 bool m_descriptionHasBeenSet = false;
253
254 HlsPackage m_hlsPackage;
255 bool m_hlsPackageHasBeenSet = false;
256
257 Aws::String m_id;
258 bool m_idHasBeenSet = false;
259
260 Aws::String m_manifestName;
261 bool m_manifestNameHasBeenSet = false;
262
263 MssPackage m_mssPackage;
264 bool m_mssPackageHasBeenSet = false;
265
266 Origination m_origination;
267 bool m_originationHasBeenSet = false;
268
269 int m_startoverWindowSeconds;
270 bool m_startoverWindowSecondsHasBeenSet = false;
271
273 bool m_tagsHasBeenSet = false;
274
275 int m_timeDelaySeconds;
276 bool m_timeDelaySecondsHasBeenSet = false;
277
278 Aws::Vector<Aws::String> m_whitelist;
279 bool m_whitelistHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace MediaPackage
284} // namespace Aws
CreateOriginEndpointRequest & WithHlsPackage(HlsPackage &&value)
CreateOriginEndpointRequest & WithId(const char *value)
CreateOriginEndpointRequest & WithOrigination(const Origination &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateOriginEndpointRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateOriginEndpointRequest & WithStartoverWindowSeconds(int value)
CreateOriginEndpointRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateOriginEndpointRequest & WithHlsPackage(const HlsPackage &value)
CreateOriginEndpointRequest & WithCmafPackage(CmafPackageCreateOrUpdateParameters &&value)
void SetCmafPackage(const CmafPackageCreateOrUpdateParameters &value)
CreateOriginEndpointRequest & WithWhitelist(Aws::Vector< Aws::String > &&value)
CreateOriginEndpointRequest & WithManifestName(const char *value)
CreateOriginEndpointRequest & WithAuthorization(Authorization &&value)
CreateOriginEndpointRequest & WithMssPackage(MssPackage &&value)
CreateOriginEndpointRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateOriginEndpointRequest & WithDashPackage(DashPackage &&value)
CreateOriginEndpointRequest & WithAuthorization(const Authorization &value)
CreateOriginEndpointRequest & WithManifestName(Aws::String &&value)
CreateOriginEndpointRequest & WithTimeDelaySeconds(int value)
CreateOriginEndpointRequest & WithWhitelist(const Aws::Vector< Aws::String > &value)
CreateOriginEndpointRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateOriginEndpointRequest & WithDescription(const Aws::String &value)
CreateOriginEndpointRequest & AddWhitelist(const Aws::String &value)
CreateOriginEndpointRequest & WithChannelId(const char *value)
CreateOriginEndpointRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateOriginEndpointRequest & AddTags(const char *key, const char *value)
void SetCmafPackage(CmafPackageCreateOrUpdateParameters &&value)
CreateOriginEndpointRequest & WithDescription(Aws::String &&value)
AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override
void SetWhitelist(const Aws::Vector< Aws::String > &value)
const CmafPackageCreateOrUpdateParameters & GetCmafPackage() const
CreateOriginEndpointRequest & WithId(const Aws::String &value)
CreateOriginEndpointRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateOriginEndpointRequest & WithDescription(const char *value)
CreateOriginEndpointRequest & WithChannelId(Aws::String &&value)
CreateOriginEndpointRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateOriginEndpointRequest & WithManifestName(const Aws::String &value)
CreateOriginEndpointRequest & WithCmafPackage(const CmafPackageCreateOrUpdateParameters &value)
CreateOriginEndpointRequest & AddWhitelist(Aws::String &&value)
CreateOriginEndpointRequest & WithChannelId(const Aws::String &value)
CreateOriginEndpointRequest & AddWhitelist(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateOriginEndpointRequest & AddTags(Aws::String &&key, const char *value)
CreateOriginEndpointRequest & WithId(Aws::String &&value)
CreateOriginEndpointRequest & WithOrigination(Origination &&value)
CreateOriginEndpointRequest & WithMssPackage(const MssPackage &value)
CreateOriginEndpointRequest & WithDashPackage(const DashPackage &value)
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