AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Container.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
10#include <aws/mediaconvert/model/Format.h>
11#include <aws/mediaconvert/model/Track.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConvert {
23namespace Model {
24
32class Container {
33 public:
34 AWS_MEDIACONVERT_API Container() = default;
35 AWS_MEDIACONVERT_API Container(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONVERT_API Container& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline double GetDuration() const { return m_duration; }
44 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
45 inline void SetDuration(double value) {
46 m_durationHasBeenSet = true;
47 m_duration = value;
48 }
49 inline Container& WithDuration(double value) {
50 SetDuration(value);
51 return *this;
52 }
54
56
62 inline Format GetFormat() const { return m_format; }
63 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
64 inline void SetFormat(Format value) {
65 m_formatHasBeenSet = true;
66 m_format = value;
67 }
68 inline Container& WithFormat(Format value) {
69 SetFormat(value);
70 return *this;
71 }
73
75
80 inline const Aws::String& GetStartTimecode() const { return m_startTimecode; }
81 inline bool StartTimecodeHasBeenSet() const { return m_startTimecodeHasBeenSet; }
82 template <typename StartTimecodeT = Aws::String>
83 void SetStartTimecode(StartTimecodeT&& value) {
84 m_startTimecodeHasBeenSet = true;
85 m_startTimecode = std::forward<StartTimecodeT>(value);
86 }
87 template <typename StartTimecodeT = Aws::String>
88 Container& WithStartTimecode(StartTimecodeT&& value) {
89 SetStartTimecode(std::forward<StartTimecodeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<Track>& GetTracks() const { return m_tracks; }
99 inline bool TracksHasBeenSet() const { return m_tracksHasBeenSet; }
100 template <typename TracksT = Aws::Vector<Track>>
101 void SetTracks(TracksT&& value) {
102 m_tracksHasBeenSet = true;
103 m_tracks = std::forward<TracksT>(value);
104 }
105 template <typename TracksT = Aws::Vector<Track>>
106 Container& WithTracks(TracksT&& value) {
107 SetTracks(std::forward<TracksT>(value));
108 return *this;
109 }
110 template <typename TracksT = Track>
111 Container& AddTracks(TracksT&& value) {
112 m_tracksHasBeenSet = true;
113 m_tracks.emplace_back(std::forward<TracksT>(value));
114 return *this;
115 }
117 private:
118 double m_duration{0.0};
119
120 Format m_format{Format::NOT_SET};
121
122 Aws::String m_startTimecode;
123
124 Aws::Vector<Track> m_tracks;
125 bool m_durationHasBeenSet = false;
126 bool m_formatHasBeenSet = false;
127 bool m_startTimecodeHasBeenSet = false;
128 bool m_tracksHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace MediaConvert
133} // namespace Aws
const Aws::Vector< Track > & GetTracks() const
Definition Container.h:98
Container & WithFormat(Format value)
Definition Container.h:68
void SetStartTimecode(StartTimecodeT &&value)
Definition Container.h:83
void SetTracks(TracksT &&value)
Definition Container.h:101
const Aws::String & GetStartTimecode() const
Definition Container.h:80
AWS_MEDIACONVERT_API Container()=default
AWS_MEDIACONVERT_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONVERT_API Container(Aws::Utils::Json::JsonView jsonValue)
Container & WithDuration(double value)
Definition Container.h:49
Container & WithTracks(TracksT &&value)
Definition Container.h:106
Container & AddTracks(TracksT &&value)
Definition Container.h:111
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
Container & WithStartTimecode(StartTimecodeT &&value)
Definition Container.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue