AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/FrameResolution.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaConnect {
21namespace Model {
22
30 public:
31 AWS_MEDIACONNECT_API TransportStream() = default;
32 AWS_MEDIACONNECT_API TransportStream(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIACONNECT_API TransportStream& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetChannels() const { return m_channels; }
41 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
42 inline void SetChannels(int value) {
43 m_channelsHasBeenSet = true;
44 m_channels = value;
45 }
46 inline TransportStream& WithChannels(int value) {
47 SetChannels(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCodec() const { return m_codec; }
57 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
58 template <typename CodecT = Aws::String>
59 void SetCodec(CodecT&& value) {
60 m_codecHasBeenSet = true;
61 m_codec = std::forward<CodecT>(value);
62 }
63 template <typename CodecT = Aws::String>
64 TransportStream& WithCodec(CodecT&& value) {
65 SetCodec(std::forward<CodecT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetFrameRate() const { return m_frameRate; }
75 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
76 template <typename FrameRateT = Aws::String>
77 void SetFrameRate(FrameRateT&& value) {
78 m_frameRateHasBeenSet = true;
79 m_frameRate = std::forward<FrameRateT>(value);
80 }
81 template <typename FrameRateT = Aws::String>
82 TransportStream& WithFrameRate(FrameRateT&& value) {
83 SetFrameRate(std::forward<FrameRateT>(value));
84 return *this;
85 }
87
89
92 inline const FrameResolution& GetFrameResolution() const { return m_frameResolution; }
93 inline bool FrameResolutionHasBeenSet() const { return m_frameResolutionHasBeenSet; }
94 template <typename FrameResolutionT = FrameResolution>
95 void SetFrameResolution(FrameResolutionT&& value) {
96 m_frameResolutionHasBeenSet = true;
97 m_frameResolution = std::forward<FrameResolutionT>(value);
98 }
99 template <typename FrameResolutionT = FrameResolution>
100 TransportStream& WithFrameResolution(FrameResolutionT&& value) {
101 SetFrameResolution(std::forward<FrameResolutionT>(value));
102 return *this;
103 }
105
107
110 inline int GetPid() const { return m_pid; }
111 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
112 inline void SetPid(int value) {
113 m_pidHasBeenSet = true;
114 m_pid = value;
115 }
116 inline TransportStream& WithPid(int value) {
117 SetPid(value);
118 return *this;
119 }
121
123
126 inline int GetSampleRate() const { return m_sampleRate; }
127 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
128 inline void SetSampleRate(int value) {
129 m_sampleRateHasBeenSet = true;
130 m_sampleRate = value;
131 }
132 inline TransportStream& WithSampleRate(int value) {
133 SetSampleRate(value);
134 return *this;
135 }
137
139
142 inline int GetSampleSize() const { return m_sampleSize; }
143 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
144 inline void SetSampleSize(int value) {
145 m_sampleSizeHasBeenSet = true;
146 m_sampleSize = value;
147 }
148 inline TransportStream& WithSampleSize(int value) {
149 SetSampleSize(value);
150 return *this;
151 }
153
155
158 inline const Aws::String& GetStreamType() const { return m_streamType; }
159 inline bool StreamTypeHasBeenSet() const { return m_streamTypeHasBeenSet; }
160 template <typename StreamTypeT = Aws::String>
161 void SetStreamType(StreamTypeT&& value) {
162 m_streamTypeHasBeenSet = true;
163 m_streamType = std::forward<StreamTypeT>(value);
164 }
165 template <typename StreamTypeT = Aws::String>
166 TransportStream& WithStreamType(StreamTypeT&& value) {
167 SetStreamType(std::forward<StreamTypeT>(value));
168 return *this;
169 }
171 private:
172 int m_channels{0};
173
174 Aws::String m_codec;
175
176 Aws::String m_frameRate;
177
178 FrameResolution m_frameResolution;
179
180 int m_pid{0};
181
182 int m_sampleRate{0};
183
184 int m_sampleSize{0};
185
186 Aws::String m_streamType;
187 bool m_channelsHasBeenSet = false;
188 bool m_codecHasBeenSet = false;
189 bool m_frameRateHasBeenSet = false;
190 bool m_frameResolutionHasBeenSet = false;
191 bool m_pidHasBeenSet = false;
192 bool m_sampleRateHasBeenSet = false;
193 bool m_sampleSizeHasBeenSet = false;
194 bool m_streamTypeHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace MediaConnect
199} // namespace Aws
TransportStream & WithSampleSize(int value)
const FrameResolution & GetFrameResolution() const
TransportStream & WithStreamType(StreamTypeT &&value)
const Aws::String & GetFrameRate() const
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)
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