AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ImageFormat.h>
9#include <aws/bedrock-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 BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API ImageBlock();
36 AWS_BEDROCKRUNTIME_API ImageBlock(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API ImageBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const ImageFormat& GetFormat() const{ return m_format; }
46 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
47 inline void SetFormat(const ImageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
48 inline void SetFormat(ImageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
49 inline ImageBlock& WithFormat(const ImageFormat& value) { SetFormat(value); return *this;}
50 inline ImageBlock& WithFormat(ImageFormat&& value) { SetFormat(std::move(value)); return *this;}
52
54
57 inline const ImageSource& GetSource() const{ return m_source; }
58 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
59 inline void SetSource(const ImageSource& value) { m_sourceHasBeenSet = true; m_source = value; }
60 inline void SetSource(ImageSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
61 inline ImageBlock& WithSource(const ImageSource& value) { SetSource(value); return *this;}
62 inline ImageBlock& WithSource(ImageSource&& value) { SetSource(std::move(value)); return *this;}
64 private:
65
66 ImageFormat m_format;
67 bool m_formatHasBeenSet = false;
68
69 ImageSource m_source;
70 bool m_sourceHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace BedrockRuntime
75} // namespace Aws
void SetFormat(ImageFormat &&value)
Definition ImageBlock.h:48
void SetSource(ImageSource &&value)
Definition ImageBlock.h:60
ImageBlock & WithSource(const ImageSource &value)
Definition ImageBlock.h:61
AWS_BEDROCKRUNTIME_API ImageBlock(Aws::Utils::Json::JsonView jsonValue)
const ImageSource & GetSource() const
Definition ImageBlock.h:57
ImageBlock & WithFormat(const ImageFormat &value)
Definition ImageBlock.h:49
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ImageBlock & WithSource(ImageSource &&value)
Definition ImageBlock.h:62
AWS_BEDROCKRUNTIME_API ImageBlock()
void SetSource(const ImageSource &value)
Definition ImageBlock.h:59
const ImageFormat & GetFormat() const
Definition ImageBlock.h:45
AWS_BEDROCKRUNTIME_API ImageBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageBlock & WithFormat(ImageFormat &&value)
Definition ImageBlock.h:50
void SetFormat(const ImageFormat &value)
Definition ImageBlock.h:47
Aws::Utils::Json::JsonValue JsonValue