AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
VideoBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/VideoFormat.h>
9#include <aws/bedrock-runtime/model/VideoSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKRUNTIME_API VideoBlock() = default;
33 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline VideoFormat GetFormat() const { return m_format; }
40 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
41 inline void SetFormat(VideoFormat value) {
42 m_formatHasBeenSet = true;
43 m_format = value;
44 }
46 SetFormat(value);
47 return *this;
48 }
50
52
55 inline const VideoSource& GetSource() const { return m_source; }
56 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
57 template <typename SourceT = VideoSource>
58 void SetSource(SourceT&& value) {
59 m_sourceHasBeenSet = true;
60 m_source = std::forward<SourceT>(value);
61 }
62 template <typename SourceT = VideoSource>
64 SetSource(std::forward<SourceT>(value));
65 return *this;
66 }
68 private:
70
71 VideoSource m_source;
72 bool m_formatHasBeenSet = false;
73 bool m_sourceHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace BedrockRuntime
78} // namespace Aws
AWS_BEDROCKRUNTIME_API VideoBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
VideoBlock & WithSource(SourceT &&value)
Definition VideoBlock.h:63
const VideoSource & GetSource() const
Definition VideoBlock.h:55
AWS_BEDROCKRUNTIME_API VideoBlock()=default
AWS_BEDROCKRUNTIME_API VideoBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
VideoBlock & WithFormat(VideoFormat value)
Definition VideoBlock.h:45
void SetFormat(VideoFormat value)
Definition VideoBlock.h:41
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue