AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API ImageBlock() = default;
31 AWS_BEDROCKAGENTRUNTIME_API ImageBlock(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline ImageFormat GetFormat() const { return m_format; }
40 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
41 inline void SetFormat(ImageFormat value) {
42 m_formatHasBeenSet = true;
43 m_format = value;
44 }
46 SetFormat(value);
47 return *this;
48 }
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) {
59 m_sourceHasBeenSet = true;
60 m_source = std::forward<SourceT>(value);
61 }
62 template <typename SourceT = ImageSource>
64 SetSource(std::forward<SourceT>(value));
65 return *this;
66 }
68 private:
70
71 ImageSource m_source;
72 bool m_formatHasBeenSet = false;
73 bool m_sourceHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace BedrockAgentRuntime
78} // 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:63
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:45
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue