AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Track.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/AudioProperties.h>
9#include <aws/mediaconvert/model/Codec.h>
10#include <aws/mediaconvert/model/DataProperties.h>
11#include <aws/mediaconvert/model/TrackType.h>
12#include <aws/mediaconvert/model/VideoProperties.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaConvert
26{
27namespace Model
28{
29
36 class Track
37 {
38 public:
39 AWS_MEDIACONVERT_API Track() = default;
40 AWS_MEDIACONVERT_API Track(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONVERT_API Track& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AudioProperties& GetAudioProperties() const { return m_audioProperties; }
50 inline bool AudioPropertiesHasBeenSet() const { return m_audioPropertiesHasBeenSet; }
51 template<typename AudioPropertiesT = AudioProperties>
52 void SetAudioProperties(AudioPropertiesT&& value) { m_audioPropertiesHasBeenSet = true; m_audioProperties = std::forward<AudioPropertiesT>(value); }
53 template<typename AudioPropertiesT = AudioProperties>
54 Track& WithAudioProperties(AudioPropertiesT&& value) { SetAudioProperties(std::forward<AudioPropertiesT>(value)); return *this;}
56
58
61 inline Codec GetCodec() const { return m_codec; }
62 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
63 inline void SetCodec(Codec value) { m_codecHasBeenSet = true; m_codec = value; }
64 inline Track& WithCodec(Codec value) { SetCodec(value); return *this;}
66
68
71 inline const DataProperties& GetDataProperties() const { return m_dataProperties; }
72 inline bool DataPropertiesHasBeenSet() const { return m_dataPropertiesHasBeenSet; }
73 template<typename DataPropertiesT = DataProperties>
74 void SetDataProperties(DataPropertiesT&& value) { m_dataPropertiesHasBeenSet = true; m_dataProperties = std::forward<DataPropertiesT>(value); }
75 template<typename DataPropertiesT = DataProperties>
76 Track& WithDataProperties(DataPropertiesT&& value) { SetDataProperties(std::forward<DataPropertiesT>(value)); return *this;}
78
80
83 inline double GetDuration() const { return m_duration; }
84 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
85 inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; }
86 inline Track& WithDuration(double value) { SetDuration(value); return *this;}
88
90
93 inline int GetIndex() const { return m_index; }
94 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
95 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
96 inline Track& WithIndex(int value) { SetIndex(value); return *this;}
98
100
103 inline TrackType GetTrackType() const { return m_trackType; }
104 inline bool TrackTypeHasBeenSet() const { return m_trackTypeHasBeenSet; }
105 inline void SetTrackType(TrackType value) { m_trackTypeHasBeenSet = true; m_trackType = value; }
106 inline Track& WithTrackType(TrackType value) { SetTrackType(value); return *this;}
108
110
113 inline const VideoProperties& GetVideoProperties() const { return m_videoProperties; }
114 inline bool VideoPropertiesHasBeenSet() const { return m_videoPropertiesHasBeenSet; }
115 template<typename VideoPropertiesT = VideoProperties>
116 void SetVideoProperties(VideoPropertiesT&& value) { m_videoPropertiesHasBeenSet = true; m_videoProperties = std::forward<VideoPropertiesT>(value); }
117 template<typename VideoPropertiesT = VideoProperties>
118 Track& WithVideoProperties(VideoPropertiesT&& value) { SetVideoProperties(std::forward<VideoPropertiesT>(value)); return *this;}
120 private:
121
122 AudioProperties m_audioProperties;
123 bool m_audioPropertiesHasBeenSet = false;
124
125 Codec m_codec{Codec::NOT_SET};
126 bool m_codecHasBeenSet = false;
127
128 DataProperties m_dataProperties;
129 bool m_dataPropertiesHasBeenSet = false;
130
131 double m_duration{0.0};
132 bool m_durationHasBeenSet = false;
133
134 int m_index{0};
135 bool m_indexHasBeenSet = false;
136
137 TrackType m_trackType{TrackType::NOT_SET};
138 bool m_trackTypeHasBeenSet = false;
139
140 VideoProperties m_videoProperties;
141 bool m_videoPropertiesHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace MediaConvert
146} // namespace Aws
const DataProperties & GetDataProperties() const
Definition Track.h:71
Track & WithIndex(int value)
Definition Track.h:96
void SetDataProperties(DataPropertiesT &&value)
Definition Track.h:74
bool IndexHasBeenSet() const
Definition Track.h:94
bool DataPropertiesHasBeenSet() const
Definition Track.h:72
bool TrackTypeHasBeenSet() const
Definition Track.h:104
AWS_MEDIACONVERT_API Track & operator=(Aws::Utils::Json::JsonView jsonValue)
TrackType GetTrackType() const
Definition Track.h:103
Track & WithCodec(Codec value)
Definition Track.h:64
void SetCodec(Codec value)
Definition Track.h:63
Track & WithDuration(double value)
Definition Track.h:86
AWS_MEDIACONVERT_API Track()=default
Track & WithVideoProperties(VideoPropertiesT &&value)
Definition Track.h:118
double GetDuration() const
Definition Track.h:83
const VideoProperties & GetVideoProperties() const
Definition Track.h:113
void SetAudioProperties(AudioPropertiesT &&value)
Definition Track.h:52
AWS_MEDIACONVERT_API Track(Aws::Utils::Json::JsonView jsonValue)
bool DurationHasBeenSet() const
Definition Track.h:84
void SetTrackType(TrackType value)
Definition Track.h:105
void SetIndex(int value)
Definition Track.h:95
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
Track & WithTrackType(TrackType value)
Definition Track.h:106
Track & WithAudioProperties(AudioPropertiesT &&value)
Definition Track.h:54
const AudioProperties & GetAudioProperties() const
Definition Track.h:49
bool AudioPropertiesHasBeenSet() const
Definition Track.h:50
bool VideoPropertiesHasBeenSet() const
Definition Track.h:114
Track & WithDataProperties(DataPropertiesT &&value)
Definition Track.h:76
bool CodecHasBeenSet() const
Definition Track.h:62
void SetDuration(double value)
Definition Track.h:85
void SetVideoProperties(VideoPropertiesT &&value)
Definition Track.h:116
Aws::Utils::Json::JsonValue JsonValue