AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransportStreamProgram.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediaconnect/model/TransportStream.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaConnect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIACONNECT_API TransportStreamProgram();
37 AWS_MEDIACONNECT_API TransportStreamProgram(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline int GetPcrPid() const{ return m_pcrPid; }
48 inline bool PcrPidHasBeenSet() const { return m_pcrPidHasBeenSet; }
49 inline void SetPcrPid(int value) { m_pcrPidHasBeenSet = true; m_pcrPid = value; }
50 inline TransportStreamProgram& WithPcrPid(int value) { SetPcrPid(value); return *this;}
52
54
57 inline const Aws::String& GetProgramName() const{ return m_programName; }
58 inline bool ProgramNameHasBeenSet() const { return m_programNameHasBeenSet; }
59 inline void SetProgramName(const Aws::String& value) { m_programNameHasBeenSet = true; m_programName = value; }
60 inline void SetProgramName(Aws::String&& value) { m_programNameHasBeenSet = true; m_programName = std::move(value); }
61 inline void SetProgramName(const char* value) { m_programNameHasBeenSet = true; m_programName.assign(value); }
62 inline TransportStreamProgram& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;}
63 inline TransportStreamProgram& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;}
64 inline TransportStreamProgram& WithProgramName(const char* value) { SetProgramName(value); return *this;}
66
68
71 inline int GetProgramNumber() const{ return m_programNumber; }
72 inline bool ProgramNumberHasBeenSet() const { return m_programNumberHasBeenSet; }
73 inline void SetProgramNumber(int value) { m_programNumberHasBeenSet = true; m_programNumber = value; }
74 inline TransportStreamProgram& WithProgramNumber(int value) { SetProgramNumber(value); return *this;}
76
78
81 inline int GetProgramPid() const{ return m_programPid; }
82 inline bool ProgramPidHasBeenSet() const { return m_programPidHasBeenSet; }
83 inline void SetProgramPid(int value) { m_programPidHasBeenSet = true; m_programPid = value; }
84 inline TransportStreamProgram& WithProgramPid(int value) { SetProgramPid(value); return *this;}
86
88
92 inline const Aws::Vector<TransportStream>& GetStreams() const{ return m_streams; }
93 inline bool StreamsHasBeenSet() const { return m_streamsHasBeenSet; }
94 inline void SetStreams(const Aws::Vector<TransportStream>& value) { m_streamsHasBeenSet = true; m_streams = value; }
95 inline void SetStreams(Aws::Vector<TransportStream>&& value) { m_streamsHasBeenSet = true; m_streams = std::move(value); }
96 inline TransportStreamProgram& WithStreams(const Aws::Vector<TransportStream>& value) { SetStreams(value); return *this;}
97 inline TransportStreamProgram& WithStreams(Aws::Vector<TransportStream>&& value) { SetStreams(std::move(value)); return *this;}
98 inline TransportStreamProgram& AddStreams(const TransportStream& value) { m_streamsHasBeenSet = true; m_streams.push_back(value); return *this; }
99 inline TransportStreamProgram& AddStreams(TransportStream&& value) { m_streamsHasBeenSet = true; m_streams.push_back(std::move(value)); return *this; }
101 private:
102
103 int m_pcrPid;
104 bool m_pcrPidHasBeenSet = false;
105
106 Aws::String m_programName;
107 bool m_programNameHasBeenSet = false;
108
109 int m_programNumber;
110 bool m_programNumberHasBeenSet = false;
111
112 int m_programPid;
113 bool m_programPidHasBeenSet = false;
114
116 bool m_streamsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace MediaConnect
121} // namespace Aws
TransportStreamProgram & AddStreams(const TransportStream &value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TransportStreamProgram & WithStreams(const Aws::Vector< TransportStream > &value)
void SetStreams(const Aws::Vector< TransportStream > &value)
AWS_MEDIACONNECT_API TransportStreamProgram(Aws::Utils::Json::JsonView jsonValue)
TransportStreamProgram & WithProgramName(Aws::String &&value)
TransportStreamProgram & WithProgramName(const Aws::String &value)
TransportStreamProgram & WithProgramNumber(int value)
void SetStreams(Aws::Vector< TransportStream > &&value)
TransportStreamProgram & AddStreams(TransportStream &&value)
const Aws::Vector< TransportStream > & GetStreams() const
TransportStreamProgram & WithStreams(Aws::Vector< TransportStream > &&value)
TransportStreamProgram & WithProgramPid(int value)
TransportStreamProgram & WithProgramName(const char *value)
AWS_MEDIACONNECT_API TransportStreamProgram & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue