AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ChannelSummary.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/ivs/IVS_EXPORTS.h>
10#include <aws/ivs/model/ChannelLatencyMode.h>
11#include <aws/ivs/model/ChannelType.h>
12#include <aws/ivs/model/TranscodePreset.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IVS {
24namespace Model {
25
32 public:
33 AWS_IVS_API ChannelSummary() = default;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 ChannelSummary& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
61 inline bool GetAuthorized() const { return m_authorized; }
62 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
63 inline void SetAuthorized(bool value) {
64 m_authorizedHasBeenSet = true;
65 m_authorized = value;
66 }
67 inline ChannelSummary& WithAuthorized(bool value) {
68 SetAuthorized(value);
69 return *this;
70 }
72
74
78 inline bool GetInsecureIngest() const { return m_insecureIngest; }
79 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
80 inline void SetInsecureIngest(bool value) {
81 m_insecureIngestHasBeenSet = true;
82 m_insecureIngest = value;
83 }
84 inline ChannelSummary& WithInsecureIngest(bool value) {
85 SetInsecureIngest(value);
86 return *this;
87 }
89
91
96 inline ChannelLatencyMode GetLatencyMode() const { return m_latencyMode; }
97 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
99 m_latencyModeHasBeenSet = true;
100 m_latencyMode = value;
101 }
103 SetLatencyMode(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetName() const { return m_name; }
113 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
114 template <typename NameT = Aws::String>
115 void SetName(NameT&& value) {
116 m_nameHasBeenSet = true;
117 m_name = std::forward<NameT>(value);
118 }
119 template <typename NameT = Aws::String>
120 ChannelSummary& WithName(NameT&& value) {
121 SetName(std::forward<NameT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const { return m_playbackRestrictionPolicyArn; }
133 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
134 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
135 void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
136 m_playbackRestrictionPolicyArnHasBeenSet = true;
137 m_playbackRestrictionPolicyArn = std::forward<PlaybackRestrictionPolicyArnT>(value);
138 }
139 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
140 ChannelSummary& WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
141 SetPlaybackRestrictionPolicyArn(std::forward<PlaybackRestrictionPolicyArnT>(value));
142 return *this;
143 }
145
147
155 inline TranscodePreset GetPreset() const { return m_preset; }
156 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
157 inline void SetPreset(TranscodePreset value) {
158 m_presetHasBeenSet = true;
159 m_preset = value;
160 }
162 SetPreset(value);
163 return *this;
164 }
166
168
172 inline const Aws::String& GetRecordingConfigurationArn() const { return m_recordingConfigurationArn; }
173 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
174 template <typename RecordingConfigurationArnT = Aws::String>
175 void SetRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
176 m_recordingConfigurationArnHasBeenSet = true;
177 m_recordingConfigurationArn = std::forward<RecordingConfigurationArnT>(value);
178 }
179 template <typename RecordingConfigurationArnT = Aws::String>
180 ChannelSummary& WithRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
181 SetRecordingConfigurationArn(std::forward<RecordingConfigurationArnT>(value));
182 return *this;
183 }
185
187
196 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 void SetTags(TagsT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags = std::forward<TagsT>(value);
202 }
203 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 ChannelSummary& WithTags(TagsT&& value) {
205 SetTags(std::forward<TagsT>(value));
206 return *this;
207 }
208 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 ChannelSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
212 return *this;
213 }
215
217
224 inline ChannelType GetType() const { return m_type; }
225 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
226 inline void SetType(ChannelType value) {
227 m_typeHasBeenSet = true;
228 m_type = value;
229 }
231 SetType(value);
232 return *this;
233 }
235 private:
236 Aws::String m_arn;
237
238 bool m_authorized{false};
239
240 bool m_insecureIngest{false};
241
243
244 Aws::String m_name;
245
246 Aws::String m_playbackRestrictionPolicyArn;
247
249
250 Aws::String m_recordingConfigurationArn;
251
253
255 bool m_arnHasBeenSet = false;
256 bool m_authorizedHasBeenSet = false;
257 bool m_insecureIngestHasBeenSet = false;
258 bool m_latencyModeHasBeenSet = false;
259 bool m_nameHasBeenSet = false;
260 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
261 bool m_presetHasBeenSet = false;
262 bool m_recordingConfigurationArnHasBeenSet = false;
263 bool m_tagsHasBeenSet = false;
264 bool m_typeHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace IVS
269} // namespace Aws
TranscodePreset GetPreset() const
bool PlaybackRestrictionPolicyArnHasBeenSet() const
void SetRecordingConfigurationArn(RecordingConfigurationArnT &&value)
void SetPreset(TranscodePreset value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
ChannelSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IVS_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue)
ChannelSummary & WithArn(ArnT &&value)
ChannelSummary & WithName(NameT &&value)
void SetLatencyMode(ChannelLatencyMode value)
ChannelSummary & WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
ChannelSummary & WithInsecureIngest(bool value)
ChannelSummary & WithRecordingConfigurationArn(RecordingConfigurationArnT &&value)
void SetType(ChannelType value)
AWS_IVS_API ChannelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ChannelSummary & WithPreset(TranscodePreset value)
ChannelSummary & WithType(ChannelType value)
ChannelSummary & WithAuthorized(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRecordingConfigurationArn() const
const Aws::String & GetName() const
void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
ChannelSummary & WithTags(TagsT &&value)
ChannelLatencyMode GetLatencyMode() const
ChannelSummary & WithLatencyMode(ChannelLatencyMode value)
AWS_IVS_API ChannelSummary()=default
bool RecordingConfigurationArnHasBeenSet() const
const Aws::String & GetPlaybackRestrictionPolicyArn() const
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
Aws::Utils::Json::JsonValue JsonValue