AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AudioBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/AudioFormat.h>
9#include <aws/bedrock-runtime/model/AudioSource.h>
10#include <aws/bedrock-runtime/model/ErrorBlock.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKRUNTIME_API AudioBlock() = default;
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline AudioFormat GetFormat() const { return m_format; }
43 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
44 inline void SetFormat(AudioFormat value) {
45 m_formatHasBeenSet = true;
46 m_format = value;
47 }
49 SetFormat(value);
50 return *this;
51 }
53
55
59 inline const AudioSource& GetSource() const { return m_source; }
60 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
61 template <typename SourceT = AudioSource>
62 void SetSource(SourceT&& value) {
63 m_sourceHasBeenSet = true;
64 m_source = std::forward<SourceT>(value);
65 }
66 template <typename SourceT = AudioSource>
68 SetSource(std::forward<SourceT>(value));
69 return *this;
70 }
72
74
78 inline const ErrorBlock& GetError() const { return m_error; }
79 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
80 template <typename ErrorT = ErrorBlock>
81 void SetError(ErrorT&& value) {
82 m_errorHasBeenSet = true;
83 m_error = std::forward<ErrorT>(value);
84 }
85 template <typename ErrorT = ErrorBlock>
87 SetError(std::forward<ErrorT>(value));
88 return *this;
89 }
91 private:
93
94 AudioSource m_source;
95
96 ErrorBlock m_error;
97 bool m_formatHasBeenSet = false;
98 bool m_sourceHasBeenSet = false;
99 bool m_errorHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace BedrockRuntime
104} // namespace Aws
AWS_BEDROCKRUNTIME_API AudioBlock(Aws::Utils::Json::JsonView jsonValue)
const ErrorBlock & GetError() const
Definition AudioBlock.h:78
AudioBlock & WithSource(SourceT &&value)
Definition AudioBlock.h:67
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API AudioBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFormat(AudioFormat value)
Definition AudioBlock.h:44
const AudioSource & GetSource() const
Definition AudioBlock.h:59
AudioBlock & WithError(ErrorT &&value)
Definition AudioBlock.h:86
AudioBlock & WithFormat(AudioFormat value)
Definition AudioBlock.h:48
AWS_BEDROCKRUNTIME_API AudioBlock()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue