AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScheduleAdBreak.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaTailor
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MEDIATAILOR_API ScheduleAdBreak() = default;
36 AWS_MEDIATAILOR_API ScheduleAdBreak(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIATAILOR_API ScheduleAdBreak& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetApproximateDurationSeconds() const { return m_approximateDurationSeconds; }
46 inline bool ApproximateDurationSecondsHasBeenSet() const { return m_approximateDurationSecondsHasBeenSet; }
47 inline void SetApproximateDurationSeconds(long long value) { m_approximateDurationSecondsHasBeenSet = true; m_approximateDurationSeconds = value; }
48 inline ScheduleAdBreak& WithApproximateDurationSeconds(long long value) { SetApproximateDurationSeconds(value); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetApproximateStartTime() const { return m_approximateStartTime; }
56 inline bool ApproximateStartTimeHasBeenSet() const { return m_approximateStartTimeHasBeenSet; }
57 template<typename ApproximateStartTimeT = Aws::Utils::DateTime>
58 void SetApproximateStartTime(ApproximateStartTimeT&& value) { m_approximateStartTimeHasBeenSet = true; m_approximateStartTime = std::forward<ApproximateStartTimeT>(value); }
59 template<typename ApproximateStartTimeT = Aws::Utils::DateTime>
60 ScheduleAdBreak& WithApproximateStartTime(ApproximateStartTimeT&& value) { SetApproximateStartTime(std::forward<ApproximateStartTimeT>(value)); return *this;}
62
64
68 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
69 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
70 template<typename SourceLocationNameT = Aws::String>
71 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
72 template<typename SourceLocationNameT = Aws::String>
73 ScheduleAdBreak& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetVodSourceName() const { return m_vodSourceName; }
81 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
82 template<typename VodSourceNameT = Aws::String>
83 void SetVodSourceName(VodSourceNameT&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::forward<VodSourceNameT>(value); }
84 template<typename VodSourceNameT = Aws::String>
85 ScheduleAdBreak& WithVodSourceName(VodSourceNameT&& value) { SetVodSourceName(std::forward<VodSourceNameT>(value)); return *this;}
87 private:
88
89 long long m_approximateDurationSeconds{0};
90 bool m_approximateDurationSecondsHasBeenSet = false;
91
92 Aws::Utils::DateTime m_approximateStartTime{};
93 bool m_approximateStartTimeHasBeenSet = false;
94
95 Aws::String m_sourceLocationName;
96 bool m_sourceLocationNameHasBeenSet = false;
97
98 Aws::String m_vodSourceName;
99 bool m_vodSourceNameHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace MediaTailor
104} // namespace Aws
const Aws::String & GetVodSourceName() const
ScheduleAdBreak & WithApproximateStartTime(ApproximateStartTimeT &&value)
const Aws::String & GetSourceLocationName() const
AWS_MEDIATAILOR_API ScheduleAdBreak()=default
ScheduleAdBreak & WithVodSourceName(VodSourceNameT &&value)
ScheduleAdBreak & WithSourceLocationName(SourceLocationNameT &&value)
void SetApproximateStartTime(ApproximateStartTimeT &&value)
void SetVodSourceName(VodSourceNameT &&value)
void SetSourceLocationName(SourceLocationNameT &&value)
void SetApproximateDurationSeconds(long long value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduleAdBreak & WithApproximateDurationSeconds(long long value)
const Aws::Utils::DateTime & GetApproximateStartTime() const
AWS_MEDIATAILOR_API ScheduleAdBreak(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIATAILOR_API ScheduleAdBreak & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue