AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKRUNTIME_API GuardrailConverseImageBlock() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline GuardrailConverseImageFormat GetFormat() const { return m_format; }
42 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
44 m_formatHasBeenSet = true;
45 m_format = value;
46 }
48 SetFormat(value);
49 return *this;
50 }
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) {
61 m_sourceHasBeenSet = true;
62 m_source = std::forward<SourceT>(value);
63 }
64 template <typename SourceT = GuardrailConverseImageSource>
66 SetSource(std::forward<SourceT>(value));
67 return *this;
68 }
70 private:
72
73 GuardrailConverseImageSource m_source;
74 bool m_formatHasBeenSet = false;
75 bool m_sourceHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace BedrockRuntime
80} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue