AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailConverseImageBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailConverseImageFormat.h>
9#include <aws/bedrock-runtime/model/GuardrailConverseImageSource.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
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailConverseImageBlock() = default;
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline GuardrailConverseImageFormat GetFormat() const { return m_format; }
48 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
49 inline void SetFormat(GuardrailConverseImageFormat value) { m_formatHasBeenSet = true; m_format = value; }
52
54
57 inline const GuardrailConverseImageSource& GetSource() const { return m_source; }
58 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
59 template<typename SourceT = GuardrailConverseImageSource>
60 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
61 template<typename SourceT = GuardrailConverseImageSource>
62 GuardrailConverseImageBlock& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
64 private:
65
67 bool m_formatHasBeenSet = false;
68
69 GuardrailConverseImageSource m_source;
70 bool m_sourceHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace BedrockRuntime
75} // namespace Aws
GuardrailConverseImageBlock & WithFormat(GuardrailConverseImageFormat value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailConverseImageBlock & WithSource(SourceT &&value)
AWS_BEDROCKRUNTIME_API GuardrailConverseImageBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailConverseImageBlock()=default
AWS_BEDROCKRUNTIME_API GuardrailConverseImageBlock(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue