AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TransportStream.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconnect/model/FrameResolution.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 MediaConnect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MEDIACONNECT_API TransportStream() = default;
37 AWS_MEDIACONNECT_API TransportStream(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIACONNECT_API TransportStream& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetChannels() const { return m_channels; }
47 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
48 inline void SetChannels(int value) { m_channelsHasBeenSet = true; m_channels = value; }
49 inline TransportStream& WithChannels(int value) { SetChannels(value); return *this;}
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) { m_codecHasBeenSet = true; m_codec = std::forward<CodecT>(value); }
60 template<typename CodecT = Aws::String>
61 TransportStream& WithCodec(CodecT&& value) { SetCodec(std::forward<CodecT>(value)); return *this;}
63
65
68 inline const Aws::String& GetFrameRate() const { return m_frameRate; }
69 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
70 template<typename FrameRateT = Aws::String>
71 void SetFrameRate(FrameRateT&& value) { m_frameRateHasBeenSet = true; m_frameRate = std::forward<FrameRateT>(value); }
72 template<typename FrameRateT = Aws::String>
73 TransportStream& WithFrameRate(FrameRateT&& value) { SetFrameRate(std::forward<FrameRateT>(value)); return *this;}
75
77
80 inline const FrameResolution& GetFrameResolution() const { return m_frameResolution; }
81 inline bool FrameResolutionHasBeenSet() const { return m_frameResolutionHasBeenSet; }
82 template<typename FrameResolutionT = FrameResolution>
83 void SetFrameResolution(FrameResolutionT&& value) { m_frameResolutionHasBeenSet = true; m_frameResolution = std::forward<FrameResolutionT>(value); }
84 template<typename FrameResolutionT = FrameResolution>
85 TransportStream& WithFrameResolution(FrameResolutionT&& value) { SetFrameResolution(std::forward<FrameResolutionT>(value)); return *this;}
87
89
92 inline int GetPid() const { return m_pid; }
93 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
94 inline void SetPid(int value) { m_pidHasBeenSet = true; m_pid = value; }
95 inline TransportStream& WithPid(int value) { SetPid(value); return *this;}
97
99
102 inline int GetSampleRate() const { return m_sampleRate; }
103 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
104 inline void SetSampleRate(int value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
105 inline TransportStream& WithSampleRate(int value) { SetSampleRate(value); return *this;}
107
109
112 inline int GetSampleSize() const { return m_sampleSize; }
113 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
114 inline void SetSampleSize(int value) { m_sampleSizeHasBeenSet = true; m_sampleSize = value; }
115 inline TransportStream& WithSampleSize(int value) { SetSampleSize(value); return *this;}
117
119
122 inline const Aws::String& GetStreamType() const { return m_streamType; }
123 inline bool StreamTypeHasBeenSet() const { return m_streamTypeHasBeenSet; }
124 template<typename StreamTypeT = Aws::String>
125 void SetStreamType(StreamTypeT&& value) { m_streamTypeHasBeenSet = true; m_streamType = std::forward<StreamTypeT>(value); }
126 template<typename StreamTypeT = Aws::String>
127 TransportStream& WithStreamType(StreamTypeT&& value) { SetStreamType(std::forward<StreamTypeT>(value)); return *this;}
129 private:
130
131 int m_channels{0};
132 bool m_channelsHasBeenSet = false;
133
134 Aws::String m_codec;
135 bool m_codecHasBeenSet = false;
136
137 Aws::String m_frameRate;
138 bool m_frameRateHasBeenSet = false;
139
140 FrameResolution m_frameResolution;
141 bool m_frameResolutionHasBeenSet = false;
142
143 int m_pid{0};
144 bool m_pidHasBeenSet = false;
145
146 int m_sampleRate{0};
147 bool m_sampleRateHasBeenSet = false;
148
149 int m_sampleSize{0};
150 bool m_sampleSizeHasBeenSet = false;
151
152 Aws::String m_streamType;
153 bool m_streamTypeHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace MediaConnect
158} // namespace Aws
TransportStream & WithPid(int value)
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