AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdBreak.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/MessageType.h>
10#include <aws/mediatailor/model/SlateSource.h>
11#include <aws/mediatailor/model/SpliceInsertMessage.h>
12#include <aws/mediatailor/model/TimeSignalMessage.h>
13#include <aws/mediatailor/model/KeyValuePair.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaTailor
27{
28namespace Model
29{
30
36 class AdBreak
37 {
38 public:
39 AWS_MEDIATAILOR_API AdBreak();
40 AWS_MEDIATAILOR_API AdBreak(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIATAILOR_API AdBreak& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<KeyValuePair>& GetAdBreakMetadata() const{ return m_adBreakMetadata; }
51 inline bool AdBreakMetadataHasBeenSet() const { return m_adBreakMetadataHasBeenSet; }
52 inline void SetAdBreakMetadata(const Aws::Vector<KeyValuePair>& value) { m_adBreakMetadataHasBeenSet = true; m_adBreakMetadata = value; }
53 inline void SetAdBreakMetadata(Aws::Vector<KeyValuePair>&& value) { m_adBreakMetadataHasBeenSet = true; m_adBreakMetadata = std::move(value); }
54 inline AdBreak& WithAdBreakMetadata(const Aws::Vector<KeyValuePair>& value) { SetAdBreakMetadata(value); return *this;}
55 inline AdBreak& WithAdBreakMetadata(Aws::Vector<KeyValuePair>&& value) { SetAdBreakMetadata(std::move(value)); return *this;}
56 inline AdBreak& AddAdBreakMetadata(const KeyValuePair& value) { m_adBreakMetadataHasBeenSet = true; m_adBreakMetadata.push_back(value); return *this; }
57 inline AdBreak& AddAdBreakMetadata(KeyValuePair&& value) { m_adBreakMetadataHasBeenSet = true; m_adBreakMetadata.push_back(std::move(value)); return *this; }
59
61
65 inline const MessageType& GetMessageType() const{ return m_messageType; }
66 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
67 inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
68 inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = std::move(value); }
69 inline AdBreak& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
70 inline AdBreak& WithMessageType(MessageType&& value) { SetMessageType(std::move(value)); return *this;}
72
74
79 inline long long GetOffsetMillis() const{ return m_offsetMillis; }
80 inline bool OffsetMillisHasBeenSet() const { return m_offsetMillisHasBeenSet; }
81 inline void SetOffsetMillis(long long value) { m_offsetMillisHasBeenSet = true; m_offsetMillis = value; }
82 inline AdBreak& WithOffsetMillis(long long value) { SetOffsetMillis(value); return *this;}
84
86
89 inline const SlateSource& GetSlate() const{ return m_slate; }
90 inline bool SlateHasBeenSet() const { return m_slateHasBeenSet; }
91 inline void SetSlate(const SlateSource& value) { m_slateHasBeenSet = true; m_slate = value; }
92 inline void SetSlate(SlateSource&& value) { m_slateHasBeenSet = true; m_slate = std::move(value); }
93 inline AdBreak& WithSlate(const SlateSource& value) { SetSlate(value); return *this;}
94 inline AdBreak& WithSlate(SlateSource&& value) { SetSlate(std::move(value)); return *this;}
96
98
103 inline const SpliceInsertMessage& GetSpliceInsertMessage() const{ return m_spliceInsertMessage; }
104 inline bool SpliceInsertMessageHasBeenSet() const { return m_spliceInsertMessageHasBeenSet; }
105 inline void SetSpliceInsertMessage(const SpliceInsertMessage& value) { m_spliceInsertMessageHasBeenSet = true; m_spliceInsertMessage = value; }
106 inline void SetSpliceInsertMessage(SpliceInsertMessage&& value) { m_spliceInsertMessageHasBeenSet = true; m_spliceInsertMessage = std::move(value); }
107 inline AdBreak& WithSpliceInsertMessage(const SpliceInsertMessage& value) { SetSpliceInsertMessage(value); return *this;}
108 inline AdBreak& WithSpliceInsertMessage(SpliceInsertMessage&& value) { SetSpliceInsertMessage(std::move(value)); return *this;}
110
112
119 inline const TimeSignalMessage& GetTimeSignalMessage() const{ return m_timeSignalMessage; }
120 inline bool TimeSignalMessageHasBeenSet() const { return m_timeSignalMessageHasBeenSet; }
121 inline void SetTimeSignalMessage(const TimeSignalMessage& value) { m_timeSignalMessageHasBeenSet = true; m_timeSignalMessage = value; }
122 inline void SetTimeSignalMessage(TimeSignalMessage&& value) { m_timeSignalMessageHasBeenSet = true; m_timeSignalMessage = std::move(value); }
123 inline AdBreak& WithTimeSignalMessage(const TimeSignalMessage& value) { SetTimeSignalMessage(value); return *this;}
124 inline AdBreak& WithTimeSignalMessage(TimeSignalMessage&& value) { SetTimeSignalMessage(std::move(value)); return *this;}
126 private:
127
128 Aws::Vector<KeyValuePair> m_adBreakMetadata;
129 bool m_adBreakMetadataHasBeenSet = false;
130
131 MessageType m_messageType;
132 bool m_messageTypeHasBeenSet = false;
133
134 long long m_offsetMillis;
135 bool m_offsetMillisHasBeenSet = false;
136
137 SlateSource m_slate;
138 bool m_slateHasBeenSet = false;
139
140 SpliceInsertMessage m_spliceInsertMessage;
141 bool m_spliceInsertMessageHasBeenSet = false;
142
143 TimeSignalMessage m_timeSignalMessage;
144 bool m_timeSignalMessageHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace MediaTailor
149} // namespace Aws
bool TimeSignalMessageHasBeenSet() const
Definition AdBreak.h:120
void SetSlate(const SlateSource &value)
Definition AdBreak.h:91
AdBreak & AddAdBreakMetadata(const KeyValuePair &value)
Definition AdBreak.h:56
void SetMessageType(MessageType &&value)
Definition AdBreak.h:68
AdBreak & AddAdBreakMetadata(KeyValuePair &&value)
Definition AdBreak.h:57
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
AdBreak & WithSpliceInsertMessage(const SpliceInsertMessage &value)
Definition AdBreak.h:107
void SetAdBreakMetadata(Aws::Vector< KeyValuePair > &&value)
Definition AdBreak.h:53
AdBreak & WithMessageType(MessageType &&value)
Definition AdBreak.h:70
bool SpliceInsertMessageHasBeenSet() const
Definition AdBreak.h:104
const Aws::Vector< KeyValuePair > & GetAdBreakMetadata() const
Definition AdBreak.h:50
void SetSpliceInsertMessage(SpliceInsertMessage &&value)
Definition AdBreak.h:106
bool AdBreakMetadataHasBeenSet() const
Definition AdBreak.h:51
AdBreak & WithAdBreakMetadata(Aws::Vector< KeyValuePair > &&value)
Definition AdBreak.h:55
AdBreak & WithAdBreakMetadata(const Aws::Vector< KeyValuePair > &value)
Definition AdBreak.h:54
void SetMessageType(const MessageType &value)
Definition AdBreak.h:67
AdBreak & WithOffsetMillis(long long value)
Definition AdBreak.h:82
AdBreak & WithMessageType(const MessageType &value)
Definition AdBreak.h:69
const SlateSource & GetSlate() const
Definition AdBreak.h:89
AWS_MEDIATAILOR_API AdBreak & operator=(Aws::Utils::Json::JsonView jsonValue)
const TimeSignalMessage & GetTimeSignalMessage() const
Definition AdBreak.h:119
bool MessageTypeHasBeenSet() const
Definition AdBreak.h:66
AWS_MEDIATAILOR_API AdBreak()
AdBreak & WithSlate(SlateSource &&value)
Definition AdBreak.h:94
void SetAdBreakMetadata(const Aws::Vector< KeyValuePair > &value)
Definition AdBreak.h:52
void SetTimeSignalMessage(TimeSignalMessage &&value)
Definition AdBreak.h:122
long long GetOffsetMillis() const
Definition AdBreak.h:79
void SetOffsetMillis(long long value)
Definition AdBreak.h:81
AdBreak & WithSlate(const SlateSource &value)
Definition AdBreak.h:93
void SetSlate(SlateSource &&value)
Definition AdBreak.h:92
void SetTimeSignalMessage(const TimeSignalMessage &value)
Definition AdBreak.h:121
AWS_MEDIATAILOR_API AdBreak(Aws::Utils::Json::JsonView jsonValue)
void SetSpliceInsertMessage(const SpliceInsertMessage &value)
Definition AdBreak.h:105
AdBreak & WithTimeSignalMessage(TimeSignalMessage &&value)
Definition AdBreak.h:124
AdBreak & WithTimeSignalMessage(const TimeSignalMessage &value)
Definition AdBreak.h:123
bool OffsetMillisHasBeenSet() const
Definition AdBreak.h:80
AdBreak & WithSpliceInsertMessage(SpliceInsertMessage &&value)
Definition AdBreak.h:108
const MessageType & GetMessageType() const
Definition AdBreak.h:65
const SpliceInsertMessage & GetSpliceInsertMessage() const
Definition AdBreak.h:103
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue