AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
TransportMediaInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9#include <aws/mediaconnect/model/TransportStreamProgram.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 TransportMediaInfo() = default;
32 AWS_MEDIACONNECT_API TransportMediaInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<TransportStreamProgram>& GetPrograms() const { return m_programs; }
41 inline bool ProgramsHasBeenSet() const { return m_programsHasBeenSet; }
42 template <typename ProgramsT = Aws::Vector<TransportStreamProgram>>
43 void SetPrograms(ProgramsT&& value) {
44 m_programsHasBeenSet = true;
45 m_programs = std::forward<ProgramsT>(value);
46 }
47 template <typename ProgramsT = Aws::Vector<TransportStreamProgram>>
48 TransportMediaInfo& WithPrograms(ProgramsT&& value) {
49 SetPrograms(std::forward<ProgramsT>(value));
50 return *this;
51 }
52 template <typename ProgramsT = TransportStreamProgram>
53 TransportMediaInfo& AddPrograms(ProgramsT&& value) {
54 m_programsHasBeenSet = true;
55 m_programs.emplace_back(std::forward<ProgramsT>(value));
56 return *this;
57 }
59 private:
61 bool m_programsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace MediaConnect
66} // namespace Aws
const Aws::Vector< TransportStreamProgram > & GetPrograms() const
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API TransportMediaInfo()=default
AWS_MEDIACONNECT_API TransportMediaInfo(Aws::Utils::Json::JsonView jsonValue)
TransportMediaInfo & AddPrograms(ProgramsT &&value)
TransportMediaInfo & WithPrograms(ProgramsT &&value)
AWS_MEDIACONNECT_API TransportMediaInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue