AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
13#include <aws/mediapackagev2/model/IngestEndpoint.h>
14#include <aws/mediapackagev2/model/InputSwitchConfiguration.h>
15#include <aws/mediapackagev2/model/InputType.h>
16#include <aws/mediapackagev2/model/OutputHeaderConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace mediapackagev2 {
30namespace Model {
32 public:
33 AWS_MEDIAPACKAGEV2_API CreateChannelResult() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetChannelName() const { return m_channelName; }
61 template <typename ChannelNameT = Aws::String>
62 void SetChannelName(ChannelNameT&& value) {
63 m_channelNameHasBeenSet = true;
64 m_channelName = std::forward<ChannelNameT>(value);
65 }
66 template <typename ChannelNameT = Aws::String>
67 CreateChannelResult& WithChannelName(ChannelNameT&& value) {
68 SetChannelName(std::forward<ChannelNameT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
80 template <typename ChannelGroupNameT = Aws::String>
81 void SetChannelGroupName(ChannelGroupNameT&& value) {
82 m_channelGroupNameHasBeenSet = true;
83 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
84 }
85 template <typename ChannelGroupNameT = Aws::String>
86 CreateChannelResult& WithChannelGroupName(ChannelGroupNameT&& value) {
87 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
98 void SetCreatedAt(CreatedAtT&& value) {
99 m_createdAtHasBeenSet = true;
100 m_createdAt = std::forward<CreatedAtT>(value);
101 }
102 template <typename CreatedAtT = Aws::Utils::DateTime>
103 CreateChannelResult& WithCreatedAt(CreatedAtT&& value) {
104 SetCreatedAt(std::forward<CreatedAtT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
114 template <typename ModifiedAtT = Aws::Utils::DateTime>
115 void SetModifiedAt(ModifiedAtT&& value) {
116 m_modifiedAtHasBeenSet = true;
117 m_modifiedAt = std::forward<ModifiedAtT>(value);
118 }
119 template <typename ModifiedAtT = Aws::Utils::DateTime>
120 CreateChannelResult& WithModifiedAt(ModifiedAtT&& value) {
121 SetModifiedAt(std::forward<ModifiedAtT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDescription() const { return m_description; }
131 template <typename DescriptionT = Aws::String>
132 void SetDescription(DescriptionT&& value) {
133 m_descriptionHasBeenSet = true;
134 m_description = std::forward<DescriptionT>(value);
135 }
136 template <typename DescriptionT = Aws::String>
137 CreateChannelResult& WithDescription(DescriptionT&& value) {
138 SetDescription(std::forward<DescriptionT>(value));
139 return *this;
140 }
142
144
145 inline const Aws::Vector<IngestEndpoint>& GetIngestEndpoints() const { return m_ingestEndpoints; }
146 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
147 void SetIngestEndpoints(IngestEndpointsT&& value) {
148 m_ingestEndpointsHasBeenSet = true;
149 m_ingestEndpoints = std::forward<IngestEndpointsT>(value);
150 }
151 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
152 CreateChannelResult& WithIngestEndpoints(IngestEndpointsT&& value) {
153 SetIngestEndpoints(std::forward<IngestEndpointsT>(value));
154 return *this;
155 }
156 template <typename IngestEndpointsT = IngestEndpoint>
157 CreateChannelResult& AddIngestEndpoints(IngestEndpointsT&& value) {
158 m_ingestEndpointsHasBeenSet = true;
159 m_ingestEndpoints.emplace_back(std::forward<IngestEndpointsT>(value));
160 return *this;
161 }
163
165
174 inline InputType GetInputType() const { return m_inputType; }
175 inline void SetInputType(InputType value) {
176 m_inputTypeHasBeenSet = true;
177 m_inputType = value;
178 }
180 SetInputType(value);
181 return *this;
182 }
184
186
190 inline const Aws::String& GetETag() const { return m_eTag; }
191 template <typename ETagT = Aws::String>
192 void SetETag(ETagT&& value) {
193 m_eTagHasBeenSet = true;
194 m_eTag = std::forward<ETagT>(value);
195 }
196 template <typename ETagT = Aws::String>
198 SetETag(std::forward<ETagT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
208 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 void SetTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags = std::forward<TagsT>(value);
212 }
213 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 SetTags(std::forward<TagsT>(value));
216 return *this;
217 }
218 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
219 CreateChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
222 return *this;
223 }
225
227
232 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
233 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
234 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
235 m_inputSwitchConfigurationHasBeenSet = true;
236 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
237 }
238 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
239 CreateChannelResult& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
240 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
241 return *this;
242 }
244
246
251 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
252 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
253 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
254 m_outputHeaderConfigurationHasBeenSet = true;
255 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
256 }
257 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
258 CreateChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
259 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
260 return *this;
261 }
263
265
266 inline const Aws::String& GetRequestId() const { return m_requestId; }
267 template <typename RequestIdT = Aws::String>
268 void SetRequestId(RequestIdT&& value) {
269 m_requestIdHasBeenSet = true;
270 m_requestId = std::forward<RequestIdT>(value);
271 }
272 template <typename RequestIdT = Aws::String>
273 CreateChannelResult& WithRequestId(RequestIdT&& value) {
274 SetRequestId(std::forward<RequestIdT>(value));
275 return *this;
276 }
278 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
279
280 private:
281 Aws::String m_arn;
282
283 Aws::String m_channelName;
284
285 Aws::String m_channelGroupName;
286
287 Aws::Utils::DateTime m_createdAt{};
288
289 Aws::Utils::DateTime m_modifiedAt{};
290
291 Aws::String m_description;
292
293 Aws::Vector<IngestEndpoint> m_ingestEndpoints;
294
295 InputType m_inputType{InputType::NOT_SET};
296
297 Aws::String m_eTag;
298
300
301 InputSwitchConfiguration m_inputSwitchConfiguration;
302
303 OutputHeaderConfiguration m_outputHeaderConfiguration;
304
305 Aws::String m_requestId;
306 Aws::Http::HttpResponseCode m_HttpResponseCode;
307 bool m_arnHasBeenSet = false;
308 bool m_channelNameHasBeenSet = false;
309 bool m_channelGroupNameHasBeenSet = false;
310 bool m_createdAtHasBeenSet = false;
311 bool m_modifiedAtHasBeenSet = false;
312 bool m_descriptionHasBeenSet = false;
313 bool m_ingestEndpointsHasBeenSet = false;
314 bool m_inputTypeHasBeenSet = false;
315 bool m_eTagHasBeenSet = false;
316 bool m_tagsHasBeenSet = false;
317 bool m_inputSwitchConfigurationHasBeenSet = false;
318 bool m_outputHeaderConfigurationHasBeenSet = false;
319 bool m_requestIdHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace mediapackagev2
324} // namespace Aws
CreateChannelResult & WithInputSwitchConfiguration(InputSwitchConfigurationT &&value)
void SetOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
CreateChannelResult & WithChannelName(ChannelNameT &&value)
const InputSwitchConfiguration & GetInputSwitchConfiguration() const
CreateChannelResult & WithChannelGroupName(ChannelGroupNameT &&value)
AWS_MEDIAPACKAGEV2_API CreateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & AddIngestEndpoints(IngestEndpointsT &&value)
CreateChannelResult & WithOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
CreateChannelResult & WithIngestEndpoints(IngestEndpointsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateChannelResult & WithInputType(InputType value)
CreateChannelResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelResult & WithETag(ETagT &&value)
void SetChannelGroupName(ChannelGroupNameT &&value)
CreateChannelResult & WithArn(ArnT &&value)
const Aws::Vector< IngestEndpoint > & GetIngestEndpoints() const
const Aws::Utils::DateTime & GetCreatedAt() const
CreateChannelResult & WithTags(TagsT &&value)
void SetInputSwitchConfiguration(InputSwitchConfigurationT &&value)
AWS_MEDIAPACKAGEV2_API CreateChannelResult()=default
CreateChannelResult & WithCreatedAt(CreatedAtT &&value)
CreateChannelResult & WithModifiedAt(ModifiedAtT &&value)
const OutputHeaderConfiguration & GetOutputHeaderConfiguration() const
const Aws::Utils::DateTime & GetModifiedAt() const
AWS_MEDIAPACKAGEV2_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & WithDescription(DescriptionT &&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
Aws::Utils::Json::JsonValue JsonValue