AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
AudioPidSelection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/AudioPid.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaLive {
21namespace Model {
22
29 public:
30 AWS_MEDIALIVE_API AudioPidSelection() = default;
31 AWS_MEDIALIVE_API AudioPidSelection(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetPid() const { return m_pid; }
40 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
41 inline void SetPid(int value) {
42 m_pidHasBeenSet = true;
43 m_pid = value;
44 }
45 inline AudioPidSelection& WithPid(int value) {
46 SetPid(value);
47 return *this;
48 }
50
52
57 inline const Aws::Vector<AudioPid>& GetPids() const { return m_pids; }
58 inline bool PidsHasBeenSet() const { return m_pidsHasBeenSet; }
59 template <typename PidsT = Aws::Vector<AudioPid>>
60 void SetPids(PidsT&& value) {
61 m_pidsHasBeenSet = true;
62 m_pids = std::forward<PidsT>(value);
63 }
64 template <typename PidsT = Aws::Vector<AudioPid>>
65 AudioPidSelection& WithPids(PidsT&& value) {
66 SetPids(std::forward<PidsT>(value));
67 return *this;
68 }
69 template <typename PidsT = AudioPid>
70 AudioPidSelection& AddPids(PidsT&& value) {
71 m_pidsHasBeenSet = true;
72 m_pids.emplace_back(std::forward<PidsT>(value));
73 return *this;
74 }
76 private:
77 int m_pid{0};
78
80 bool m_pidHasBeenSet = false;
81 bool m_pidsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace MediaLive
86} // namespace Aws
const Aws::Vector< AudioPid > & GetPids() const
AWS_MEDIALIVE_API AudioPidSelection()=default
AWS_MEDIALIVE_API AudioPidSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API AudioPidSelection(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AudioPidSelection & AddPids(PidsT &&value)
AudioPidSelection & WithPid(int value)
AudioPidSelection & WithPids(PidsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue