AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateOriginEndpointRequest.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/mediapackage/model/CmafPackageCreateOrUpdateParameters.h>
11#include <aws/mediapackage/model/DashPackage.h>
12#include <aws/core/utils/memory/stl/AWSString.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/AWSVector.h>
17#include <utility>
18
19namespace Aws
20{
21namespace MediaPackage
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MEDIAPACKAGE_API UpdateOriginEndpointRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateOriginEndpoint"; }
42
43 AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override;
44
45
47
48 inline const Authorization& GetAuthorization() const{ return m_authorization; }
49 inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
50 inline void SetAuthorization(const Authorization& value) { m_authorizationHasBeenSet = true; m_authorization = value; }
51 inline void SetAuthorization(Authorization&& value) { m_authorizationHasBeenSet = true; m_authorization = std::move(value); }
52 inline UpdateOriginEndpointRequest& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
53 inline UpdateOriginEndpointRequest& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
55
57
58 inline const CmafPackageCreateOrUpdateParameters& GetCmafPackage() const{ return m_cmafPackage; }
59 inline bool CmafPackageHasBeenSet() const { return m_cmafPackageHasBeenSet; }
60 inline void SetCmafPackage(const CmafPackageCreateOrUpdateParameters& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = value; }
61 inline void SetCmafPackage(CmafPackageCreateOrUpdateParameters&& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = std::move(value); }
65
67
68 inline const DashPackage& GetDashPackage() const{ return m_dashPackage; }
69 inline bool DashPackageHasBeenSet() const { return m_dashPackageHasBeenSet; }
70 inline void SetDashPackage(const DashPackage& value) { m_dashPackageHasBeenSet = true; m_dashPackage = value; }
71 inline void SetDashPackage(DashPackage&& value) { m_dashPackageHasBeenSet = true; m_dashPackage = std::move(value); }
72 inline UpdateOriginEndpointRequest& WithDashPackage(const DashPackage& value) { SetDashPackage(value); return *this;}
73 inline UpdateOriginEndpointRequest& WithDashPackage(DashPackage&& value) { SetDashPackage(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline UpdateOriginEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline UpdateOriginEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline UpdateOriginEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
92 inline const HlsPackage& GetHlsPackage() const{ return m_hlsPackage; }
93 inline bool HlsPackageHasBeenSet() const { return m_hlsPackageHasBeenSet; }
94 inline void SetHlsPackage(const HlsPackage& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = value; }
95 inline void SetHlsPackage(HlsPackage&& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = std::move(value); }
96 inline UpdateOriginEndpointRequest& WithHlsPackage(const HlsPackage& value) { SetHlsPackage(value); return *this;}
97 inline UpdateOriginEndpointRequest& WithHlsPackage(HlsPackage&& value) { SetHlsPackage(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetId() const{ return m_id; }
105 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
106 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
107 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
108 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
109 inline UpdateOriginEndpointRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
110 inline UpdateOriginEndpointRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
111 inline UpdateOriginEndpointRequest& WithId(const char* value) { SetId(value); return *this;}
113
115
118 inline const Aws::String& GetManifestName() const{ return m_manifestName; }
119 inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
120 inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
121 inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
122 inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
123 inline UpdateOriginEndpointRequest& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
124 inline UpdateOriginEndpointRequest& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
125 inline UpdateOriginEndpointRequest& WithManifestName(const char* value) { SetManifestName(value); return *this;}
127
129
130 inline const MssPackage& GetMssPackage() const{ return m_mssPackage; }
131 inline bool MssPackageHasBeenSet() const { return m_mssPackageHasBeenSet; }
132 inline void SetMssPackage(const MssPackage& value) { m_mssPackageHasBeenSet = true; m_mssPackage = value; }
133 inline void SetMssPackage(MssPackage&& value) { m_mssPackageHasBeenSet = true; m_mssPackage = std::move(value); }
134 inline UpdateOriginEndpointRequest& WithMssPackage(const MssPackage& value) { SetMssPackage(value); return *this;}
135 inline UpdateOriginEndpointRequest& WithMssPackage(MssPackage&& value) { SetMssPackage(std::move(value)); return *this;}
137
139
149 inline const Origination& GetOrigination() const{ return m_origination; }
150 inline bool OriginationHasBeenSet() const { return m_originationHasBeenSet; }
151 inline void SetOrigination(const Origination& value) { m_originationHasBeenSet = true; m_origination = value; }
152 inline void SetOrigination(Origination&& value) { m_originationHasBeenSet = true; m_origination = std::move(value); }
153 inline UpdateOriginEndpointRequest& WithOrigination(const Origination& value) { SetOrigination(value); return *this;}
154 inline UpdateOriginEndpointRequest& WithOrigination(Origination&& value) { SetOrigination(std::move(value)); return *this;}
156
158
164 inline int GetStartoverWindowSeconds() const{ return m_startoverWindowSeconds; }
165 inline bool StartoverWindowSecondsHasBeenSet() const { return m_startoverWindowSecondsHasBeenSet; }
166 inline void SetStartoverWindowSeconds(int value) { m_startoverWindowSecondsHasBeenSet = true; m_startoverWindowSeconds = value; }
169
171
177 inline int GetTimeDelaySeconds() const{ return m_timeDelaySeconds; }
178 inline bool TimeDelaySecondsHasBeenSet() const { return m_timeDelaySecondsHasBeenSet; }
179 inline void SetTimeDelaySeconds(int value) { m_timeDelaySecondsHasBeenSet = true; m_timeDelaySeconds = value; }
180 inline UpdateOriginEndpointRequest& WithTimeDelaySeconds(int value) { SetTimeDelaySeconds(value); return *this;}
182
184
188 inline const Aws::Vector<Aws::String>& GetWhitelist() const{ return m_whitelist; }
189 inline bool WhitelistHasBeenSet() const { return m_whitelistHasBeenSet; }
190 inline void SetWhitelist(const Aws::Vector<Aws::String>& value) { m_whitelistHasBeenSet = true; m_whitelist = value; }
191 inline void SetWhitelist(Aws::Vector<Aws::String>&& value) { m_whitelistHasBeenSet = true; m_whitelist = std::move(value); }
193 inline UpdateOriginEndpointRequest& WithWhitelist(Aws::Vector<Aws::String>&& value) { SetWhitelist(std::move(value)); return *this;}
194 inline UpdateOriginEndpointRequest& AddWhitelist(const Aws::String& value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(value); return *this; }
195 inline UpdateOriginEndpointRequest& AddWhitelist(Aws::String&& value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(std::move(value)); return *this; }
196 inline UpdateOriginEndpointRequest& AddWhitelist(const char* value) { m_whitelistHasBeenSet = true; m_whitelist.push_back(value); return *this; }
198 private:
199
200 Authorization m_authorization;
201 bool m_authorizationHasBeenSet = false;
202
204 bool m_cmafPackageHasBeenSet = false;
205
206 DashPackage m_dashPackage;
207 bool m_dashPackageHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 HlsPackage m_hlsPackage;
213 bool m_hlsPackageHasBeenSet = false;
214
215 Aws::String m_id;
216 bool m_idHasBeenSet = false;
217
218 Aws::String m_manifestName;
219 bool m_manifestNameHasBeenSet = false;
220
221 MssPackage m_mssPackage;
222 bool m_mssPackageHasBeenSet = false;
223
224 Origination m_origination;
225 bool m_originationHasBeenSet = false;
226
227 int m_startoverWindowSeconds;
228 bool m_startoverWindowSecondsHasBeenSet = false;
229
230 int m_timeDelaySeconds;
231 bool m_timeDelaySecondsHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_whitelist;
234 bool m_whitelistHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace MediaPackage
239} // namespace Aws
UpdateOriginEndpointRequest & WithOrigination(const Origination &value)
UpdateOriginEndpointRequest & WithDescription(const Aws::String &value)
UpdateOriginEndpointRequest & WithManifestName(const Aws::String &value)
UpdateOriginEndpointRequest & WithHlsPackage(HlsPackage &&value)
void SetCmafPackage(CmafPackageCreateOrUpdateParameters &&value)
AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override
void SetWhitelist(const Aws::Vector< Aws::String > &value)
UpdateOriginEndpointRequest & WithManifestName(const char *value)
UpdateOriginEndpointRequest & AddWhitelist(const char *value)
UpdateOriginEndpointRequest & WithWhitelist(Aws::Vector< Aws::String > &&value)
UpdateOriginEndpointRequest & WithStartoverWindowSeconds(int value)
UpdateOriginEndpointRequest & AddWhitelist(const Aws::String &value)
UpdateOriginEndpointRequest & WithTimeDelaySeconds(int value)
UpdateOriginEndpointRequest & WithDashPackage(const DashPackage &value)
UpdateOriginEndpointRequest & AddWhitelist(Aws::String &&value)
UpdateOriginEndpointRequest & WithAuthorization(Authorization &&value)
UpdateOriginEndpointRequest & WithId(const char *value)
UpdateOriginEndpointRequest & WithWhitelist(const Aws::Vector< Aws::String > &value)
UpdateOriginEndpointRequest & WithMssPackage(MssPackage &&value)
UpdateOriginEndpointRequest & WithHlsPackage(const HlsPackage &value)
UpdateOriginEndpointRequest & WithOrigination(Origination &&value)
UpdateOriginEndpointRequest & WithDescription(Aws::String &&value)
UpdateOriginEndpointRequest & WithCmafPackage(const CmafPackageCreateOrUpdateParameters &value)
UpdateOriginEndpointRequest & WithDescription(const char *value)
UpdateOriginEndpointRequest & WithMssPackage(const MssPackage &value)
UpdateOriginEndpointRequest & WithId(const Aws::String &value)
void SetCmafPackage(const CmafPackageCreateOrUpdateParameters &value)
UpdateOriginEndpointRequest & WithAuthorization(const Authorization &value)
UpdateOriginEndpointRequest & WithCmafPackage(CmafPackageCreateOrUpdateParameters &&value)
UpdateOriginEndpointRequest & WithManifestName(Aws::String &&value)
const CmafPackageCreateOrUpdateParameters & GetCmafPackage() const
UpdateOriginEndpointRequest & WithDashPackage(DashPackage &&value)
UpdateOriginEndpointRequest & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector