AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginEndpoint.h
1
6#pragma once
7#include <aws/mediapackage/MediaPackage_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackage/model/Authorization.h>
10#include <aws/mediapackage/model/CmafPackage.h>
11#include <aws/mediapackage/model/DashPackage.h>
12#include <aws/mediapackage/model/HlsPackage.h>
13#include <aws/mediapackage/model/MssPackage.h>
14#include <aws/mediapackage/model/Origination.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace MediaPackage
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_MEDIAPACKAGE_API OriginEndpoint();
43 AWS_MEDIAPACKAGE_API OriginEndpoint(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MEDIAPACKAGE_API OriginEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetArn() const{ return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline OriginEndpoint& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline OriginEndpoint& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline OriginEndpoint& WithArn(const char* value) { SetArn(value); return *this;}
61
63
64 inline const Authorization& GetAuthorization() const{ return m_authorization; }
65 inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
66 inline void SetAuthorization(const Authorization& value) { m_authorizationHasBeenSet = true; m_authorization = value; }
67 inline void SetAuthorization(Authorization&& value) { m_authorizationHasBeenSet = true; m_authorization = std::move(value); }
68 inline OriginEndpoint& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
69 inline OriginEndpoint& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetChannelId() const{ return m_channelId; }
77 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
78 inline void SetChannelId(const Aws::String& value) { m_channelIdHasBeenSet = true; m_channelId = value; }
79 inline void SetChannelId(Aws::String&& value) { m_channelIdHasBeenSet = true; m_channelId = std::move(value); }
80 inline void SetChannelId(const char* value) { m_channelIdHasBeenSet = true; m_channelId.assign(value); }
81 inline OriginEndpoint& WithChannelId(const Aws::String& value) { SetChannelId(value); return *this;}
82 inline OriginEndpoint& WithChannelId(Aws::String&& value) { SetChannelId(std::move(value)); return *this;}
83 inline OriginEndpoint& WithChannelId(const char* value) { SetChannelId(value); return *this;}
85
87
88 inline const CmafPackage& GetCmafPackage() const{ return m_cmafPackage; }
89 inline bool CmafPackageHasBeenSet() const { return m_cmafPackageHasBeenSet; }
90 inline void SetCmafPackage(const CmafPackage& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = value; }
91 inline void SetCmafPackage(CmafPackage&& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = std::move(value); }
92 inline OriginEndpoint& WithCmafPackage(const CmafPackage& value) { SetCmafPackage(value); return *this;}
93 inline OriginEndpoint& WithCmafPackage(CmafPackage&& value) { SetCmafPackage(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
101 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
102 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
103 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
104 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
105 inline OriginEndpoint& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
106 inline OriginEndpoint& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
107 inline OriginEndpoint& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
109
111
112 inline const DashPackage& GetDashPackage() const{ return m_dashPackage; }
113 inline bool DashPackageHasBeenSet() const { return m_dashPackageHasBeenSet; }
114 inline void SetDashPackage(const DashPackage& value) { m_dashPackageHasBeenSet = true; m_dashPackage = value; }
115 inline void SetDashPackage(DashPackage&& value) { m_dashPackageHasBeenSet = true; m_dashPackage = std::move(value); }
116 inline OriginEndpoint& WithDashPackage(const DashPackage& value) { SetDashPackage(value); return *this;}
117 inline OriginEndpoint& WithDashPackage(DashPackage&& value) { SetDashPackage(std::move(value)); return *this;}
119
121
124 inline const Aws::String& GetDescription() const{ return m_description; }
125 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
126 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
127 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
128 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
129 inline OriginEndpoint& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
130 inline OriginEndpoint& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
131 inline OriginEndpoint& WithDescription(const char* value) { SetDescription(value); return *this;}
133
135
136 inline const HlsPackage& GetHlsPackage() const{ return m_hlsPackage; }
137 inline bool HlsPackageHasBeenSet() const { return m_hlsPackageHasBeenSet; }
138 inline void SetHlsPackage(const HlsPackage& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = value; }
139 inline void SetHlsPackage(HlsPackage&& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = std::move(value); }
140 inline OriginEndpoint& WithHlsPackage(const HlsPackage& value) { SetHlsPackage(value); return *this;}
141 inline OriginEndpoint& WithHlsPackage(HlsPackage&& value) { SetHlsPackage(std::move(value)); return *this;}
143
145
148 inline const Aws::String& GetId() const{ return m_id; }
149 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
150 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
151 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
152 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
153 inline OriginEndpoint& WithId(const Aws::String& value) { SetId(value); return *this;}
154 inline OriginEndpoint& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
155 inline OriginEndpoint& WithId(const char* value) { SetId(value); return *this;}
157
159
162 inline const Aws::String& GetManifestName() const{ return m_manifestName; }
163 inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
164 inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
165 inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
166 inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
167 inline OriginEndpoint& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
168 inline OriginEndpoint& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
169 inline OriginEndpoint& WithManifestName(const char* value) { SetManifestName(value); return *this;}
171
173
174 inline const MssPackage& GetMssPackage() const{ return m_mssPackage; }
175 inline bool MssPackageHasBeenSet() const { return m_mssPackageHasBeenSet; }
176 inline void SetMssPackage(const MssPackage& value) { m_mssPackageHasBeenSet = true; m_mssPackage = value; }
177 inline void SetMssPackage(MssPackage&& value) { m_mssPackageHasBeenSet = true; m_mssPackage = std::move(value); }
178 inline OriginEndpoint& WithMssPackage(const MssPackage& value) { SetMssPackage(value); return *this;}
179 inline OriginEndpoint& WithMssPackage(MssPackage&& value) { SetMssPackage(std::move(value)); return *this;}
181
183
193 inline const Origination& GetOrigination() const{ return m_origination; }
194 inline bool OriginationHasBeenSet() const { return m_originationHasBeenSet; }
195 inline void SetOrigination(const Origination& value) { m_originationHasBeenSet = true; m_origination = value; }
196 inline void SetOrigination(Origination&& value) { m_originationHasBeenSet = true; m_origination = std::move(value); }
197 inline OriginEndpoint& WithOrigination(const Origination& value) { SetOrigination(value); return *this;}
198 inline OriginEndpoint& WithOrigination(Origination&& value) { SetOrigination(std::move(value)); return *this;}
200
202
208 inline int GetStartoverWindowSeconds() const{ return m_startoverWindowSeconds; }
209 inline bool StartoverWindowSecondsHasBeenSet() const { return m_startoverWindowSecondsHasBeenSet; }
210 inline void SetStartoverWindowSeconds(int value) { m_startoverWindowSecondsHasBeenSet = true; m_startoverWindowSeconds = value; }
211 inline OriginEndpoint& WithStartoverWindowSeconds(int value) { SetStartoverWindowSeconds(value); return *this;}
213
215
216 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
217 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
218 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
219 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
220 inline OriginEndpoint& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
221 inline OriginEndpoint& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
222 inline OriginEndpoint& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
223 inline OriginEndpoint& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
224 inline OriginEndpoint& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
225 inline OriginEndpoint& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
226 inline OriginEndpoint& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
227 inline OriginEndpoint& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
228 inline OriginEndpoint& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
230
232
238 inline int GetTimeDelaySeconds() const{ return m_timeDelaySeconds; }
239 inline bool TimeDelaySecondsHasBeenSet() const { return m_timeDelaySecondsHasBeenSet; }
240 inline void SetTimeDelaySeconds(int value) { m_timeDelaySecondsHasBeenSet = true; m_timeDelaySeconds = value; }
241 inline OriginEndpoint& WithTimeDelaySeconds(int value) { SetTimeDelaySeconds(value); return *this;}
243
245
248 inline const Aws::String& GetUrl() const{ return m_url; }
249 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
250 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
251 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
252 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
253 inline OriginEndpoint& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
254 inline OriginEndpoint& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
255 inline OriginEndpoint& WithUrl(const char* value) { SetUrl(value); return *this;}
257
259
263 inline const Aws::Vector<Aws::String>& GetWhitelist() const{ return m_whitelist; }
264 inline bool WhitelistHasBeenSet() const { return m_whitelistHasBeenSet; }
265 inline void SetWhitelist(const Aws::Vector<Aws::String>& value) { m_whitelistHasBeenSet = true; m_whitelist = value; }
266 inline void SetWhitelist(Aws::Vector<Aws::String>&& value) { m_whitelistHasBeenSet = true; m_whitelist = std::move(value); }
267 inline OriginEndpoint& WithWhitelist(const Aws::Vector<Aws::String>& value) { SetWhitelist(value); return *this;}
268 inline OriginEndpoint& WithWhitelist(Aws::Vector<Aws::String>&& value) { SetWhitelist(std::move(value)); return *this;}
269 inline OriginEndpoint& AddWhitelist(const Aws::String& value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(value); return *this; }
270 inline OriginEndpoint& AddWhitelist(Aws::String&& value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(std::move(value)); return *this; }
271 inline OriginEndpoint& AddWhitelist(const char* value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(value); return *this; }
273 private:
274
275 Aws::String m_arn;
276 bool m_arnHasBeenSet = false;
277
278 Authorization m_authorization;
279 bool m_authorizationHasBeenSet = false;
280
281 Aws::String m_channelId;
282 bool m_channelIdHasBeenSet = false;
283
284 CmafPackage m_cmafPackage;
285 bool m_cmafPackageHasBeenSet = false;
286
287 Aws::String m_createdAt;
288 bool m_createdAtHasBeenSet = false;
289
290 DashPackage m_dashPackage;
291 bool m_dashPackageHasBeenSet = false;
292
293 Aws::String m_description;
294 bool m_descriptionHasBeenSet = false;
295
296 HlsPackage m_hlsPackage;
297 bool m_hlsPackageHasBeenSet = false;
298
299 Aws::String m_id;
300 bool m_idHasBeenSet = false;
301
302 Aws::String m_manifestName;
303 bool m_manifestNameHasBeenSet = false;
304
305 MssPackage m_mssPackage;
306 bool m_mssPackageHasBeenSet = false;
307
308 Origination m_origination;
309 bool m_originationHasBeenSet = false;
310
311 int m_startoverWindowSeconds;
312 bool m_startoverWindowSecondsHasBeenSet = false;
313
315 bool m_tagsHasBeenSet = false;
316
317 int m_timeDelaySeconds;
318 bool m_timeDelaySecondsHasBeenSet = false;
319
320 Aws::String m_url;
321 bool m_urlHasBeenSet = false;
322
323 Aws::Vector<Aws::String> m_whitelist;
324 bool m_whitelistHasBeenSet = false;
325 };
326
327} // namespace Model
328} // namespace MediaPackage
329} // namespace Aws
OriginEndpoint & WithId(Aws::String &&value)
OriginEndpoint & WithMssPackage(const MssPackage &value)
void SetOrigination(const Origination &value)
void SetCmafPackage(CmafPackage &&value)
OriginEndpoint & WithCreatedAt(Aws::String &&value)
void SetWhitelist(Aws::Vector< Aws::String > &&value)
OriginEndpoint & WithHlsPackage(HlsPackage &&value)
OriginEndpoint & AddWhitelist(const Aws::String &value)
const Aws::String & GetManifestName() const
OriginEndpoint & AddWhitelist(Aws::String &&value)
OriginEndpoint & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
OriginEndpoint & WithOrigination(const Origination &value)
OriginEndpoint & WithDescription(Aws::String &&value)
const Authorization & GetAuthorization() const
void SetManifestName(Aws::String &&value)
void SetDashPackage(const DashPackage &value)
OriginEndpoint & WithDescription(const char *value)
const Origination & GetOrigination() const
const Aws::String & GetDescription() const
OriginEndpoint & WithAuthorization(const Authorization &value)
const HlsPackage & GetHlsPackage() const
const Aws::String & GetChannelId() const
OriginEndpoint & WithStartoverWindowSeconds(int value)
OriginEndpoint & WithWhitelist(const Aws::Vector< Aws::String > &value)
OriginEndpoint & WithCreatedAt(const char *value)
OriginEndpoint & WithDashPackage(const DashPackage &value)
OriginEndpoint & AddTags(const Aws::String &key, const Aws::String &value)
OriginEndpoint & WithId(const Aws::String &value)
void SetChannelId(Aws::String &&value)
OriginEndpoint & WithUrl(const Aws::String &value)
void SetHlsPackage(const HlsPackage &value)
void SetManifestName(const Aws::String &value)
void SetCmafPackage(const CmafPackage &value)
OriginEndpoint & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetArn() const
void SetArn(const Aws::String &value)
OriginEndpoint & WithArn(Aws::String &&value)
void SetMssPackage(const MssPackage &value)
OriginEndpoint & WithChannelId(const Aws::String &value)
OriginEndpoint & AddTags(const char *key, Aws::String &&value)
OriginEndpoint & WithUrl(Aws::String &&value)
OriginEndpoint & WithChannelId(Aws::String &&value)
const CmafPackage & GetCmafPackage() const
const DashPackage & GetDashPackage() const
void SetAuthorization(const Authorization &value)
OriginEndpoint & WithCmafPackage(const CmafPackage &value)
OriginEndpoint & WithWhitelist(Aws::Vector< Aws::String > &&value)
void SetDescription(const Aws::String &value)
OriginEndpoint & WithManifestName(Aws::String &&value)
void SetChannelId(const Aws::String &value)
OriginEndpoint & AddWhitelist(const char *value)
OriginEndpoint & WithChannelId(const char *value)
OriginEndpoint & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
OriginEndpoint & WithArn(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDescription(Aws::String &&value)
void SetWhitelist(const Aws::Vector< Aws::String > &value)
OriginEndpoint & AddTags(const Aws::String &key, Aws::String &&value)
OriginEndpoint & WithArn(const char *value)
OriginEndpoint & WithDescription(const Aws::String &value)
OriginEndpoint & WithCreatedAt(const Aws::String &value)
OriginEndpoint & WithMssPackage(MssPackage &&value)
OriginEndpoint & WithHlsPackage(const HlsPackage &value)
OriginEndpoint & WithId(const char *value)
OriginEndpoint & WithManifestName(const Aws::String &value)
void SetCreatedAt(const Aws::String &value)
void SetOrigination(Origination &&value)
OriginEndpoint & WithDashPackage(DashPackage &&value)
OriginEndpoint & AddTags(const char *key, const char *value)
OriginEndpoint & AddTags(Aws::String &&key, Aws::String &&value)
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIAPACKAGE_API OriginEndpoint(Aws::Utils::Json::JsonView jsonValue)
OriginEndpoint & WithCmafPackage(CmafPackage &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetDashPackage(DashPackage &&value)
const Aws::Vector< Aws::String > & GetWhitelist() const
OriginEndpoint & WithUrl(const char *value)
OriginEndpoint & WithManifestName(const char *value)
OriginEndpoint & WithTimeDelaySeconds(int value)
const Aws::String & GetCreatedAt() const
void SetId(const Aws::String &value)
void SetAuthorization(Authorization &&value)
OriginEndpoint & WithAuthorization(Authorization &&value)
OriginEndpoint & AddTags(Aws::String &&key, const Aws::String &value)
void SetUrl(const Aws::String &value)
OriginEndpoint & WithOrigination(Origination &&value)
const MssPackage & GetMssPackage() const
AWS_MEDIAPACKAGE_API OriginEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue