AWS SDK for C++

AWS SDK for C++ Version 1.11.609

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