AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Channel.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/mediatailor/model/SlateSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/mediatailor/model/LogConfigurationForChannel.h>
14#include <aws/mediatailor/model/ResponseOutputItem.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace MediaTailor
28{
29namespace Model
30{
31
41 class Channel
42 {
43 public:
44 AWS_MEDIATAILOR_API Channel() = default;
45 AWS_MEDIATAILOR_API Channel(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MEDIATAILOR_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
56 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 Channel& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
61
63
66 inline const Aws::String& GetChannelName() const { return m_channelName; }
67 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
68 template<typename ChannelNameT = Aws::String>
69 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
70 template<typename ChannelNameT = Aws::String>
71 Channel& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetChannelState() const { return m_channelState; }
79 inline bool ChannelStateHasBeenSet() const { return m_channelStateHasBeenSet; }
80 template<typename ChannelStateT = Aws::String>
81 void SetChannelState(ChannelStateT&& value) { m_channelStateHasBeenSet = true; m_channelState = std::forward<ChannelStateT>(value); }
82 template<typename ChannelStateT = Aws::String>
83 Channel& WithChannelState(ChannelStateT&& value) { SetChannelState(std::forward<ChannelStateT>(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
91 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
92 template<typename CreationTimeT = Aws::Utils::DateTime>
93 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
94 template<typename CreationTimeT = Aws::Utils::DateTime>
95 Channel& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
97
99
105 inline const SlateSource& GetFillerSlate() const { return m_fillerSlate; }
106 inline bool FillerSlateHasBeenSet() const { return m_fillerSlateHasBeenSet; }
107 template<typename FillerSlateT = SlateSource>
108 void SetFillerSlate(FillerSlateT&& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = std::forward<FillerSlateT>(value); }
109 template<typename FillerSlateT = SlateSource>
110 Channel& WithFillerSlate(FillerSlateT&& value) { SetFillerSlate(std::forward<FillerSlateT>(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
118 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
119 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
120 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
121 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
122 Channel& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
124
126
129 inline const Aws::Vector<ResponseOutputItem>& GetOutputs() const { return m_outputs; }
130 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
131 template<typename OutputsT = Aws::Vector<ResponseOutputItem>>
132 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
133 template<typename OutputsT = Aws::Vector<ResponseOutputItem>>
134 Channel& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
135 template<typename OutputsT = ResponseOutputItem>
136 Channel& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
138
140
146 inline const Aws::String& GetPlaybackMode() const { return m_playbackMode; }
147 inline bool PlaybackModeHasBeenSet() const { return m_playbackModeHasBeenSet; }
148 template<typename PlaybackModeT = Aws::String>
149 void SetPlaybackMode(PlaybackModeT&& value) { m_playbackModeHasBeenSet = true; m_playbackMode = std::forward<PlaybackModeT>(value); }
150 template<typename PlaybackModeT = Aws::String>
151 Channel& WithPlaybackMode(PlaybackModeT&& value) { SetPlaybackMode(std::forward<PlaybackModeT>(value)); return *this;}
153
155
162 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
166 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 Channel& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
168 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
169 Channel& AddTags(TagsKeyT&& key, TagsValueT&& value) {
170 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
171 }
173
175
179 inline const Aws::String& GetTier() const { return m_tier; }
180 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
181 template<typename TierT = Aws::String>
182 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
183 template<typename TierT = Aws::String>
184 Channel& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
186
188
191 inline const LogConfigurationForChannel& GetLogConfiguration() const { return m_logConfiguration; }
192 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
193 template<typename LogConfigurationT = LogConfigurationForChannel>
194 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
195 template<typename LogConfigurationT = LogConfigurationForChannel>
196 Channel& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
198
200
203 inline const Aws::Vector<Aws::String>& GetAudiences() const { return m_audiences; }
204 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
205 template<typename AudiencesT = Aws::Vector<Aws::String>>
206 void SetAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences = std::forward<AudiencesT>(value); }
207 template<typename AudiencesT = Aws::Vector<Aws::String>>
208 Channel& WithAudiences(AudiencesT&& value) { SetAudiences(std::forward<AudiencesT>(value)); return *this;}
209 template<typename AudiencesT = Aws::String>
210 Channel& AddAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences.emplace_back(std::forward<AudiencesT>(value)); return *this; }
212 private:
213
214 Aws::String m_arn;
215 bool m_arnHasBeenSet = false;
216
217 Aws::String m_channelName;
218 bool m_channelNameHasBeenSet = false;
219
220 Aws::String m_channelState;
221 bool m_channelStateHasBeenSet = false;
222
223 Aws::Utils::DateTime m_creationTime{};
224 bool m_creationTimeHasBeenSet = false;
225
226 SlateSource m_fillerSlate;
227 bool m_fillerSlateHasBeenSet = false;
228
229 Aws::Utils::DateTime m_lastModifiedTime{};
230 bool m_lastModifiedTimeHasBeenSet = false;
231
233 bool m_outputsHasBeenSet = false;
234
235 Aws::String m_playbackMode;
236 bool m_playbackModeHasBeenSet = false;
237
239 bool m_tagsHasBeenSet = false;
240
241 Aws::String m_tier;
242 bool m_tierHasBeenSet = false;
243
244 LogConfigurationForChannel m_logConfiguration;
245 bool m_logConfigurationHasBeenSet = false;
246
247 Aws::Vector<Aws::String> m_audiences;
248 bool m_audiencesHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace MediaTailor
253} // namespace Aws
Channel & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Channel.h:122
void SetChannelName(ChannelNameT &&value)
Definition Channel.h:69
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Channel.h:120
void SetTags(TagsT &&value)
Definition Channel.h:165
const Aws::String & GetChannelName() const
Definition Channel.h:66
void SetPlaybackMode(PlaybackModeT &&value)
Definition Channel.h:149
Channel & WithChannelName(ChannelNameT &&value)
Definition Channel.h:71
Channel & AddOutputs(OutputsT &&value)
Definition Channel.h:136
const Aws::String & GetTier() const
Definition Channel.h:179
const Aws::Utils::DateTime & GetCreationTime() const
Definition Channel.h:90
bool PlaybackModeHasBeenSet() const
Definition Channel.h:147
Channel & WithTier(TierT &&value)
Definition Channel.h:184
const Aws::Vector< ResponseOutputItem > & GetOutputs() const
Definition Channel.h:129
bool CreationTimeHasBeenSet() const
Definition Channel.h:91
Channel & WithAudiences(AudiencesT &&value)
Definition Channel.h:208
void SetAudiences(AudiencesT &&value)
Definition Channel.h:206
const LogConfigurationForChannel & GetLogConfiguration() const
Definition Channel.h:191
void SetTier(TierT &&value)
Definition Channel.h:182
Channel & WithPlaybackMode(PlaybackModeT &&value)
Definition Channel.h:151
Channel & WithLogConfiguration(LogConfigurationT &&value)
Definition Channel.h:196
void SetLogConfiguration(LogConfigurationT &&value)
Definition Channel.h:194
Channel & WithChannelState(ChannelStateT &&value)
Definition Channel.h:83
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Channel.h:117
AWS_MEDIATAILOR_API Channel()=default
Channel & WithOutputs(OutputsT &&value)
Definition Channel.h:134
Channel & AddAudiences(AudiencesT &&value)
Definition Channel.h:210
const Aws::String & GetChannelState() const
Definition Channel.h:78
void SetArn(ArnT &&value)
Definition Channel.h:57
void SetFillerSlate(FillerSlateT &&value)
Definition Channel.h:108
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Channel.h:162
bool LogConfigurationHasBeenSet() const
Definition Channel.h:192
bool ChannelStateHasBeenSet() const
Definition Channel.h:79
Channel & WithFillerSlate(FillerSlateT &&value)
Definition Channel.h:110
Channel & WithTags(TagsT &&value)
Definition Channel.h:167
const Aws::String & GetArn() const
Definition Channel.h:54
const Aws::String & GetPlaybackMode() const
Definition Channel.h:146
const Aws::Vector< Aws::String > & GetAudiences() const
Definition Channel.h:203
Channel & WithArn(ArnT &&value)
Definition Channel.h:59
Channel & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Channel.h:169
void SetOutputs(OutputsT &&value)
Definition Channel.h:132
AWS_MEDIATAILOR_API Channel(Aws::Utils::Json::JsonView jsonValue)
const SlateSource & GetFillerSlate() const
Definition Channel.h:105
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChannelState(ChannelStateT &&value)
Definition Channel.h:81
Channel & WithCreationTime(CreationTimeT &&value)
Definition Channel.h:95
bool LastModifiedTimeHasBeenSet() const
Definition Channel.h:118
void SetCreationTime(CreationTimeT &&value)
Definition Channel.h:93
bool ChannelNameHasBeenSet() const
Definition Channel.h:67
AWS_MEDIATAILOR_API Channel & 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