AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
TransportStream.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9#include <aws/mediaconnect/model/ColorInformation.h>
10#include <aws/mediaconnect/model/FrameResolution.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaConnect {
22namespace Model {
23
31 public:
32 AWS_MEDIACONNECT_API TransportStream() = default;
33 AWS_MEDIACONNECT_API TransportStream(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API TransportStream& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetChannels() const { return m_channels; }
42 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
43 inline void SetChannels(int value) {
44 m_channelsHasBeenSet = true;
45 m_channels = value;
46 }
47 inline TransportStream& WithChannels(int value) {
48 SetChannels(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCodec() const { return m_codec; }
58 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
59 template <typename CodecT = Aws::String>
60 void SetCodec(CodecT&& value) {
61 m_codecHasBeenSet = true;
62 m_codec = std::forward<CodecT>(value);
63 }
64 template <typename CodecT = Aws::String>
65 TransportStream& WithCodec(CodecT&& value) {
66 SetCodec(std::forward<CodecT>(value));
67 return *this;
68 }
70
72
75 inline const ColorInformation& GetColor() const { return m_color; }
76 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
77 template <typename ColorT = ColorInformation>
78 void SetColor(ColorT&& value) {
79 m_colorHasBeenSet = true;
80 m_color = std::forward<ColorT>(value);
81 }
82 template <typename ColorT = ColorInformation>
83 TransportStream& WithColor(ColorT&& value) {
84 SetColor(std::forward<ColorT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFrameRate() const { return m_frameRate; }
94 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
95 template <typename FrameRateT = Aws::String>
96 void SetFrameRate(FrameRateT&& value) {
97 m_frameRateHasBeenSet = true;
98 m_frameRate = std::forward<FrameRateT>(value);
99 }
100 template <typename FrameRateT = Aws::String>
101 TransportStream& WithFrameRate(FrameRateT&& value) {
102 SetFrameRate(std::forward<FrameRateT>(value));
103 return *this;
104 }
106
108
111 inline const FrameResolution& GetFrameResolution() const { return m_frameResolution; }
112 inline bool FrameResolutionHasBeenSet() const { return m_frameResolutionHasBeenSet; }
113 template <typename FrameResolutionT = FrameResolution>
114 void SetFrameResolution(FrameResolutionT&& value) {
115 m_frameResolutionHasBeenSet = true;
116 m_frameResolution = std::forward<FrameResolutionT>(value);
117 }
118 template <typename FrameResolutionT = FrameResolution>
119 TransportStream& WithFrameResolution(FrameResolutionT&& value) {
120 SetFrameResolution(std::forward<FrameResolutionT>(value));
121 return *this;
122 }
124
126
129 inline int GetPid() const { return m_pid; }
130 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
131 inline void SetPid(int value) {
132 m_pidHasBeenSet = true;
133 m_pid = value;
134 }
135 inline TransportStream& WithPid(int value) {
136 SetPid(value);
137 return *this;
138 }
140
142
145 inline int GetSampleRate() const { return m_sampleRate; }
146 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
147 inline void SetSampleRate(int value) {
148 m_sampleRateHasBeenSet = true;
149 m_sampleRate = value;
150 }
151 inline TransportStream& WithSampleRate(int value) {
152 SetSampleRate(value);
153 return *this;
154 }
156
158
161 inline int GetSampleSize() const { return m_sampleSize; }
162 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
163 inline void SetSampleSize(int value) {
164 m_sampleSizeHasBeenSet = true;
165 m_sampleSize = value;
166 }
167 inline TransportStream& WithSampleSize(int value) {
168 SetSampleSize(value);
169 return *this;
170 }
172
174
177 inline const Aws::String& GetStreamType() const { return m_streamType; }
178 inline bool StreamTypeHasBeenSet() const { return m_streamTypeHasBeenSet; }
179 template <typename StreamTypeT = Aws::String>
180 void SetStreamType(StreamTypeT&& value) {
181 m_streamTypeHasBeenSet = true;
182 m_streamType = std::forward<StreamTypeT>(value);
183 }
184 template <typename StreamTypeT = Aws::String>
185 TransportStream& WithStreamType(StreamTypeT&& value) {
186 SetStreamType(std::forward<StreamTypeT>(value));
187 return *this;
188 }
190 private:
191 int m_channels{0};
192
193 Aws::String m_codec;
194
195 ColorInformation m_color;
196
197 Aws::String m_frameRate;
198
199 FrameResolution m_frameResolution;
200
201 int m_pid{0};
202
203 int m_sampleRate{0};
204
205 int m_sampleSize{0};
206
207 Aws::String m_streamType;
208 bool m_channelsHasBeenSet = false;
209 bool m_codecHasBeenSet = false;
210 bool m_colorHasBeenSet = false;
211 bool m_frameRateHasBeenSet = false;
212 bool m_frameResolutionHasBeenSet = false;
213 bool m_pidHasBeenSet = false;
214 bool m_sampleRateHasBeenSet = false;
215 bool m_sampleSizeHasBeenSet = false;
216 bool m_streamTypeHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace MediaConnect
221} // namespace Aws
TransportStream & WithSampleSize(int value)
const FrameResolution & GetFrameResolution() const
TransportStream & WithStreamType(StreamTypeT &&value)
const Aws::String & GetFrameRate() const
TransportStream & WithColor(ColorT &&value)
AWS_MEDIACONNECT_API TransportStream(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API TransportStream()=default
TransportStream & WithFrameResolution(FrameResolutionT &&value)
TransportStream & WithChannels(int value)
void SetFrameResolution(FrameResolutionT &&value)
TransportStream & WithFrameRate(FrameRateT &&value)
AWS_MEDIACONNECT_API TransportStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const ColorInformation & GetColor() const
TransportStream & WithCodec(CodecT &&value)
TransportStream & WithSampleRate(int value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStreamType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue