AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
33 {
34 public:
35 AWS_MEDIACONNECT_API TransportStream();
36 AWS_MEDIACONNECT_API TransportStream(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONNECT_API TransportStream& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetChannels() const{ return m_channels; }
46 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
47 inline void SetChannels(int value) { m_channelsHasBeenSet = true; m_channels = value; }
48 inline TransportStream& WithChannels(int value) { SetChannels(value); return *this;}
50
52
55 inline const Aws::String& GetCodec() const{ return m_codec; }
56 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
57 inline void SetCodec(const Aws::String& value) { m_codecHasBeenSet = true; m_codec = value; }
58 inline void SetCodec(Aws::String&& value) { m_codecHasBeenSet = true; m_codec = std::move(value); }
59 inline void SetCodec(const char* value) { m_codecHasBeenSet = true; m_codec.assign(value); }
60 inline TransportStream& WithCodec(const Aws::String& value) { SetCodec(value); return *this;}
61 inline TransportStream& WithCodec(Aws::String&& value) { SetCodec(std::move(value)); return *this;}
62 inline TransportStream& WithCodec(const char* value) { SetCodec(value); return *this;}
64
66
69 inline const Aws::String& GetFrameRate() const{ return m_frameRate; }
70 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
71 inline void SetFrameRate(const Aws::String& value) { m_frameRateHasBeenSet = true; m_frameRate = value; }
72 inline void SetFrameRate(Aws::String&& value) { m_frameRateHasBeenSet = true; m_frameRate = std::move(value); }
73 inline void SetFrameRate(const char* value) { m_frameRateHasBeenSet = true; m_frameRate.assign(value); }
74 inline TransportStream& WithFrameRate(const Aws::String& value) { SetFrameRate(value); return *this;}
75 inline TransportStream& WithFrameRate(Aws::String&& value) { SetFrameRate(std::move(value)); return *this;}
76 inline TransportStream& WithFrameRate(const char* value) { SetFrameRate(value); return *this;}
78
80
81 inline const FrameResolution& GetFrameResolution() const{ return m_frameResolution; }
82 inline bool FrameResolutionHasBeenSet() const { return m_frameResolutionHasBeenSet; }
83 inline void SetFrameResolution(const FrameResolution& value) { m_frameResolutionHasBeenSet = true; m_frameResolution = value; }
84 inline void SetFrameResolution(FrameResolution&& value) { m_frameResolutionHasBeenSet = true; m_frameResolution = std::move(value); }
85 inline TransportStream& WithFrameResolution(const FrameResolution& value) { SetFrameResolution(value); return *this;}
86 inline TransportStream& WithFrameResolution(FrameResolution&& value) { SetFrameResolution(std::move(value)); return *this;}
88
90
93 inline int GetPid() const{ return m_pid; }
94 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
95 inline void SetPid(int value) { m_pidHasBeenSet = true; m_pid = value; }
96 inline TransportStream& WithPid(int value) { SetPid(value); return *this;}
98
100
103 inline int GetSampleRate() const{ return m_sampleRate; }
104 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
105 inline void SetSampleRate(int value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
106 inline TransportStream& WithSampleRate(int value) { SetSampleRate(value); return *this;}
108
110
113 inline int GetSampleSize() const{ return m_sampleSize; }
114 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
115 inline void SetSampleSize(int value) { m_sampleSizeHasBeenSet = true; m_sampleSize = value; }
116 inline TransportStream& WithSampleSize(int value) { SetSampleSize(value); return *this;}
118
120
123 inline const Aws::String& GetStreamType() const{ return m_streamType; }
124 inline bool StreamTypeHasBeenSet() const { return m_streamTypeHasBeenSet; }
125 inline void SetStreamType(const Aws::String& value) { m_streamTypeHasBeenSet = true; m_streamType = value; }
126 inline void SetStreamType(Aws::String&& value) { m_streamTypeHasBeenSet = true; m_streamType = std::move(value); }
127 inline void SetStreamType(const char* value) { m_streamTypeHasBeenSet = true; m_streamType.assign(value); }
128 inline TransportStream& WithStreamType(const Aws::String& value) { SetStreamType(value); return *this;}
129 inline TransportStream& WithStreamType(Aws::String&& value) { SetStreamType(std::move(value)); return *this;}
130 inline TransportStream& WithStreamType(const char* value) { SetStreamType(value); return *this;}
132 private:
133
134 int m_channels;
135 bool m_channelsHasBeenSet = false;
136
137 Aws::String m_codec;
138 bool m_codecHasBeenSet = false;
139
140 Aws::String m_frameRate;
141 bool m_frameRateHasBeenSet = false;
142
143 FrameResolution m_frameResolution;
144 bool m_frameResolutionHasBeenSet = false;
145
146 int m_pid;
147 bool m_pidHasBeenSet = false;
148
149 int m_sampleRate;
150 bool m_sampleRateHasBeenSet = false;
151
152 int m_sampleSize;
153 bool m_sampleSizeHasBeenSet = false;
154
155 Aws::String m_streamType;
156 bool m_streamTypeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace MediaConnect
161} // namespace Aws
void SetFrameResolution(const FrameResolution &value)
TransportStream & WithPid(int value)
TransportStream & WithFrameRate(const Aws::String &value)
TransportStream & WithCodec(Aws::String &&value)
TransportStream & WithStreamType(Aws::String &&value)
TransportStream & WithSampleSize(int value)
TransportStream & WithFrameRate(Aws::String &&value)
TransportStream & WithStreamType(const Aws::String &value)
const FrameResolution & GetFrameResolution() const
TransportStream & WithCodec(const Aws::String &value)
const Aws::String & GetFrameRate() const
TransportStream & WithFrameRate(const char *value)
void SetFrameResolution(FrameResolution &&value)
AWS_MEDIACONNECT_API TransportStream(Aws::Utils::Json::JsonView jsonValue)
TransportStream & WithStreamType(const char *value)
TransportStream & WithFrameResolution(FrameResolution &&value)
TransportStream & WithChannels(int value)
AWS_MEDIACONNECT_API TransportStream & operator=(Aws::Utils::Json::JsonView jsonValue)
TransportStream & WithFrameResolution(const FrameResolution &value)
TransportStream & WithCodec(const char *value)
void SetFrameRate(const Aws::String &value)
void SetCodec(const Aws::String &value)
void SetStreamType(const Aws::String &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