AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImageBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ErrorBlock.h>
9#include <aws/bedrock-runtime/model/ImageFormat.h>
10#include <aws/bedrock-runtime/model/ImageSource.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
30 public:
31 AWS_BEDROCKRUNTIME_API ImageBlock() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ImageFormat GetFormat() const { return m_format; }
41 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
42 inline void SetFormat(ImageFormat value) {
43 m_formatHasBeenSet = true;
44 m_format = value;
45 }
47 SetFormat(value);
48 return *this;
49 }
51
53
56 inline const ImageSource& GetSource() const { return m_source; }
57 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
58 template <typename SourceT = ImageSource>
59 void SetSource(SourceT&& value) {
60 m_sourceHasBeenSet = true;
61 m_source = std::forward<SourceT>(value);
62 }
63 template <typename SourceT = ImageSource>
65 SetSource(std::forward<SourceT>(value));
66 return *this;
67 }
69
71
75 inline const ErrorBlock& GetError() const { return m_error; }
76 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
77 template <typename ErrorT = ErrorBlock>
78 void SetError(ErrorT&& value) {
79 m_errorHasBeenSet = true;
80 m_error = std::forward<ErrorT>(value);
81 }
82 template <typename ErrorT = ErrorBlock>
84 SetError(std::forward<ErrorT>(value));
85 return *this;
86 }
88 private:
90
91 ImageSource m_source;
92
93 ErrorBlock m_error;
94 bool m_formatHasBeenSet = false;
95 bool m_sourceHasBeenSet = false;
96 bool m_errorHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace BedrockRuntime
101} // namespace Aws
AWS_BEDROCKRUNTIME_API ImageBlock(Aws::Utils::Json::JsonView jsonValue)
const ImageSource & GetSource() const
Definition ImageBlock.h:56
ImageBlock & WithError(ErrorT &&value)
Definition ImageBlock.h:83
AWS_BEDROCKRUNTIME_API ImageBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const ErrorBlock & GetError() const
Definition ImageBlock.h:75
ImageBlock & WithFormat(ImageFormat value)
Definition ImageBlock.h:46
void SetFormat(ImageFormat value)
Definition ImageBlock.h:42
ImageBlock & WithSource(SourceT &&value)
Definition ImageBlock.h:64
AWS_BEDROCKRUNTIME_API ImageBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue