AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
VideoDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/VideoCodecSettings.h>
10#include <aws/medialive/model/VideoDescriptionRespondToAfd.h>
11#include <aws/medialive/model/VideoDescriptionScalingBehavior.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaLive {
23namespace Model {
24
31 public:
32 AWS_MEDIALIVE_API VideoDescription() = default;
33 AWS_MEDIALIVE_API VideoDescription(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const VideoCodecSettings& GetCodecSettings() const { return m_codecSettings; }
42 inline bool CodecSettingsHasBeenSet() const { return m_codecSettingsHasBeenSet; }
43 template <typename CodecSettingsT = VideoCodecSettings>
44 void SetCodecSettings(CodecSettingsT&& value) {
45 m_codecSettingsHasBeenSet = true;
46 m_codecSettings = std::forward<CodecSettingsT>(value);
47 }
48 template <typename CodecSettingsT = VideoCodecSettings>
49 VideoDescription& WithCodecSettings(CodecSettingsT&& value) {
50 SetCodecSettings(std::forward<CodecSettingsT>(value));
51 return *this;
52 }
54
56
62 inline int GetHeight() const { return m_height; }
63 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
64 inline void SetHeight(int value) {
65 m_heightHasBeenSet = true;
66 m_height = value;
67 }
68 inline VideoDescription& WithHeight(int value) {
69 SetHeight(value);
70 return *this;
71 }
73
75
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 VideoDescription& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
110 inline VideoDescriptionRespondToAfd GetRespondToAfd() const { return m_respondToAfd; }
111 inline bool RespondToAfdHasBeenSet() const { return m_respondToAfdHasBeenSet; }
113 m_respondToAfdHasBeenSet = true;
114 m_respondToAfd = value;
115 }
117 SetRespondToAfd(value);
118 return *this;
119 }
121
123
129 inline VideoDescriptionScalingBehavior GetScalingBehavior() const { return m_scalingBehavior; }
130 inline bool ScalingBehaviorHasBeenSet() const { return m_scalingBehaviorHasBeenSet; }
132 m_scalingBehaviorHasBeenSet = true;
133 m_scalingBehavior = value;
134 }
136 SetScalingBehavior(value);
137 return *this;
138 }
140
142
146 inline int GetSharpness() const { return m_sharpness; }
147 inline bool SharpnessHasBeenSet() const { return m_sharpnessHasBeenSet; }
148 inline void SetSharpness(int value) {
149 m_sharpnessHasBeenSet = true;
150 m_sharpness = value;
151 }
152 inline VideoDescription& WithSharpness(int value) {
153 SetSharpness(value);
154 return *this;
155 }
157
159
165 inline int GetWidth() const { return m_width; }
166 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
167 inline void SetWidth(int value) {
168 m_widthHasBeenSet = true;
169 m_width = value;
170 }
171 inline VideoDescription& WithWidth(int value) {
172 SetWidth(value);
173 return *this;
174 }
176 private:
177 VideoCodecSettings m_codecSettings;
178
179 int m_height{0};
180
181 Aws::String m_name;
182
184
186
187 int m_sharpness{0};
188
189 int m_width{0};
190 bool m_codecSettingsHasBeenSet = false;
191 bool m_heightHasBeenSet = false;
192 bool m_nameHasBeenSet = false;
193 bool m_respondToAfdHasBeenSet = false;
194 bool m_scalingBehaviorHasBeenSet = false;
195 bool m_sharpnessHasBeenSet = false;
196 bool m_widthHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace MediaLive
201} // namespace Aws
const VideoCodecSettings & GetCodecSettings() const
void SetRespondToAfd(VideoDescriptionRespondToAfd value)
VideoDescription & WithScalingBehavior(VideoDescriptionScalingBehavior value)
void SetCodecSettings(CodecSettingsT &&value)
VideoDescription & WithHeight(int value)
AWS_MEDIALIVE_API VideoDescription()=default
VideoDescription & WithSharpness(int value)
VideoDescription & WithWidth(int value)
VideoDescription & WithRespondToAfd(VideoDescriptionRespondToAfd value)
void SetScalingBehavior(VideoDescriptionScalingBehavior value)
VideoDescriptionRespondToAfd GetRespondToAfd() const
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
VideoDescriptionScalingBehavior GetScalingBehavior() const
const Aws::String & GetName() const
AWS_MEDIALIVE_API VideoDescription(Aws::Utils::Json::JsonView jsonValue)
VideoDescription & WithCodecSettings(CodecSettingsT &&value)
VideoDescription & WithName(NameT &&value)
AWS_MEDIALIVE_API VideoDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue