AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlternateMedia.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediatailor/model/ClipRange.h>
10#include <aws/core/utils/memory/stl/AWSString.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();
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::Vector<AdBreak>& GetAdBreaks() const{ return m_adBreaks; }
49 inline bool AdBreaksHasBeenSet() const { return m_adBreaksHasBeenSet; }
50 inline void SetAdBreaks(const Aws::Vector<AdBreak>& value) { m_adBreaksHasBeenSet = true; m_adBreaks = value; }
51 inline void SetAdBreaks(Aws::Vector<AdBreak>&& value) { m_adBreaksHasBeenSet = true; m_adBreaks = std::move(value); }
52 inline AlternateMedia& WithAdBreaks(const Aws::Vector<AdBreak>& value) { SetAdBreaks(value); return *this;}
53 inline AlternateMedia& WithAdBreaks(Aws::Vector<AdBreak>&& value) { SetAdBreaks(std::move(value)); return *this;}
54 inline AlternateMedia& AddAdBreaks(const AdBreak& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(value); return *this; }
55 inline AlternateMedia& AddAdBreaks(AdBreak&& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(std::move(value)); return *this; }
57
59
60 inline const ClipRange& GetClipRange() const{ return m_clipRange; }
61 inline bool ClipRangeHasBeenSet() const { return m_clipRangeHasBeenSet; }
62 inline void SetClipRange(const ClipRange& value) { m_clipRangeHasBeenSet = true; m_clipRange = value; }
63 inline void SetClipRange(ClipRange&& value) { m_clipRangeHasBeenSet = true; m_clipRange = std::move(value); }
64 inline AlternateMedia& WithClipRange(const ClipRange& value) { SetClipRange(value); return *this;}
65 inline AlternateMedia& WithClipRange(ClipRange&& value) { SetClipRange(std::move(value)); return *this;}
67
69
72 inline long long GetDurationMillis() const{ return m_durationMillis; }
73 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
74 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
75 inline AlternateMedia& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
77
79
82 inline const Aws::String& GetLiveSourceName() const{ return m_liveSourceName; }
83 inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }
84 inline void SetLiveSourceName(const Aws::String& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = value; }
85 inline void SetLiveSourceName(Aws::String&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::move(value); }
86 inline void SetLiveSourceName(const char* value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName.assign(value); }
87 inline AlternateMedia& WithLiveSourceName(const Aws::String& value) { SetLiveSourceName(value); return *this;}
88 inline AlternateMedia& WithLiveSourceName(Aws::String&& value) { SetLiveSourceName(std::move(value)); return *this;}
89 inline AlternateMedia& WithLiveSourceName(const char* value) { SetLiveSourceName(value); return *this;}
91
93
97 inline long long GetScheduledStartTimeMillis() const{ return m_scheduledStartTimeMillis; }
98 inline bool ScheduledStartTimeMillisHasBeenSet() const { return m_scheduledStartTimeMillisHasBeenSet; }
99 inline void SetScheduledStartTimeMillis(long long value) { m_scheduledStartTimeMillisHasBeenSet = true; m_scheduledStartTimeMillis = value; }
100 inline AlternateMedia& WithScheduledStartTimeMillis(long long value) { SetScheduledStartTimeMillis(value); return *this;}
102
104
107 inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
108 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
109 inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
110 inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
111 inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
112 inline AlternateMedia& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;}
113 inline AlternateMedia& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
114 inline AlternateMedia& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
116
118
121 inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
122 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
123 inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; }
124 inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); }
125 inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); }
126 inline AlternateMedia& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
127 inline AlternateMedia& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
128 inline AlternateMedia& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
130 private:
131
132 Aws::Vector<AdBreak> m_adBreaks;
133 bool m_adBreaksHasBeenSet = false;
134
135 ClipRange m_clipRange;
136 bool m_clipRangeHasBeenSet = false;
137
138 long long m_durationMillis;
139 bool m_durationMillisHasBeenSet = false;
140
141 Aws::String m_liveSourceName;
142 bool m_liveSourceNameHasBeenSet = false;
143
144 long long m_scheduledStartTimeMillis;
145 bool m_scheduledStartTimeMillisHasBeenSet = false;
146
147 Aws::String m_sourceLocationName;
148 bool m_sourceLocationNameHasBeenSet = false;
149
150 Aws::String m_vodSourceName;
151 bool m_vodSourceNameHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace MediaTailor
156} // namespace Aws
AlternateMedia & WithLiveSourceName(const char *value)
const Aws::String & GetSourceLocationName() const
void SetLiveSourceName(const Aws::String &value)
AlternateMedia & WithDurationMillis(long long value)
AlternateMedia & WithScheduledStartTimeMillis(long long value)
AlternateMedia & WithAdBreaks(const Aws::Vector< AdBreak > &value)
AlternateMedia & AddAdBreaks(const AdBreak &value)
AlternateMedia & WithSourceLocationName(const char *value)
void SetAdBreaks(const Aws::Vector< AdBreak > &value)
void SetAdBreaks(Aws::Vector< AdBreak > &&value)
void SetSourceLocationName(Aws::String &&value)
void SetSourceLocationName(const Aws::String &value)
void SetLiveSourceName(const char *value)
AlternateMedia & WithClipRange(const ClipRange &value)
AlternateMedia & WithClipRange(ClipRange &&value)
void SetClipRange(const ClipRange &value)
AlternateMedia & WithVodSourceName(const Aws::String &value)
AlternateMedia & WithVodSourceName(Aws::String &&value)
void SetScheduledStartTimeMillis(long long value)
AWS_MEDIATAILOR_API AlternateMedia(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLiveSourceName() const
void SetSourceLocationName(const char *value)
AWS_MEDIATAILOR_API AlternateMedia & operator=(Aws::Utils::Json::JsonView jsonValue)
const ClipRange & GetClipRange() const
AlternateMedia & WithSourceLocationName(Aws::String &&value)
AlternateMedia & WithLiveSourceName(const Aws::String &value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVodSourceName(const Aws::String &value)
void SetLiveSourceName(Aws::String &&value)
AlternateMedia & AddAdBreaks(AdBreak &&value)
AlternateMedia & WithAdBreaks(Aws::Vector< AdBreak > &&value)
AlternateMedia & WithLiveSourceName(Aws::String &&value)
const Aws::Vector< AdBreak > & GetAdBreaks() const
AlternateMedia & WithVodSourceName(const char *value)
void SetVodSourceName(Aws::String &&value)
AlternateMedia & WithSourceLocationName(const Aws::String &value)
const Aws::String & GetVodSourceName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue