AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AlternateMedia.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/ClipRange.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediatailor/model/AdBreak.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaTailor
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MEDIATAILOR_API AlternateMedia() = default;
39 AWS_MEDIATAILOR_API AlternateMedia(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API AlternateMedia& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
49 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
50 template<typename SourceLocationNameT = Aws::String>
51 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
52 template<typename SourceLocationNameT = Aws::String>
53 AlternateMedia& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetLiveSourceName() const { return m_liveSourceName; }
61 inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }
62 template<typename LiveSourceNameT = Aws::String>
63 void SetLiveSourceName(LiveSourceNameT&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::forward<LiveSourceNameT>(value); }
64 template<typename LiveSourceNameT = Aws::String>
65 AlternateMedia& WithLiveSourceName(LiveSourceNameT&& value) { SetLiveSourceName(std::forward<LiveSourceNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetVodSourceName() const { return m_vodSourceName; }
73 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
74 template<typename VodSourceNameT = Aws::String>
75 void SetVodSourceName(VodSourceNameT&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::forward<VodSourceNameT>(value); }
76 template<typename VodSourceNameT = Aws::String>
77 AlternateMedia& WithVodSourceName(VodSourceNameT&& value) { SetVodSourceName(std::forward<VodSourceNameT>(value)); return *this;}
79
81
82 inline const ClipRange& GetClipRange() const { return m_clipRange; }
83 inline bool ClipRangeHasBeenSet() const { return m_clipRangeHasBeenSet; }
84 template<typename ClipRangeT = ClipRange>
85 void SetClipRange(ClipRangeT&& value) { m_clipRangeHasBeenSet = true; m_clipRange = std::forward<ClipRangeT>(value); }
86 template<typename ClipRangeT = ClipRange>
87 AlternateMedia& WithClipRange(ClipRangeT&& value) { SetClipRange(std::forward<ClipRangeT>(value)); return *this;}
89
91
95 inline long long GetScheduledStartTimeMillis() const { return m_scheduledStartTimeMillis; }
96 inline bool ScheduledStartTimeMillisHasBeenSet() const { return m_scheduledStartTimeMillisHasBeenSet; }
97 inline void SetScheduledStartTimeMillis(long long value) { m_scheduledStartTimeMillisHasBeenSet = true; m_scheduledStartTimeMillis = value; }
98 inline AlternateMedia& WithScheduledStartTimeMillis(long long value) { SetScheduledStartTimeMillis(value); return *this;}
100
102
105 inline const Aws::Vector<AdBreak>& GetAdBreaks() const { return m_adBreaks; }
106 inline bool AdBreaksHasBeenSet() const { return m_adBreaksHasBeenSet; }
107 template<typename AdBreaksT = Aws::Vector<AdBreak>>
108 void SetAdBreaks(AdBreaksT&& value) { m_adBreaksHasBeenSet = true; m_adBreaks = std::forward<AdBreaksT>(value); }
109 template<typename AdBreaksT = Aws::Vector<AdBreak>>
110 AlternateMedia& WithAdBreaks(AdBreaksT&& value) { SetAdBreaks(std::forward<AdBreaksT>(value)); return *this;}
111 template<typename AdBreaksT = AdBreak>
112 AlternateMedia& AddAdBreaks(AdBreaksT&& value) { m_adBreaksHasBeenSet = true; m_adBreaks.emplace_back(std::forward<AdBreaksT>(value)); return *this; }
114
116
119 inline long long GetDurationMillis() const { return m_durationMillis; }
120 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
121 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
122 inline AlternateMedia& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
124 private:
125
126 Aws::String m_sourceLocationName;
127 bool m_sourceLocationNameHasBeenSet = false;
128
129 Aws::String m_liveSourceName;
130 bool m_liveSourceNameHasBeenSet = false;
131
132 Aws::String m_vodSourceName;
133 bool m_vodSourceNameHasBeenSet = false;
134
135 ClipRange m_clipRange;
136 bool m_clipRangeHasBeenSet = false;
137
138 long long m_scheduledStartTimeMillis{0};
139 bool m_scheduledStartTimeMillisHasBeenSet = false;
140
141 Aws::Vector<AdBreak> m_adBreaks;
142 bool m_adBreaksHasBeenSet = false;
143
144 long long m_durationMillis{0};
145 bool m_durationMillisHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace MediaTailor
150} // namespace Aws
const Aws::String & GetSourceLocationName() const
void SetVodSourceName(VodSourceNameT &&value)
AlternateMedia & WithDurationMillis(long long value)
AlternateMedia & WithScheduledStartTimeMillis(long long value)
AlternateMedia & WithClipRange(ClipRangeT &&value)
AWS_MEDIATAILOR_API AlternateMedia()=default
void SetScheduledStartTimeMillis(long long value)
AWS_MEDIATAILOR_API AlternateMedia(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLiveSourceName() const
AlternateMedia & WithLiveSourceName(LiveSourceNameT &&value)
AlternateMedia & WithSourceLocationName(SourceLocationNameT &&value)
AWS_MEDIATAILOR_API AlternateMedia & operator=(Aws::Utils::Json::JsonView jsonValue)
const ClipRange & GetClipRange() const
AlternateMedia & WithVodSourceName(VodSourceNameT &&value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
AlternateMedia & WithAdBreaks(AdBreaksT &&value)
void SetClipRange(ClipRangeT &&value)
const Aws::Vector< AdBreak > & GetAdBreaks() const
void SetLiveSourceName(LiveSourceNameT &&value)
void SetSourceLocationName(SourceLocationNameT &&value)
const Aws::String & GetVodSourceName() const
AlternateMedia & AddAdBreaks(AdBreaksT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue