AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent-runtime/model/GuardrailTopicType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic() = default;
38 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline GuardrailTopicPolicyAction GetAction() const { return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
49 inline void SetAction(GuardrailTopicPolicyAction value) { m_actionHasBeenSet = true; m_action = value; }
50 inline GuardrailTopic& WithAction(GuardrailTopicPolicyAction value) { SetAction(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 GuardrailTopic& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline GuardrailTopicType GetType() const { return m_type; }
70 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 inline void SetType(GuardrailTopicType value) { m_typeHasBeenSet = true; m_type = value; }
72 inline GuardrailTopic& WithType(GuardrailTopicType value) { SetType(value); return *this;}
74 private:
75
77 bool m_actionHasBeenSet = false;
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
83 bool m_typeHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace BedrockAgentRuntime
88} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue