AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
NdiMediaInfo.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/NdiMediaStreamInfo.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
31 public:
32 AWS_MEDIACONNECT_API NdiMediaInfo() = default;
33 AWS_MEDIACONNECT_API NdiMediaInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API NdiMediaInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<NdiMediaStreamInfo>& GetStreams() const { return m_streams; }
44 inline bool StreamsHasBeenSet() const { return m_streamsHasBeenSet; }
45 template <typename StreamsT = Aws::Vector<NdiMediaStreamInfo>>
46 void SetStreams(StreamsT&& value) {
47 m_streamsHasBeenSet = true;
48 m_streams = std::forward<StreamsT>(value);
49 }
50 template <typename StreamsT = Aws::Vector<NdiMediaStreamInfo>>
51 NdiMediaInfo& WithStreams(StreamsT&& value) {
52 SetStreams(std::forward<StreamsT>(value));
53 return *this;
54 }
55 template <typename StreamsT = NdiMediaStreamInfo>
56 NdiMediaInfo& AddStreams(StreamsT&& value) {
57 m_streamsHasBeenSet = true;
58 m_streams.emplace_back(std::forward<StreamsT>(value));
59 return *this;
60 }
62 private:
64 bool m_streamsHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace MediaConnect
69} // namespace Aws
const Aws::Vector< NdiMediaStreamInfo > & GetStreams() const
AWS_MEDIACONNECT_API NdiMediaInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
NdiMediaInfo & WithStreams(StreamsT &&value)
NdiMediaInfo & AddStreams(StreamsT &&value)
AWS_MEDIACONNECT_API NdiMediaInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API NdiMediaInfo()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue