AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
AudioTrackSelection.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/model/AudioDolbyEDecode.h>
10#include <aws/medialive/model/AudioTrack.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 MediaLive
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIALIVE_API AudioTrackSelection() = default;
37 AWS_MEDIALIVE_API AudioTrackSelection(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<AudioTrack>& GetTracks() const { return m_tracks; }
47 inline bool TracksHasBeenSet() const { return m_tracksHasBeenSet; }
48 template<typename TracksT = Aws::Vector<AudioTrack>>
49 void SetTracks(TracksT&& value) { m_tracksHasBeenSet = true; m_tracks = std::forward<TracksT>(value); }
50 template<typename TracksT = Aws::Vector<AudioTrack>>
51 AudioTrackSelection& WithTracks(TracksT&& value) { SetTracks(std::forward<TracksT>(value)); return *this;}
52 template<typename TracksT = AudioTrack>
53 AudioTrackSelection& AddTracks(TracksT&& value) { m_tracksHasBeenSet = true; m_tracks.emplace_back(std::forward<TracksT>(value)); return *this; }
55
57
61 inline const AudioDolbyEDecode& GetDolbyEDecode() const { return m_dolbyEDecode; }
62 inline bool DolbyEDecodeHasBeenSet() const { return m_dolbyEDecodeHasBeenSet; }
63 template<typename DolbyEDecodeT = AudioDolbyEDecode>
64 void SetDolbyEDecode(DolbyEDecodeT&& value) { m_dolbyEDecodeHasBeenSet = true; m_dolbyEDecode = std::forward<DolbyEDecodeT>(value); }
65 template<typename DolbyEDecodeT = AudioDolbyEDecode>
66 AudioTrackSelection& WithDolbyEDecode(DolbyEDecodeT&& value) { SetDolbyEDecode(std::forward<DolbyEDecodeT>(value)); return *this;}
68 private:
69
71 bool m_tracksHasBeenSet = false;
72
73 AudioDolbyEDecode m_dolbyEDecode;
74 bool m_dolbyEDecodeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace MediaLive
79} // 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