AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailTopic.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailTopicType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline GuardrailTopicPolicyAction GetAction() const { return m_action; }
42 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
44 m_actionHasBeenSet = true;
45 m_action = value;
46 }
48 SetAction(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline GuardrailTopicType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(GuardrailTopicType value) {
78 m_typeHasBeenSet = true;
79 m_type = value;
80 }
82 SetType(value);
83 return *this;
84 }
86 private:
88
89 Aws::String m_name;
90
92 bool m_actionHasBeenSet = false;
93 bool m_nameHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace BedrockAgentRuntime
99} // namespace Aws
GuardrailTopicPolicyAction GetAction() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopic & WithName(NameT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopic & WithAction(GuardrailTopicPolicyAction value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic()=default
GuardrailTopic & WithType(GuardrailTopicType value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(GuardrailTopicPolicyAction value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue