AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Container.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/Format.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediaconvert/model/Track.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 MediaConvert
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_MEDIACONVERT_API Container() = default;
39 AWS_MEDIACONVERT_API Container(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONVERT_API Container& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline double GetDuration() const { return m_duration; }
49 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
50 inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; }
51 inline Container& WithDuration(double value) { SetDuration(value); return *this;}
53
55
60 inline Format GetFormat() const { return m_format; }
61 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
62 inline void SetFormat(Format value) { m_formatHasBeenSet = true; m_format = value; }
63 inline Container& WithFormat(Format value) { SetFormat(value); return *this;}
65
67
70 inline const Aws::Vector<Track>& GetTracks() const { return m_tracks; }
71 inline bool TracksHasBeenSet() const { return m_tracksHasBeenSet; }
72 template<typename TracksT = Aws::Vector<Track>>
73 void SetTracks(TracksT&& value) { m_tracksHasBeenSet = true; m_tracks = std::forward<TracksT>(value); }
74 template<typename TracksT = Aws::Vector<Track>>
75 Container& WithTracks(TracksT&& value) { SetTracks(std::forward<TracksT>(value)); return *this;}
76 template<typename TracksT = Track>
77 Container& AddTracks(TracksT&& value) { m_tracksHasBeenSet = true; m_tracks.emplace_back(std::forward<TracksT>(value)); return *this; }
79 private:
80
81 double m_duration{0.0};
82 bool m_durationHasBeenSet = false;
83
84 Format m_format{Format::NOT_SET};
85 bool m_formatHasBeenSet = false;
86
87 Aws::Vector<Track> m_tracks;
88 bool m_tracksHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace MediaConvert
93} // namespace Aws
const Aws::Vector< Track > & GetTracks() const
Definition Container.h:70
Container & WithFormat(Format value)
Definition Container.h:63
void SetTracks(TracksT &&value)
Definition Container.h:73
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:51
Container & WithTracks(TracksT &&value)
Definition Container.h:75
Container & AddTracks(TracksT &&value)
Definition Container.h:77
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue