AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
CreatePackagingConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
10#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
11#include <aws/mediapackage-vod/model/CmafPackage.h>
12#include <aws/mediapackage-vod/model/DashPackage.h>
13#include <aws/mediapackage-vod/model/HlsPackage.h>
14#include <aws/mediapackage-vod/model/MssPackage.h>
15
16#include <utility>
17
18namespace Aws {
19namespace MediaPackageVod {
20namespace Model {
21
29 public:
30 AWS_MEDIAPACKAGEVOD_API CreatePackagingConfigurationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreatePackagingConfiguration"; }
37
38 AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override;
39
41
42 inline const CmafPackage& GetCmafPackage() const { return m_cmafPackage; }
43 inline bool CmafPackageHasBeenSet() const { return m_cmafPackageHasBeenSet; }
44 template <typename CmafPackageT = CmafPackage>
45 void SetCmafPackage(CmafPackageT&& value) {
46 m_cmafPackageHasBeenSet = true;
47 m_cmafPackage = std::forward<CmafPackageT>(value);
48 }
49 template <typename CmafPackageT = CmafPackage>
51 SetCmafPackage(std::forward<CmafPackageT>(value));
52 return *this;
53 }
55
57
58 inline const DashPackage& GetDashPackage() const { return m_dashPackage; }
59 inline bool DashPackageHasBeenSet() const { return m_dashPackageHasBeenSet; }
60 template <typename DashPackageT = DashPackage>
61 void SetDashPackage(DashPackageT&& value) {
62 m_dashPackageHasBeenSet = true;
63 m_dashPackage = std::forward<DashPackageT>(value);
64 }
65 template <typename DashPackageT = DashPackage>
67 SetDashPackage(std::forward<DashPackageT>(value));
68 return *this;
69 }
71
73
74 inline const HlsPackage& GetHlsPackage() const { return m_hlsPackage; }
75 inline bool HlsPackageHasBeenSet() const { return m_hlsPackageHasBeenSet; }
76 template <typename HlsPackageT = HlsPackage>
77 void SetHlsPackage(HlsPackageT&& value) {
78 m_hlsPackageHasBeenSet = true;
79 m_hlsPackage = std::forward<HlsPackageT>(value);
80 }
81 template <typename HlsPackageT = HlsPackage>
83 SetHlsPackage(std::forward<HlsPackageT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetId() const { return m_id; }
93 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
94 template <typename IdT = Aws::String>
95 void SetId(IdT&& value) {
96 m_idHasBeenSet = true;
97 m_id = std::forward<IdT>(value);
98 }
99 template <typename IdT = Aws::String>
101 SetId(std::forward<IdT>(value));
102 return *this;
103 }
105
107
108 inline const MssPackage& GetMssPackage() const { return m_mssPackage; }
109 inline bool MssPackageHasBeenSet() const { return m_mssPackageHasBeenSet; }
110 template <typename MssPackageT = MssPackage>
111 void SetMssPackage(MssPackageT&& value) {
112 m_mssPackageHasBeenSet = true;
113 m_mssPackage = std::forward<MssPackageT>(value);
114 }
115 template <typename MssPackageT = MssPackage>
117 SetMssPackage(std::forward<MssPackageT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetPackagingGroupId() const { return m_packagingGroupId; }
127 inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
128 template <typename PackagingGroupIdT = Aws::String>
129 void SetPackagingGroupId(PackagingGroupIdT&& value) {
130 m_packagingGroupIdHasBeenSet = true;
131 m_packagingGroupId = std::forward<PackagingGroupIdT>(value);
132 }
133 template <typename PackagingGroupIdT = Aws::String>
135 SetPackagingGroupId(std::forward<PackagingGroupIdT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags = std::forward<TagsT>(value);
148 }
149 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 SetTags(std::forward<TagsT>(value));
152 return *this;
153 }
154 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
155 CreatePackagingConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
158 return *this;
159 }
161 private:
162 CmafPackage m_cmafPackage;
163
164 DashPackage m_dashPackage;
165
166 HlsPackage m_hlsPackage;
167
168 Aws::String m_id;
169
170 MssPackage m_mssPackage;
171
172 Aws::String m_packagingGroupId;
173
175 bool m_cmafPackageHasBeenSet = false;
176 bool m_dashPackageHasBeenSet = false;
177 bool m_hlsPackageHasBeenSet = false;
178 bool m_idHasBeenSet = false;
179 bool m_mssPackageHasBeenSet = false;
180 bool m_packagingGroupIdHasBeenSet = false;
181 bool m_tagsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace MediaPackageVod
186} // namespace Aws
CreatePackagingConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePackagingConfigurationRequest & WithPackagingGroupId(PackagingGroupIdT &&value)
AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override
AWS_MEDIAPACKAGEVOD_API CreatePackagingConfigurationRequest()=default
CreatePackagingConfigurationRequest & WithCmafPackage(CmafPackageT &&value)
CreatePackagingConfigurationRequest & WithHlsPackage(HlsPackageT &&value)
CreatePackagingConfigurationRequest & WithMssPackage(MssPackageT &&value)
CreatePackagingConfigurationRequest & WithDashPackage(DashPackageT &&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