AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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
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 GuardrailImageBlock() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline GuardrailImageFormat GetFormat() const { return m_format; }
42 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
43 inline void SetFormat(GuardrailImageFormat value) {
44 m_formatHasBeenSet = true;
45 m_format = value;
46 }
48 SetFormat(value);
49 return *this;
50 }
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) {
62 m_sourceHasBeenSet = true;
63 m_source = std::forward<SourceT>(value);
64 }
65 template <typename SourceT = GuardrailImageSource>
67 SetSource(std::forward<SourceT>(value));
68 return *this;
69 }
71 private:
73
74 GuardrailImageSource m_source;
75 bool m_formatHasBeenSet = false;
76 bool m_sourceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockRuntime
81} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue