AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
AudioTrackSelection.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/AudioDolbyEDecode.h>
10#include <aws/medialive/model/AudioTrack.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
30 public:
31 AWS_MEDIALIVE_API AudioTrackSelection() = default;
32 AWS_MEDIALIVE_API AudioTrackSelection(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<AudioTrack>& GetTracks() const { return m_tracks; }
41 inline bool TracksHasBeenSet() const { return m_tracksHasBeenSet; }
42 template <typename TracksT = Aws::Vector<AudioTrack>>
43 void SetTracks(TracksT&& value) {
44 m_tracksHasBeenSet = true;
45 m_tracks = std::forward<TracksT>(value);
46 }
47 template <typename TracksT = Aws::Vector<AudioTrack>>
48 AudioTrackSelection& WithTracks(TracksT&& value) {
49 SetTracks(std::forward<TracksT>(value));
50 return *this;
51 }
52 template <typename TracksT = AudioTrack>
53 AudioTrackSelection& AddTracks(TracksT&& value) {
54 m_tracksHasBeenSet = true;
55 m_tracks.emplace_back(std::forward<TracksT>(value));
56 return *this;
57 }
59
61
65 inline const AudioDolbyEDecode& GetDolbyEDecode() const { return m_dolbyEDecode; }
66 inline bool DolbyEDecodeHasBeenSet() const { return m_dolbyEDecodeHasBeenSet; }
67 template <typename DolbyEDecodeT = AudioDolbyEDecode>
68 void SetDolbyEDecode(DolbyEDecodeT&& value) {
69 m_dolbyEDecodeHasBeenSet = true;
70 m_dolbyEDecode = std::forward<DolbyEDecodeT>(value);
71 }
72 template <typename DolbyEDecodeT = AudioDolbyEDecode>
73 AudioTrackSelection& WithDolbyEDecode(DolbyEDecodeT&& value) {
74 SetDolbyEDecode(std::forward<DolbyEDecodeT>(value));
75 return *this;
76 }
78 private:
80
81 AudioDolbyEDecode m_dolbyEDecode;
82 bool m_tracksHasBeenSet = false;
83 bool m_dolbyEDecodeHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace MediaLive
88} // namespace Aws
AWS_MEDIALIVE_API AudioTrackSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API AudioTrackSelection(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API AudioTrackSelection()=default
AudioTrackSelection & WithTracks(TracksT &&value)
AudioTrackSelection & AddTracks(TracksT &&value)
const AudioDolbyEDecode & GetDolbyEDecode() const
const Aws::Vector< AudioTrack > & GetTracks() const
AudioTrackSelection & WithDolbyEDecode(DolbyEDecodeT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue