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>
21namespace BedrockRuntime {
43 m_formatHasBeenSet =
true;
58 template <
typename SourceT = ImageSource>
60 m_sourceHasBeenSet =
true;
61 m_source = std::forward<SourceT>(value);
63 template <
typename SourceT = ImageSource>
77 template <
typename ErrorT = ErrorBlock>
79 m_errorHasBeenSet =
true;
80 m_error = std::forward<ErrorT>(value);
82 template <
typename ErrorT = ErrorBlock>
84 SetError(std::forward<ErrorT>(value));
94 bool m_formatHasBeenSet =
false;
95 bool m_sourceHasBeenSet =
false;
96 bool m_errorHasBeenSet =
false;
bool SourceHasBeenSet() const
AWS_BEDROCKRUNTIME_API ImageBlock(Aws::Utils::Json::JsonView jsonValue)
bool ErrorHasBeenSet() const
const ImageSource & GetSource() const
ImageBlock & WithError(ErrorT &&value)
void SetError(ErrorT &&value)
AWS_BEDROCKRUNTIME_API ImageBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const ErrorBlock & GetError() const
ImageFormat GetFormat() const
void SetSource(SourceT &&value)
bool FormatHasBeenSet() const
ImageBlock & WithFormat(ImageFormat value)
void SetFormat(ImageFormat value)
ImageBlock & WithSource(SourceT &&value)
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