AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImageBlock.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ImageFormat.h>
9#include <aws/bedrock-agent-runtime/model/ImageSource.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API ImageBlock() = default;
36 AWS_BEDROCKAGENTRUNTIME_API ImageBlock(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENTRUNTIME_API ImageBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline ImageFormat GetFormat() const { return m_format; }
46 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
47 inline void SetFormat(ImageFormat value) { m_formatHasBeenSet = true; m_format = value; }
48 inline ImageBlock& WithFormat(ImageFormat value) { SetFormat(value); return *this;}
50
52
55 inline const ImageSource& GetSource() const { return m_source; }
56 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
57 template<typename SourceT = ImageSource>
58 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
59 template<typename SourceT = ImageSource>
60 ImageBlock& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
62 private:
63
65 bool m_formatHasBeenSet = false;
66
67 ImageSource m_source;
68 bool m_sourceHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace BedrockAgentRuntime
73} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ImageBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ImageBlock & WithSource(SourceT &&value)
Definition ImageBlock.h:60
const ImageSource & GetSource() const
Definition ImageBlock.h:55
AWS_BEDROCKAGENTRUNTIME_API ImageBlock()=default
AWS_BEDROCKAGENTRUNTIME_API ImageBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageBlock & WithFormat(ImageFormat value)
Definition ImageBlock.h:48
Aws::Utils::Json::JsonValue JsonValue