AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediatailor/model/ChannelState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/mediatailor/model/SlateSource.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/mediatailor/model/TimeShiftConfiguration.h>
15#include <aws/mediatailor/model/ResponseOutputItem.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace MediaTailor
31{
32namespace Model
33{
35 {
36 public:
37 AWS_MEDIATAILOR_API CreateChannelResult() = default;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 CreateChannelResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetChannelName() const { return m_channelName; }
58 template<typename ChannelNameT = Aws::String>
59 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
60 template<typename ChannelNameT = Aws::String>
61 CreateChannelResult& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
63
65
68 inline ChannelState GetChannelState() const { return m_channelState; }
69 inline void SetChannelState(ChannelState value) { m_channelStateHasBeenSet = true; m_channelState = value; }
70 inline CreateChannelResult& WithChannelState(ChannelState value) { SetChannelState(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
78 template<typename CreationTimeT = Aws::Utils::DateTime>
79 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
80 template<typename CreationTimeT = Aws::Utils::DateTime>
81 CreateChannelResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
83
85
89 inline const SlateSource& GetFillerSlate() const { return m_fillerSlate; }
90 template<typename FillerSlateT = SlateSource>
91 void SetFillerSlate(FillerSlateT&& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = std::forward<FillerSlateT>(value); }
92 template<typename FillerSlateT = SlateSource>
93 CreateChannelResult& WithFillerSlate(FillerSlateT&& value) { SetFillerSlate(std::forward<FillerSlateT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
101 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
102 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
103 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
104 CreateChannelResult& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
106
108
111 inline const Aws::Vector<ResponseOutputItem>& GetOutputs() const { return m_outputs; }
112 template<typename OutputsT = Aws::Vector<ResponseOutputItem>>
113 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
114 template<typename OutputsT = Aws::Vector<ResponseOutputItem>>
115 CreateChannelResult& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
116 template<typename OutputsT = ResponseOutputItem>
117 CreateChannelResult& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
119
121
124 inline const Aws::String& GetPlaybackMode() const { return m_playbackMode; }
125 template<typename PlaybackModeT = Aws::String>
126 void SetPlaybackMode(PlaybackModeT&& value) { m_playbackModeHasBeenSet = true; m_playbackMode = std::forward<PlaybackModeT>(value); }
127 template<typename PlaybackModeT = Aws::String>
128 CreateChannelResult& WithPlaybackMode(PlaybackModeT&& value) { SetPlaybackMode(std::forward<PlaybackModeT>(value)); return *this;}
130
132
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 CreateChannelResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
144 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 CreateChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
147 }
149
151
154 inline const Aws::String& GetTier() const { return m_tier; }
155 template<typename TierT = Aws::String>
156 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
157 template<typename TierT = Aws::String>
158 CreateChannelResult& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
160
162
165 inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const { return m_timeShiftConfiguration; }
166 template<typename TimeShiftConfigurationT = TimeShiftConfiguration>
167 void SetTimeShiftConfiguration(TimeShiftConfigurationT&& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = std::forward<TimeShiftConfigurationT>(value); }
168 template<typename TimeShiftConfigurationT = TimeShiftConfiguration>
169 CreateChannelResult& WithTimeShiftConfiguration(TimeShiftConfigurationT&& value) { SetTimeShiftConfiguration(std::forward<TimeShiftConfigurationT>(value)); return *this;}
171
173
176 inline const Aws::Vector<Aws::String>& GetAudiences() const { return m_audiences; }
177 template<typename AudiencesT = Aws::Vector<Aws::String>>
178 void SetAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences = std::forward<AudiencesT>(value); }
179 template<typename AudiencesT = Aws::Vector<Aws::String>>
180 CreateChannelResult& WithAudiences(AudiencesT&& value) { SetAudiences(std::forward<AudiencesT>(value)); return *this;}
181 template<typename AudiencesT = Aws::String>
182 CreateChannelResult& AddAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences.emplace_back(std::forward<AudiencesT>(value)); return *this; }
184
186
187 inline const Aws::String& GetRequestId() const { return m_requestId; }
188 template<typename RequestIdT = Aws::String>
189 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
190 template<typename RequestIdT = Aws::String>
191 CreateChannelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
193 private:
194
195 Aws::String m_arn;
196 bool m_arnHasBeenSet = false;
197
198 Aws::String m_channelName;
199 bool m_channelNameHasBeenSet = false;
200
201 ChannelState m_channelState{ChannelState::NOT_SET};
202 bool m_channelStateHasBeenSet = false;
203
204 Aws::Utils::DateTime m_creationTime{};
205 bool m_creationTimeHasBeenSet = false;
206
207 SlateSource m_fillerSlate;
208 bool m_fillerSlateHasBeenSet = false;
209
210 Aws::Utils::DateTime m_lastModifiedTime{};
211 bool m_lastModifiedTimeHasBeenSet = false;
212
214 bool m_outputsHasBeenSet = false;
215
216 Aws::String m_playbackMode;
217 bool m_playbackModeHasBeenSet = false;
218
220 bool m_tagsHasBeenSet = false;
221
222 Aws::String m_tier;
223 bool m_tierHasBeenSet = false;
224
225 TimeShiftConfiguration m_timeShiftConfiguration;
226 bool m_timeShiftConfigurationHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_audiences;
229 bool m_audiencesHasBeenSet = false;
230
231 Aws::String m_requestId;
232 bool m_requestIdHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace MediaTailor
237} // namespace Aws
CreateChannelResult & WithArn(ArnT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
CreateChannelResult & WithChannelName(ChannelNameT &&value)
CreateChannelResult & WithAudiences(AudiencesT &&value)
CreateChannelResult & WithRequestId(RequestIdT &&value)
CreateChannelResult & WithFillerSlate(FillerSlateT &&value)
CreateChannelResult & WithOutputs(OutputsT &&value)
CreateChannelResult & WithTier(TierT &&value)
CreateChannelResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelResult & WithPlaybackMode(PlaybackModeT &&value)
AWS_MEDIATAILOR_API CreateChannelResult()=default
void SetTimeShiftConfiguration(TimeShiftConfigurationT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Vector< ResponseOutputItem > & GetOutputs() const
AWS_MEDIATAILOR_API CreateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & AddOutputs(OutputsT &&value)
const TimeShiftConfiguration & GetTimeShiftConfiguration() const
CreateChannelResult & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetAudiences() const
CreateChannelResult & WithChannelState(ChannelState value)
CreateChannelResult & WithCreationTime(CreationTimeT &&value)
CreateChannelResult & AddAudiences(AudiencesT &&value)
AWS_MEDIATAILOR_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & WithTimeShiftConfiguration(TimeShiftConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
CreateChannelResult & WithLastModifiedTime(LastModifiedTimeT &&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