AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
GuardrailChecksMessage.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailChecksContentBlock.h>
9#include <aws/bedrock-runtime/model/GuardrailChecksRole.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKRUNTIME_API GuardrailChecksMessage() = default;
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline GuardrailChecksRole GetRole() const { return m_role; }
42 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
43 inline void SetRole(GuardrailChecksRole value) {
44 m_roleHasBeenSet = true;
45 m_role = value;
46 }
48 SetRole(value);
49 return *this;
50 }
52
54
57 inline const Aws::Vector<GuardrailChecksContentBlock>& GetContent() const { return m_content; }
58 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
59 template <typename ContentT = Aws::Vector<GuardrailChecksContentBlock>>
60 void SetContent(ContentT&& value) {
61 m_contentHasBeenSet = true;
62 m_content = std::forward<ContentT>(value);
63 }
64 template <typename ContentT = Aws::Vector<GuardrailChecksContentBlock>>
66 SetContent(std::forward<ContentT>(value));
67 return *this;
68 }
69 template <typename ContentT = GuardrailChecksContentBlock>
71 m_contentHasBeenSet = true;
72 m_content.emplace_back(std::forward<ContentT>(value));
73 return *this;
74 }
76 private:
78
80 bool m_roleHasBeenSet = false;
81 bool m_contentHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace BedrockRuntime
86} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailChecksMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailChecksMessage()=default
GuardrailChecksMessage & WithRole(GuardrailChecksRole value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailChecksMessage & AddContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API GuardrailChecksMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GuardrailChecksContentBlock > & GetContent() const
GuardrailChecksMessage & WithContent(ContentT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue